Changeset View
Changeset View
Standalone View
Standalone View
step/undobrowser.h
Show All 24 Lines | |||||
25 | class QUndoView; | 25 | class QUndoView; | ||
26 | class QUrl; | 26 | class QUrl; | ||
27 | 27 | | |||
28 | class UndoBrowser: public QDockWidget | 28 | class UndoBrowser: public QDockWidget | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | explicit UndoBrowser(WorldModel* worldModel, QWidget* parent = 0, Qt::WindowFlags flags = {}); | 33 | explicit UndoBrowser(WorldModel* worldModel, QWidget* parent = 0); | ||
34 | 34 | | |||
35 | public slots: | 35 | public slots: | ||
36 | void setEmptyLabel(const QString& label); | 36 | void setEmptyLabel(const QString& label); | ||
37 | void setCurrentFileUrl(const QUrl& url); | 37 | void setCurrentFileUrl(const QUrl& url); | ||
38 | void setUndoEnabled(bool enabled); | 38 | void setUndoEnabled(bool enabled); | ||
39 | 39 | | |||
40 | protected: | 40 | protected: | ||
41 | WorldModel* _worldModel; | 41 | WorldModel* _worldModel; | ||
42 | QUndoView* _undoView; | 42 | QUndoView* _undoView; | ||
43 | }; | 43 | }; | ||
44 | 44 | | |||
45 | #endif | 45 | #endif | ||
46 | 46 | |