summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Amit Chaudhuri <amit.k.chaudhuri@gmail.com>2013-04-09 17:26:23 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-09 22:49:13 -0700
commit1182c989973a3006a482413ddd2d523be64e5443 (patch)
treefb3bc9fd16f8b3d1fbbfe8ff660d3c31f1d083ac /qt-ui/mainwindow.h
parent99153de715955a9a80097c9951eaf096efeb5752 (diff)
downloadsubsurface-1182c989973a3006a482413ddd2d523be64e5443.tar.gz
Add stub slots for all menu items
Naming of QActions was inconsistent wrt abbreviations - fixed. Add stub slots for each action relying on connect by name. Add qDebug() message to allow people to check that menu items fire slots; not really necessary but may provide some reassurance as we build familiarity with Qt. Some changes to display text for menu items (e.g. Tree becomes View All). Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 6361870b2..51b428c5f 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -22,7 +22,41 @@ public:
private Q_SLOTS:
+ /* file menu action */
void on_actionNew_triggered();
+ void on_actionOpen_triggered();
+ void on_actionSave_triggered();
+ void on_actionSaveAs_triggered();
+ void on_actionClose_triggered();
+ void on_actionImport_triggered();
+ void on_actionExportUDDF_triggered();
+ void on_actionPrint_triggered();
+ void on_actionPreferences_triggered();
+ void on_actionQuit_triggered();
+
+ /* log menu actions */
+ void on_actionDownloadDC_triggered();
+ void on_actionDownloadWeb_triggered();
+ void on_actionEditDeviceNames_triggered();
+ void on_actionAddDive_triggered();
+ void on_actionRenumber_triggered();
+ void on_actionAutoGroup_triggered();
+ void on_actionToggleZoom_triggered();
+ void on_actionYearlyStatistics_triggered();
+
+ /* view menu actions */
+ void on_actionViewList_triggered();
+ void on_actionViewProfile_triggered();
+ void on_actionViewInfo_triggered();
+ void on_actionViewAll_triggered();
+ void on_actionPreviousDC_triggered();
+ void on_actionNextDC_triggered();
+
+ /* other menu actions */
+ void on_actionSelectEvents_triggered();
+ void on_actionInputPlan_triggered();
+ void on_actionAboutSubsurface_triggered();
+ void on_actionUserManual_triggered();
private:
Ui::MainWindow *ui;