source:
src/UIElements/Qt4/QtMainWindow.hpp@
91c409
| Last change on this file since 91c409 was 85dd16, checked in by , 7 weeks ago | |
|---|---|
|
|
| File size: 1.8 KB | |
| Rev | Line | |
|---|---|---|
| [3027f8] | 1 | /* |
| [4cf323d] | 2 | * QtMainWindow.hpp |
| [3027f8] | 3 | * |
| 4 | * Created on: Jan 14, 2010 | |
| 5 | * Author: crueger | |
| 6 | */ | |
| 7 | ||
| 8 | #ifndef QTMAINWINDOW_HPP_ | |
| 9 | #define QTMAINWINDOW_HPP_ | |
| 10 | ||
| [56f73b] | 11 | // include config.h |
| 12 | #ifdef HAVE_CONFIG_H | |
| 13 | #include <config.h> | |
| 14 | #endif | |
| 15 | ||
| 16 | ||
| [3027f8] | 17 | #include "UIElements/MainWindow.hpp" |
| [cef1d7] | 18 | #include <QtGui/QMainWindow> |
| [3027f8] | 19 | |
| [ffb9ad] | 20 | #include <map> |
| [b2531f] | 21 | #include <set> |
| 22 | ||
| [b59da6] | 23 | #include "Menu/Qt4/QtMenu.hpp" |
| 24 | ||
| [15c8a9] | 25 | #include "types.hpp" |
| 26 | ||
| [0e6156] | 27 | class QtElementList; |
| [d20ded] | 28 | class QtFragmentList; |
| [48eab8] | 29 | class QtGeometryList; |
| [e0b5f0] | 30 | class QtHomologyList; |
| [85dd16] | 31 | class QtPotentialList; |
| [e0b5f0] | 32 | class QtLogBox; |
| 33 | class QtMoleculeList; | |
| [301bc2] | 34 | class QtShapeController; |
| [2c97ad] | 35 | class QtTimeLine; |
| [fa27ed] | 36 | class StringView; |
| [04f017] | 37 | class GLWorldView; |
| [3c53fa] | 38 | class QtInfoBox; |
| [4cf323d] | 39 | class QtStatusBar; |
| [7641d4] | 40 | class QtToolBar; |
| [5125f6] | 41 | class QCloseEvent; |
| [c41ce0] | 42 | class QSize; |
| 43 | class QPoint; | |
| [fa27ed] | 44 | |
| [2f7988] | 45 | class QtObservedInstanceBoard; |
| [15c8a9] | 46 | |
| [4cf323d] | 47 | class QtMainWindow : public QMainWindow, public MainWindow |
| [3027f8] | 48 | { |
| 49 | Q_OBJECT | |
| 50 | ||
| 51 | public: | |
| [4cf323d] | 52 | QtMainWindow(QApplication *_theApp); |
| 53 | virtual ~QtMainWindow(); | |
| [3027f8] | 54 | |
| 55 | virtual void display(); | |
| 56 | ||
| [5125f6] | 57 | protected: |
| 58 | virtual void closeEvent(QCloseEvent *event); | |
| 59 | ||
| [9cdab3] | 60 | public slots: |
| 61 | void slotContextMenuRequested(const QPoint &pos); | |
| [b2531f] | 62 | |
| [8f67e2] | 63 | private: |
| [fa27ed] | 64 | // All kinds of QTStuff used in this window |
| [8f67e2] | 65 | QApplication *theApp; |
| [0eb7bf3] | 66 | QtMoleculeList *moleculeList; |
| [0e6156] | 67 | QtElementList *elementList; |
| [48eab8] | 68 | QtGeometryList *geometryList; |
| [d20ded] | 69 | QtFragmentList *fragmentList; |
| [85dd16] | 70 | QtHomologyList *homologyList; |
| 71 | QtPotentialList *potentialList; | |
| [301bc2] | 72 | QtShapeController *shapeController; |
| [0eb7bf3] | 73 | GLWorldView *glWorldView; |
| [3c53fa] | 74 | QtInfoBox *infoBox; |
| [4cf323d] | 75 | QtStatusBar *statusBar; |
| [b59da6] | 76 | QtMenu<QMenuBar> *MainMenu; |
| [7641d4] | 77 | QtToolBar *toolbar; |
| [2c97ad] | 78 | QtTimeLine *timeline; |
| [e0b5f0] | 79 | QtLogBox *logBox; |
| [d21933] | 80 | QtLogBox *errorlogBox; |
| [c41ce0] | 81 | //!> Used to store old settings value for window size on exit when overridden from command line |
| 82 | QSize settingsSize; | |
| 83 | //!> Used to store old settings value for window position on exit when overridden from command line | |
| 84 | QPoint settingsPosition; | |
| [fa27ed] | 85 | |
| [2f7988] | 86 | QtObservedInstanceBoard *InstanceBoard; |
| [3027f8] | 87 | }; |
| 88 | ||
| 89 | #endif /* QTMAINWINDOW_HPP_ */ |
Note:
See TracBrowser
for help on using the repository browser.
