Changeset 850 for trunk/source/interfaces/common/src
- Timestamp:
- Sep 10, 2008, 5:40:37 PM (16 years ago)
- Location:
- trunk/source/interfaces/common/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/common/src/G4Qt.cc
r836 r850 26 26 // 27 27 // $Id: G4Qt.cc,v 1.7 2007/11/15 18:24:28 lgarnier Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // L. Garnier 31 32 #define GEANT4_QT_DEBUG33 31 34 32 #if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT) … … 95 93 if(QtInited==FALSE) { //Qt should be Inited once ! 96 94 #ifdef GEANT4_QT_DEBUG 95 printf("G4Qt::G4Qt inited Qt\n"); 96 #endif 97 #if QT_VERSION < 0x040000 98 qApp = new QApplication (a_argn, a_args); 99 // QApplication qApp(a_argn, a_args); 100 // if(&qApp == NULL) { 101 #else 102 new QApplication (a_argn, a_args); 97 103 #endif 98 104 if(!qApp) { 99 #if QT_VERSION < 0x040000 100 qApp = new QApplication (a_argn, a_args); 101 // QApplication qApp(a_argn, a_args); 102 // if(&qApp == NULL) { 103 #else 104 new QApplication (a_argn, a_args); 105 #endif 106 } 107 if(!qApp) { 105 108 106 G4cout << "G4Qt : Unable to init Qt." << G4endl; 109 107 } else { 110 108 QtInited = TRUE; 109 //#if QT_VERSION < 0x040000 110 // SetMainInteractor (&qApp); 111 //#else 111 112 SetMainInteractor (qApp); 113 //#endif 112 114 SetArguments (a_argn,a_args); 113 115 #ifdef GEANT4_QT_DEBUG … … 144 146 } 145 147 /***************************************************************************/ 146 // Should do nothing in Qt 148 /** 149 Si j'ai bien compris, cette fonction ne sert à rien 150 */ 147 151 void* G4Qt::GetEvent ( 148 152 ) … … 150 154 /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ 151 155 { 156 //FIXME 157 // G4cout << "G4Qt : Rien compris a cette fonction G4Qt::GetEvent." << G4endl; 158 // static XEvent event; 159 // if(appContext==NULL) return NULL; 160 // if(mainApp==NULL) return NULL; 161 // QtAppNextEvent (appContext, &event); 162 // return &event; 163 printf("*"); 152 164 return 0; 153 165 } … … 158 170 /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ 159 171 { 172 // printf("G4Qt::FlushAndWaitExecution :: Flush ....\n"); 160 173 if(!qApp) return; 161 174 qApp->processEvents(); -
trunk/source/interfaces/common/src/G4VBasicShell.cc
r631 r850 26 26 // 27 27 // $Id: G4VBasicShell.cc,v 1.12 2006/06/29 19:10:20 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 -
trunk/source/interfaces/common/src/G4VInteractorManager.cc
r631 r850 26 26 // 27 27 // $Id: G4VInteractorManager.cc,v 1.13 2006/06/29 19:10:24 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // G.Barrand -
trunk/source/interfaces/common/src/G4Win32.cc
r631 r850 26 26 // 27 27 // $Id: G4Win32.cc,v 1.9 2006/06/29 19:10:26 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // G.Barrand -
trunk/source/interfaces/common/src/G4Xt.cc
r631 r850 26 26 // 27 27 // $Id: G4Xt.cc,v 1.11 2006/06/29 19:10:28 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // G.Barrand
Note: See TracChangeset
for help on using the changeset viewer.