[nostalgia/studio] Cleanup
This commit is contained in:
parent
724cf7f779
commit
d3a3d57773
@ -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:
|
||||
/**
|
||||
|
@ -10,10 +10,7 @@
|
||||
#include <QDebug>
|
||||
#include <QDialog>
|
||||
#include <QFileDialog>
|
||||
#include <QGridLayout>
|
||||
#include <QHeaderView>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QMenuBar>
|
||||
#include <QPluginLoader>
|
||||
#include <QScreen>
|
||||
|
Loading…
x
Reference in New Issue
Block a user