summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-08-22 22:26:07 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-23 08:09:11 -0700
commit9acf1caca3370f3e7eaf53c88e5419a62c07e4cb (patch)
treee7a4635c1ee338e97854b86aa5bd73ea8aecb1ae /qt-ui/mainwindow.h
parentfe9e67bfaf250aecc17de437668fddfecd7e9b23 (diff)
downloadsubsurface-9acf1caca3370f3e7eaf53c88e5419a62c07e4cb.tar.gz
A much better Toolbar for the profile.
Using QToolBar I was able to remove much of the dead code from the mainwindow.ui xml file by transforming the QToolButtons into actions and loading them dynamically in the .cpp code. I couldn't use the designer for this ( as I wanted ) because Qt has no notion of ToolBars outside of the areas where the MainWindow should have one, and we use it in a very different area. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 1340d9076..100eac6cb 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -127,22 +127,22 @@ slots:
void on_actionImportDiveLog_triggered();
/* TODO: Move those slots below to it's own class */
- void on_profCalcAllTissues_clicked(bool triggered);
- void on_profCalcCeiling_clicked(bool triggered);
- void on_profDcCeiling_clicked(bool triggered);
- void on_profEad_clicked(bool triggered);
- void on_profIncrement3m_clicked(bool triggered);
- void on_profMod_clicked(bool triggered);
- void on_profNdl_tts_clicked(bool triggered);
- void on_profPO2_clicked(bool triggered);
- void on_profPhe_clicked(bool triggered);
- void on_profPn2_clicked(bool triggered);
- void on_profHR_clicked(bool triggered);
- void on_profRuler_clicked(bool triggered);
- void on_profSAC_clicked(bool triggered);
- void on_profScaled_clicked(bool triggered);
- void on_profTogglePicture_clicked(bool triggered);
- void on_profTankbar_clicked(bool triggered);
+ void on_profCalcAllTissues_triggered(bool triggered);
+ void on_profCalcCeiling_triggered(bool triggered);
+ void on_profDcCeiling_triggered(bool triggered);
+ void on_profEad_triggered(bool triggered);
+ void on_profIncrement3m_triggered(bool triggered);
+ void on_profMod_triggered(bool triggered);
+ void on_profNdl_tts_triggered(bool triggered);
+ void on_profPO2_triggered(bool triggered);
+ void on_profPhe_triggered(bool triggered);
+ void on_profPn2_triggered(bool triggered);
+ void on_profHR_triggered(bool triggered);
+ void on_profRuler_triggered(bool triggered);
+ void on_profSAC_triggered(bool triggered);
+ void on_profScaled_triggered(bool triggered);
+ void on_profTogglePicture_triggered(bool triggered);
+ void on_profTankbar_triggered(bool triggered);
void on_actionExport_triggered();
void on_copy_triggered();
void on_paste_triggered();
@@ -192,6 +192,7 @@ private:
QDialog *survey;
struct dive copyPasteDive;
struct dive_components what;
+ QList<QAction*> profileToolbarActions;
};
#endif // MAINWINDOW_H