Changeset 1117
- Timestamp:
- Oct 6, 2009, 5:03:22 PM (15 years ago)
- Location:
- trunk/source/interfaces/basic/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/include/G4UIExecutive.hh
r1059 r1117 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4UIExecutive.hh,v 1. 2 2009/05/15 07:15:16kmura Exp $26 // $Id: G4UIExecutive.hh,v 1.3 2009/05/28 06:13:03 kmura Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 42 42 // ... 43 43 // G4UIExecutive* myapp = new G4UIExecutive(argc, argv); 44 // if (session->IsGUI()) 45 // // Do any extra for a GUI session 46 // 44 47 // myapp-> SessionStart(); 45 48 // ... … … 59 62 G4UIsession* session; 60 63 G4VUIshell* shell; 64 G4bool isGUI; 61 65 62 66 public: 63 67 G4UIExecutive(G4int argc=1, char** argv=0); 64 68 ~G4UIExecutive(); 69 70 G4bool IsGUI() const; 71 G4UIsession* GetSession() const; 65 72 66 73 void SetPrompt(const G4String& prompt); -
trunk/source/interfaces/basic/include/G4UIExecutive.icc
r1058 r1117 25 25 // 26 26 // 27 // $Id: G4UIExecutive.icc,v 1. 2 2009/05/15 07:15:16kmura Exp $27 // $Id: G4UIExecutive.icc,v 1.4 2009/05/28 06:13:03 kmura Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 55 55 #endif 56 56 57 58 57 ///////////////////////////////////////////////////// 59 #if defined(G4UI_USE_XM) || defined(G4UI_USE_ WIN32) || defined(G4UI_USE_QT)58 #if defined(G4UI_USE_XM) || defined(G4UI_USE_QT) 60 59 G4UIExecutive::G4UIExecutive(G4int argc, char** argv) 61 60 #else 62 61 G4UIExecutive::G4UIExecutive(G4int, char**) 63 62 #endif 64 : session(0), shell(0) 63 : session(0), shell(0),isGUI(false) 65 64 ///////////////////////////////////////////////////// 66 65 { … … 71 70 #elif defined(G4UI_USE_XM) 72 71 session = new G4UIXm(argc, argv); 72 isGUI = true; 73 73 74 74 #elif defined(G4UI_USE_WIN32) … … 77 77 #elif defined(G4UI_USE_QT) 78 78 session = new G4UIQt(argc, argv); 79 isGUI = true; 79 80 80 81 #else … … 89 90 /////////////////////////////// 90 91 { 92 } 93 94 ////////////////////////////////////////// 95 inline G4bool G4UIExecutive::IsGUI() const 96 ////////////////////////////////////////// 97 { 98 return isGUI; 99 } 100 101 ///////////////////////////////////////////////////// 102 inline G4UIsession* G4UIExecutive::GetSession() const 103 ///////////////////////////////////////////////////// 104 { 105 return session; 91 106 } 92 107
Note: See TracChangeset
for help on using the changeset viewer.