Ignore:
Timestamp:
Dec 16, 2009, 12:14:47 PM (15 years ago)
Author:
garnier
Message:

CVS update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/GettingStarted/mainProgram.xml

    r904 r1222  
    66<!--    Proof read by: Joe Chuma,  14-Jun-1999                -->
    77<!--    Converted to DocBook: Katsuya Amako, Aug-2006         -->
     8<!--    Updated by Koichi Murakami, Dec-2009                  -->
    89<!--                                                          -->
    910<!-- ******************************************************** -->
     
    362363 #include "G4RunManager.hh"
    363364 #include "G4UImanager.hh"
    364  <emphasis role="color_blue">#include "G4UIterminal.hh"</emphasis>
     365 <emphasis role="color_blue">#include "G4UIExecutive.hh"</emphasis>
    365366 #include "G4VisExecutive.hh"
    366367
     
    395396   
    396397   // get the pointer to the User Interface manager
    397    G4UImanager* UI = G4UImanager::GetUIpointer();
     398   G4UImanager* UImanager = G4UImanager::GetUIpointer();
    398399
    399400 <emphasis role="color_blue">
     
    401402   // Define (G)UI terminal for interactive mode
    402403   {
    403      G4UIsession * session = new G4UIterminal;
    404      UI-&gt;ApplyCommand("/control/execute prerun.g4mac");
    405      session-&gt;sessionStart();
    406      delete session;
     404     G4UIExecutive * ui = new G4UIExecutive(argc,argv);
     405     UImanager-&gt;ApplyCommand("/control/execute prerun.g4mac");
     406     ui-&gt;sessionStart();
     407     delete ui;
    407408   }
    408409   else
     
    411412     G4String command = "/control/execute ";
    412413     G4String fileName = argv[1];
    413      UI-&gt;ApplyCommand(command+fileName);
     414     UImanager-&gt;ApplyCommand(command+fileName);
    414415   }
    415416</emphasis>
Note: See TracChangeset for help on using the changeset viewer.