diff options
Diffstat (limited to 'utils/themeeditor/gui/editorwindow.h')
-rw-r--r-- | utils/themeeditor/gui/editorwindow.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/editorwindow.h b/utils/themeeditor/gui/editorwindow.h index 996ddcd40e..bd71c9a5dc 100644 --- a/utils/themeeditor/gui/editorwindow.h +++ b/utils/themeeditor/gui/editorwindow.h @@ -49,6 +49,8 @@ class EditorWindow : public QMainWindow { Q_OBJECT public: + static const int numRecent; + EditorWindow(QWidget *parent = 0); virtual ~EditorWindow(); @@ -75,6 +77,8 @@ private slots: void exportProject(); void openFile(); void openProject(); + void openRecentFile(); + void openRecentProject(); void tabTitleChanged(QString title); void updateCurrent(); /* Generates code in the current tab */ void lineChanged(int line); /* Used for auto-expand */ @@ -100,6 +104,11 @@ private: void loadProjectFile(QString fileName); static void createFile(QString filename, QString contents); + /* Functions to manipulate the recent projects/documents menus */ + void docToTop(QString file); + void projectToTop(QString file); + void refreshRecentMenus(); + Ui::EditorWindow *ui; PreferencesDialog* prefs; QLabel* parseStatus; @@ -110,6 +119,11 @@ private: QDockWidget* deviceDock; SkinTimer* timer; QDockWidget* timerDock; + + QStringList recentDocs; + QStringList recentProjects; + QList<QAction*> recentDocsMenu; + QList<QAction*> recentProjectsMenu; }; #endif // EDITORWINDOW_H |