diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-27 20:09:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-27 20:09:57 -0800 |
commit | 76e6420f6b3503b76bd3eec00ab0e53d6ea17a20 (patch) | |
tree | 8b50298f41bd29d55bbd6f4301f36ad31dc0b008 /qt-ui/mainwindow.h | |
parent | 006265d7a088cff4fea665159dbb454956c2cd76 (diff) | |
download | subsurface-76e6420f6b3503b76bd3eec00ab0e53d6ea17a20.tar.gz |
Massive automated whitespace cleanup
I know everyone will hate it.
Go ahead. Complain. Call me names.
At least now things are consistent and reproducible.
If you want changes, have your complaint come with a patch to
scripts/whitespace.pl so that we can automate it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 9c91a869c..aae4e54b2 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -29,16 +29,33 @@ class MainTab; class ProfileGraphicsView; class QWebView; -enum MainWindowTitleFormat { MWTF_DEFAULT, MWTF_FILENAME }; +enum MainWindowTitleFormat { + MWTF_DEFAULT, + MWTF_FILENAME +}; -class MainWindow : public QMainWindow -{ -Q_OBJECT +class MainWindow : public QMainWindow { + Q_OBJECT public: - enum {COLLAPSED, EXPANDED}; - enum StackWidgetIndexes{ PROFILE, PLANNERPROFILE}; - enum InfoWidgetIndexes{ MAINTAB, PLANNERWIDGET}; - enum CurrentState{ VIEWALL, GLOBE_MAXIMIZED, INFO_MAXIMIZED, PROFILE_MAXIMIZED, LIST_MAXIMIZED}; + enum { + COLLAPSED, + EXPANDED + }; + enum StackWidgetIndexes { + PROFILE, + PLANNERPROFILE + }; + enum InfoWidgetIndexes { + MAINTAB, + PLANNERWIDGET + }; + enum CurrentState { + VIEWALL, + GLOBE_MAXIMIZED, + INFO_MAXIMIZED, + PROFILE_MAXIMIZED, + LIST_MAXIMIZED + }; MainWindow(); virtual ~MainWindow(); @@ -60,7 +77,8 @@ public: void importFiles(const QStringList importFiles); void cleanUpEmpty(); QTabWidget *tabWidget(); -private slots: +private +slots: /* file menu action */ void recentFileTriggered(bool checked); void on_actionNew_triggered(); @@ -127,7 +145,8 @@ private slots: protected: void closeEvent(QCloseEvent *); -public slots: +public +slots: void readSettings(); void refreshDisplay(bool recreateDiveList = true); void showProfile(); @@ -149,7 +168,7 @@ private: void beginChangeState(CurrentState s); void saveSplitterSizes(); QString lastUsedDir(); - void updateLastUsedDir(const QString& s); + void updateLastUsedDir(const QString &s); }; MainWindow *mainWindow(); |