[nostalgia/studio] Start on ImGui version of Studio
This commit is contained in:
@@ -6,13 +6,12 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <ox/std/string.hpp>
|
||||
|
||||
#include "editor.hpp"
|
||||
|
||||
namespace nostalgia::studio {
|
||||
|
||||
Editor::Editor(QWidget *parent): QWidget(parent) {
|
||||
}
|
||||
|
||||
void Editor::cut() {
|
||||
}
|
||||
|
||||
@@ -32,20 +31,20 @@ void Editor::save() {
|
||||
|
||||
void Editor::setUnsavedChanges(bool uc) {
|
||||
m_unsavedChanges = uc;
|
||||
emit unsavedChangesChanged(uc);
|
||||
unsavedChangesChanged.emit(uc);
|
||||
}
|
||||
|
||||
bool Editor::unsavedChanges() const noexcept {
|
||||
return m_unsavedChanges;
|
||||
}
|
||||
|
||||
QUndoStack *Editor::undoStack() {
|
||||
UndoStack *Editor::undoStack() {
|
||||
return &m_cmdStack;
|
||||
}
|
||||
|
||||
void Editor::setExportable(bool exportable) {
|
||||
m_exportable = exportable;
|
||||
emit exportableChanged(exportable);
|
||||
exportableChanged.emit(exportable);
|
||||
}
|
||||
|
||||
bool Editor::exportable() const {
|
||||
@@ -54,7 +53,7 @@ bool Editor::exportable() const {
|
||||
|
||||
void Editor::setCutEnabled(bool v) {
|
||||
m_cutEnabled = v;
|
||||
emit cutEnabledChanged(v);
|
||||
cutEnabledChanged.emit(v);
|
||||
}
|
||||
|
||||
bool Editor::cutEnabled() const {
|
||||
@@ -63,7 +62,7 @@ bool Editor::cutEnabled() const {
|
||||
|
||||
void Editor::setCopyEnabled(bool v) {
|
||||
m_copyEnabled = v;
|
||||
emit copyEnabledChanged(v);
|
||||
copyEnabledChanged.emit(v);
|
||||
}
|
||||
|
||||
bool Editor::copyEnabled() const {
|
||||
@@ -72,7 +71,7 @@ bool Editor::copyEnabled() const {
|
||||
|
||||
void Editor::setPasteEnabled(bool v) {
|
||||
m_pasteEnabled = v;
|
||||
emit pasteEnabledChanged(v);
|
||||
pasteEnabledChanged.emit(v);
|
||||
}
|
||||
|
||||
bool Editor::pasteEnabled() const {
|
||||
|
||||
Reference in New Issue
Block a user