Changeset 484 for trunk/geant4/interfaces/common/include/G4Qt.hh
- Timestamp:
- Jun 5, 2007, 4:09:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/common/include/G4Qt.hh
r481 r484 25 25 // 26 26 // 27 // $Id: G4 Xt.hh,v 1.6 2006/06/29 19:10:14 gunter Exp$27 // $Id: G4Qt.hh,v 1.6 2007/05/29 11:10:14 $ 28 28 // GEANT4 tag $Name: geant4-08-01 $ 29 29 // 30 // To unify X11event treatment between31 // G4/interfaces Xt sessions and G4/visualizations Xt drivers.32 // G.Barrand30 // To unify Qt event treatment between 31 // G4/interfaces Qt sessions and G4/visualizations Qt drivers. 32 // L. Garnier 33 33 34 #ifndef G4 XT_HH35 #define G4 XT_HH34 #ifndef G4QT_HH 35 #define G4QT_HH 36 36 37 #if defined(G4INTY_BUILD_XT) || defined(G4INTY_USE_XT) 38 39 #include <X11/Intrinsic.h> 37 #if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT) 40 38 41 39 #include "G4VInteractorManager.hh" 42 40 41 #include <QtGui/qapplication.h> 42 #include <QtGui/qwidget.h> 43 #include <QtGui/qmainwindow.h> 44 43 45 // Class description : 44 46 // 45 // G4 Xt : a singleton to handle GUI sessions and visualization46 // drivers built over Xt. It permits to have one Xt main loop for47 // the whole application. The Xt toolkit is inited in the47 // G4Qt : a singleton to handle GUI sessions and visualization 48 // drivers built over Qt. It permits to have one Qt main loop for 49 // the whole application. The Qt toolkit is inited in the 48 50 // constructor. It is done once for the whole application. 49 51 // 50 52 // Class description - end : 51 53 52 class G4 Xt : public G4VInteractorManager {54 class G4Qt : public G4VInteractorManager { 53 55 public: 54 static G4Xt* getInstance(); 55 static G4Xt* getInstance(int,char**,char*); 56 void PutStringInResourceDatabase(char*); 56 static G4Qt* getInstance(); 57 static G4Qt* getInstance(int,char**,char*); 57 58 G4bool Inited(); 58 59 void* GetEvent(); 59 60 void FlushAndWaitExecution(); 60 virtual ~G4 Xt();61 virtual ~G4Qt(); 61 62 private: 62 G4 Xt (int,char**,char*);63 static G4 Xt* instance; // Pointer to single instance.63 G4Qt (int,char**,char*); 64 static G4Qt* instance; // Pointer to single instance. 64 65 }; 65 66 66 #endif //HAS_ XT67 #endif //HAS_QT 67 68 68 69 #endif
Note: See TracChangeset
for help on using the changeset viewer.