[nostalgia/studio] Cleanup

This commit is contained in:
Gary Talent 2021-07-17 13:04:20 -05:00
parent 724cf7f779
commit d3a3d57773
2 changed files with 15 additions and 11 deletions

View File

@ -27,13 +27,14 @@ class NOSTALGIASTUDIO_EXPORT Editor: public QWidget {
bool m_pasteEnabled = false;
public:
Editor(QWidget *parent);
explicit Editor(QWidget *parent);
virtual ~Editor() = default;
~Editor() override = default;
/**
* Returns the name of item being edited.
*/
[[nodiscard]]
virtual QString itemName() const = 0;
virtual void cut();
@ -55,28 +56,34 @@ class NOSTALGIASTUDIO_EXPORT Editor: public QWidget {
*/
void setUnsavedChanges(bool);
[[nodiscard]] bool unsavedChanges() const noexcept;
[[nodiscard]]
bool unsavedChanges() const noexcept;
/**
* Returns the undo stack holding changes to the item being edited.
*/
[[nodiscard]] QUndoStack *undoStack();
[[nodiscard]]
QUndoStack *undoStack();
void setExportable(bool);
[[nodiscard]] bool exportable() const;
[[nodiscard]]
bool exportable() const;
void setCutEnabled(bool);
[[nodiscard]] bool cutEnabled() const;
[[nodiscard]]
bool cutEnabled() const;
void setCopyEnabled(bool);
[[nodiscard]] bool copyEnabled() const;
[[nodiscard]]
bool copyEnabled() const;
void setPasteEnabled(bool);
[[nodiscard]] bool pasteEnabled() const;
[[nodiscard]]
bool pasteEnabled() const;
protected:
/**

View File

@ -10,10 +10,7 @@
#include <QDebug>
#include <QDialog>
#include <QFileDialog>
#include <QGridLayout>
#include <QHeaderView>
#include <QLabel>
#include <QLineEdit>
#include <QMenuBar>
#include <QPluginLoader>
#include <QScreen>