summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/editorwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/editorwindow.h')
-rw-r--r--utils/themeeditor/gui/editorwindow.h14
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
49{ 49{
50 Q_OBJECT 50 Q_OBJECT
51public: 51public:
52 static const int numRecent;
53
52 EditorWindow(QWidget *parent = 0); 54 EditorWindow(QWidget *parent = 0);
53 virtual ~EditorWindow(); 55 virtual ~EditorWindow();
54 56
@@ -75,6 +77,8 @@ private slots:
75 void exportProject(); 77 void exportProject();
76 void openFile(); 78 void openFile();
77 void openProject(); 79 void openProject();
80 void openRecentFile();
81 void openRecentProject();
78 void tabTitleChanged(QString title); 82 void tabTitleChanged(QString title);
79 void updateCurrent(); /* Generates code in the current tab */ 83 void updateCurrent(); /* Generates code in the current tab */
80 void lineChanged(int line); /* Used for auto-expand */ 84 void lineChanged(int line); /* Used for auto-expand */
@@ -100,6 +104,11 @@ private:
100 void loadProjectFile(QString fileName); 104 void loadProjectFile(QString fileName);
101 static void createFile(QString filename, QString contents); 105 static void createFile(QString filename, QString contents);
102 106
107 /* Functions to manipulate the recent projects/documents menus */
108 void docToTop(QString file);
109 void projectToTop(QString file);
110 void refreshRecentMenus();
111
103 Ui::EditorWindow *ui; 112 Ui::EditorWindow *ui;
104 PreferencesDialog* prefs; 113 PreferencesDialog* prefs;
105 QLabel* parseStatus; 114 QLabel* parseStatus;
@@ -110,6 +119,11 @@ private:
110 QDockWidget* deviceDock; 119 QDockWidget* deviceDock;
111 SkinTimer* timer; 120 SkinTimer* timer;
112 QDockWidget* timerDock; 121 QDockWidget* timerDock;
122
123 QStringList recentDocs;
124 QStringList recentProjects;
125 QList<QAction*> recentDocsMenu;
126 QList<QAction*> recentProjectsMenu;
113}; 127};
114 128
115#endif // EDITORWINDOW_H 129#endif // EDITORWINDOW_H