Compare commits

..

No commits in common. "2094450898d69099d68b77eb4dd745bdc0af928b" and "ac1e34d4cd0462727ef77e96a14c1dc24faebbea" have entirely different histories.

4 changed files with 10 additions and 2 deletions

View File

@ -98,6 +98,8 @@ class TileSheetEditorImGui: public studio::Editor {
ox::Error updateActiveSubsheet(ox::StringView const&name, int cols, int rows) noexcept;
// slots
private:
void setActiveSubsheet(TileSheet::SubSheetIdx path) noexcept;
};

View File

@ -120,7 +120,7 @@ bool TileSheetEditorModel::acceptsClipboardPayload() const noexcept {
return cb.ok();
}
ox::String const &TileSheetEditorModel::palPath() const & noexcept {
ox::StringView TileSheetEditorModel::palPath() const noexcept {
return m_palPath;
}

View File

@ -62,7 +62,7 @@ class TileSheetEditorModel: public ox::SignalHandler {
constexpr Palette const&pal() const noexcept;
[[nodiscard]]
ox::String const &palPath() const & noexcept;
ox::StringView palPath() const noexcept;
ox::Error setPalette(ox::StringViewCR path) noexcept;

View File

@ -71,6 +71,12 @@ class SelectionTracker {
return m_selectionOngoing;
}
constexpr void startSelection(ox::Point cursor) noexcept {
m_pointA = cursor;
m_pointB = cursor;
m_selectionOngoing = true;
}
/**
*
* @param cursor