[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;
|
bool m_pasteEnabled = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Editor(QWidget *parent);
|
explicit Editor(QWidget *parent);
|
||||||
|
|
||||||
virtual ~Editor() = default;
|
~Editor() override = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of item being edited.
|
* Returns the name of item being edited.
|
||||||
*/
|
*/
|
||||||
|
[[nodiscard]]
|
||||||
virtual QString itemName() const = 0;
|
virtual QString itemName() const = 0;
|
||||||
|
|
||||||
virtual void cut();
|
virtual void cut();
|
||||||
@ -55,28 +56,34 @@ class NOSTALGIASTUDIO_EXPORT Editor: public QWidget {
|
|||||||
*/
|
*/
|
||||||
void setUnsavedChanges(bool);
|
void setUnsavedChanges(bool);
|
||||||
|
|
||||||
[[nodiscard]] bool unsavedChanges() const noexcept;
|
[[nodiscard]]
|
||||||
|
bool unsavedChanges() const noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the undo stack holding changes to the item being edited.
|
* Returns the undo stack holding changes to the item being edited.
|
||||||
*/
|
*/
|
||||||
[[nodiscard]] QUndoStack *undoStack();
|
[[nodiscard]]
|
||||||
|
QUndoStack *undoStack();
|
||||||
|
|
||||||
void setExportable(bool);
|
void setExportable(bool);
|
||||||
|
|
||||||
[[nodiscard]] bool exportable() const;
|
[[nodiscard]]
|
||||||
|
bool exportable() const;
|
||||||
|
|
||||||
void setCutEnabled(bool);
|
void setCutEnabled(bool);
|
||||||
|
|
||||||
[[nodiscard]] bool cutEnabled() const;
|
[[nodiscard]]
|
||||||
|
bool cutEnabled() const;
|
||||||
|
|
||||||
void setCopyEnabled(bool);
|
void setCopyEnabled(bool);
|
||||||
|
|
||||||
[[nodiscard]] bool copyEnabled() const;
|
[[nodiscard]]
|
||||||
|
bool copyEnabled() const;
|
||||||
|
|
||||||
void setPasteEnabled(bool);
|
void setPasteEnabled(bool);
|
||||||
|
|
||||||
[[nodiscard]] bool pasteEnabled() const;
|
[[nodiscard]]
|
||||||
|
bool pasteEnabled() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
@ -10,10 +10,7 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QGridLayout>
|
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
#include <QLabel>
|
|
||||||
#include <QLineEdit>
|
|
||||||
#include <QMenuBar>
|
#include <QMenuBar>
|
||||||
#include <QPluginLoader>
|
#include <QPluginLoader>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user