Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since 5718cc was             9cdab3, checked in by Frederik Heber <frederik.heber@…>, 3 months ago | 
        
          | 
Adds context menu "atom" to GLWorldView.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.8 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * QtMainWindow.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Jan 14, 2010 | 
|---|
| 5 | *      Author: crueger | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef QTMAINWINDOW_HPP_ | 
|---|
| 9 | #define QTMAINWINDOW_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | #include "UIElements/MainWindow.hpp" | 
|---|
| 18 | #include <QtGui/QMainWindow> | 
|---|
| 19 |  | 
|---|
| 20 | #include <map> | 
|---|
| 21 | #include <set> | 
|---|
| 22 |  | 
|---|
| 23 | #include "Menu/Qt4/QtMenu.hpp" | 
|---|
| 24 |  | 
|---|
| 25 | #include "types.hpp" | 
|---|
| 26 |  | 
|---|
| 27 | class QtElementList; | 
|---|
| 28 | class QtFragmentList; | 
|---|
| 29 | class QtGeometryList; | 
|---|
| 30 | class QtHomologyList; | 
|---|
| 31 | class QtLogBox; | 
|---|
| 32 | class QtMoleculeList; | 
|---|
| 33 | class QtShapeController; | 
|---|
| 34 | class QtTimeLine; | 
|---|
| 35 | class StringView; | 
|---|
| 36 | class GLWorldView; | 
|---|
| 37 | class QtInfoBox; | 
|---|
| 38 | class QtStatusBar; | 
|---|
| 39 | class QtToolBar; | 
|---|
| 40 | class QCloseEvent; | 
|---|
| 41 | class QSize; | 
|---|
| 42 | class QPoint; | 
|---|
| 43 |  | 
|---|
| 44 | class QtObservedInstanceBoard; | 
|---|
| 45 |  | 
|---|
| 46 | class QtMainWindow : public QMainWindow, public MainWindow | 
|---|
| 47 | { | 
|---|
| 48 | Q_OBJECT | 
|---|
| 49 |  | 
|---|
| 50 | public: | 
|---|
| 51 | QtMainWindow(QApplication *_theApp); | 
|---|
| 52 | virtual ~QtMainWindow(); | 
|---|
| 53 |  | 
|---|
| 54 | virtual void display(); | 
|---|
| 55 |  | 
|---|
| 56 | protected: | 
|---|
| 57 | virtual void closeEvent(QCloseEvent *event); | 
|---|
| 58 |  | 
|---|
| 59 | public slots: | 
|---|
| 60 | void slotContextMenuRequested(const QPoint &pos); | 
|---|
| 61 |  | 
|---|
| 62 | private: | 
|---|
| 63 | // All kinds of QTStuff used in this window | 
|---|
| 64 | QApplication *theApp; | 
|---|
| 65 | QtMoleculeList *moleculeList; | 
|---|
| 66 | QtElementList *elementList; | 
|---|
| 67 | QtGeometryList *geometryList; | 
|---|
| 68 | QtHomologyList *homologyList; | 
|---|
| 69 | QtFragmentList *fragmentList; | 
|---|
| 70 | QtShapeController *shapeController; | 
|---|
| 71 | GLWorldView *glWorldView; | 
|---|
| 72 | QtInfoBox *infoBox; | 
|---|
| 73 | QtStatusBar *statusBar; | 
|---|
| 74 | QtMenu<QMenuBar> *MainMenu; | 
|---|
| 75 | QtToolBar *toolbar; | 
|---|
| 76 | QtTimeLine *timeline; | 
|---|
| 77 | QtLogBox *logBox; | 
|---|
| 78 | QtLogBox *errorlogBox; | 
|---|
| 79 | //!> Used to store old settings value for window size on exit when overridden from command line | 
|---|
| 80 | QSize settingsSize; | 
|---|
| 81 | //!> Used to store old settings value for window position on exit when overridden from command line | 
|---|
| 82 | QPoint settingsPosition; | 
|---|
| 83 |  | 
|---|
| 84 | QtObservedInstanceBoard *InstanceBoard; | 
|---|
| 85 | }; | 
|---|
| 86 |  | 
|---|
| 87 | #endif /* QTMAINWINDOW_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.