[nostalgia/studio] Add Export menu item and hook

This commit is contained in:
2020-03-24 21:42:42 -05:00
parent f90a6e30ea
commit 26747a6d0f
4 changed files with 55 additions and 7 deletions
+17 -1
View File
@@ -13,6 +13,9 @@ namespace nostalgia::studio {
Editor::Editor(QWidget *parent): QWidget(parent) {
}
void Editor::exportFile() {
}
void Editor::save() {
saveItem();
setUnsavedChanges(false);
@@ -20,13 +23,26 @@ void Editor::save() {
void Editor::setUnsavedChanges(bool uc) {
m_unsavedChanges = uc;
emit unsavedChangesUpdate(uc);
emit unsavedChangesChanged(uc);
}
[[nodiscard]] bool Editor::unsavedChanges() noexcept {
return m_unsavedChanges;
}
QUndoStack *Editor::undoStack() {
return &m_cmdStack;
}
void Editor::setExportable(bool exportable) {
m_exportable = exportable;
emit exportableChanged(exportable);
}
bool Editor::exportable() {
return m_exportable;
}
void Editor::saveItem() {
}