Changeset 1222 for trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/GettingStarted/mainProgram.xml
- Timestamp:
- Dec 16, 2009, 12:14:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/GettingStarted/mainProgram.xml
r904 r1222 6 6 <!-- Proof read by: Joe Chuma, 14-Jun-1999 --> 7 7 <!-- Converted to DocBook: Katsuya Amako, Aug-2006 --> 8 <!-- Updated by Koichi Murakami, Dec-2009 --> 8 9 <!-- --> 9 10 <!-- ******************************************************** --> … … 362 363 #include "G4RunManager.hh" 363 364 #include "G4UImanager.hh" 364 <emphasis role="color_blue">#include "G4UI terminal.hh"</emphasis>365 <emphasis role="color_blue">#include "G4UIExecutive.hh"</emphasis> 365 366 #include "G4VisExecutive.hh" 366 367 … … 395 396 396 397 // get the pointer to the User Interface manager 397 G4UImanager* UI = G4UImanager::GetUIpointer();398 G4UImanager* UImanager = G4UImanager::GetUIpointer(); 398 399 399 400 <emphasis role="color_blue"> … … 401 402 // Define (G)UI terminal for interactive mode 402 403 { 403 G4UI session * session = new G4UIterminal;404 UI ->ApplyCommand("/control/execute prerun.g4mac");405 session->sessionStart();406 delete session;404 G4UIExecutive * ui = new G4UIExecutive(argc,argv); 405 UImanager->ApplyCommand("/control/execute prerun.g4mac"); 406 ui->sessionStart(); 407 delete ui; 407 408 } 408 409 else … … 411 412 G4String command = "/control/execute "; 412 413 G4String fileName = argv[1]; 413 UI ->ApplyCommand(command+fileName);414 UImanager->ApplyCommand(command+fileName); 414 415 } 415 416 </emphasis>
Note: See TracChangeset
for help on using the changeset viewer.