Changeset 867 for trunk/source/interfaces
- Timestamp:
- Oct 15, 2008, 2:49:22 PM (16 years ago)
- Location:
- trunk/source/interfaces
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/History
r862 r867 1 $Id: History,v 1.10 0 2008/10/07 00:46:19lgarnier Exp $1 $Id: History,v 1.101 2008/10/15 09:09:47 lgarnier Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 18 18 ---------------------------------------------------------- 19 19 20 15 October, Laurent Garnier 21 - Fix a problem on some linux with QApplication. But this is NOT the good way to do it... 22 - Fix a qt3 backward compatibility on G4UIQt.cc 23 24 20 25 7 October, Laurent Garnier 21 26 - Fix a G4cout possible problem cause by recursive G4cout call. -
trunk/source/interfaces/basic/include/G4UIQt.hh
r850 r867 25 25 // 26 26 // 27 // $Id: G4UIQt.hh,v 1.1 2 2008/03/10 17:03:16lgarnier Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4UIQt.hh,v 1.14 2008/10/15 09:09:47 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 #ifndef G4UIQt_h … … 58 58 // Class description : 59 59 // 60 // G4UIQt : class to handle a Motifinteractive session.61 // G4UIQt is the Motifversion of G4UIterminal.60 // G4UIQt : class to handle a Qt interactive session. 61 // G4UIQt is the Qt version of G4UIterminal. 62 62 // 63 63 // A command box is at disposal for entering/recalling Geant4 commands. … … 80 80 81 81 public: // With description 82 G4UIQt(int ,char**);82 G4UIQt(int*,char**); 83 83 // (argv, argc) or (0, NULL) had to be given. 84 84 G4UIsession* SessionStart(); -
trunk/source/interfaces/basic/src/G4UIQt.cc
r861 r867 25 25 // 26 26 // 27 // $Id: G4UIQt.cc,v 1. 18 2008/10/02 08:50:39lgarnier Exp $27 // $Id: G4UIQt.cc,v 1.20 2008/10/15 09:09:47 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 70 70 #include <qlistview.h> 71 71 #include <qpopupmenu.h> 72 #include <qwidgetlist.h> 72 73 #endif 73 74 … … 101 102 */ 102 103 G4UIQt::G4UIQt ( 103 int argc104 int* argc 104 105 ,char** argv 105 106 ) 106 107 :fHelpDialog(NULL) 107 108 { 108 #ifdef GEANT4_QT_DEBUG109 printf("G4UIQt::Initialise %d %s\n",argc,argv[0]);110 #endif111 109 G4Qt* interactorManager = G4Qt::getInstance (argc,argv,(char*)"Qt"); 112 110 G4UImanager* UI = G4UImanager::GetUIpointer(); -
trunk/source/interfaces/common/include/G4Qt.hh
r850 r867 25 25 // 26 26 // 27 // $Id: G4Qt.hh,v 1. 2 2007/11/08 17:00:09lgarnier Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Qt.hh,v 1.3 2008/10/15 09:09:47 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // To unify Qt event treatment between … … 51 51 public: 52 52 static G4Qt* getInstance(); 53 static G4Qt* getInstance(int ,char**,char*);53 static G4Qt* getInstance(int*,char**,char*); 54 54 G4bool Inited(); 55 55 void* GetEvent(); … … 57 57 virtual ~G4Qt(); 58 58 private: 59 G4Qt (int ,char**,char*);59 G4Qt (int*,char**,char*); 60 60 static G4Qt* instance; // Pointer to single instance. 61 61 }; -
trunk/source/interfaces/common/src/G4Qt.cc
r856 r867 25 25 // 26 26 // 27 // $Id: G4Qt.cc,v 1. 7 2007/11/15 18:24:28lgarnier Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Qt.cc,v 1.9 2008/10/15 09:09:47 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // L. Garnier … … 42 42 43 43 44 #define NewString(str) \45 ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : NULL)46 47 //static void XWidgetIconify (Widget);48 //static void XWidgetUniconify (Widget);49 //static void XDisplaySetWindowToNormalState (Display*,Window);50 51 44 G4Qt* G4Qt::instance = NULL; 52 45 53 46 static G4bool QtInited = FALSE; 54 //static int argn = 0;55 //static char** args = NULL;56 // static QtAppContext appContext = NULL;57 //static QApplication app = NULL;58 47 59 48 /***************************************************************************/ … … 67 56 /***************************************************************************/ 68 57 G4Qt* G4Qt::getInstance ( 69 int a_argn58 int* a_argn 70 59 ,char** a_args 71 60 ,char* a_class … … 81 70 /***************************************************************************/ 82 71 G4Qt::G4Qt ( 83 int a_argn72 int* a_argn 84 73 ,char** a_args 85 74 ,char* a_class … … 99 88 SetMainInteractor (qApp); 100 89 //#endif 101 SetArguments ( a_argn,a_args);90 SetArguments (*a_argn,a_args); 102 91 #ifdef GEANT4_QT_DEBUG 103 92 printf("G4Qt::G4Qt alredy inited in external \n"); … … 110 99 #endif 111 100 #if QT_VERSION < 0x040000 112 qApp = new QApplication ( a_argn, a_args);101 qApp = new QApplication (*a_argn, a_args); 113 102 // QApplication qApp(a_argn, a_args); 114 103 // if(&qApp == NULL) { 115 104 #else 116 new QApplication ( a_argn, a_args);105 new QApplication (*a_argn, a_args); 117 106 #endif 118 107 if(!qApp) { … … 126 115 SetMainInteractor (qApp); 127 116 //#endif 128 SetArguments ( a_argn,a_args);117 SetArguments (*a_argn,a_args); 129 118 #ifdef GEANT4_QT_DEBUG 130 119 printf("G4Qt::G4Qt inited Qt END\n");
Note: See TracChangeset
for help on using the changeset viewer.