Added File->"Open Recent" menu.

Initially based on pull request #40 by hochwasser <oo.o+github@windbuechse.samba-tng.org>, with refactoring.
This commit is contained in:
Jim Evins
2019-01-28 12:28:45 -05:00
parent 0e60c52d4c
commit ff9188f7e7
7 changed files with 154 additions and 3 deletions
+7 -1
View File
@@ -91,6 +91,7 @@ namespace glabels
void fileNew();
void fileOpen();
void fileOpenRecent();
void fileSave();
void fileSaveAs();
void fileShowEditorPage();
@@ -158,6 +159,8 @@ namespace glabels
void onLabelChanged();
void onUndoRedoChanged();
void onSettingsChanged();
/////////////////////////////////////
// Internal Private Methods
@@ -182,13 +185,14 @@ namespace glabels
void writeSettings();
bool isOkToClose();
/////////////////////////////////////
// Private Data
/////////////////////////////////////
private:
QMenu* fileMenu;
QMenu* fileRecentMenu;
QMenu* editMenu;
QMenu* viewMenu;
QMenu* viewToolBarsMenu;
@@ -250,6 +254,8 @@ namespace glabels
QAction* fileCloseAction;
QAction* fileExitAction;
QList<QAction*> fileRecentActionList;
QAction* editUndoAction;
QAction* editRedoAction;
QAction* editCutAction;