Ignore:
Timestamp:
May 28, 2010, 11:36:37 AM (14 years ago)
Author:
garnier
Message:

bug fix on window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/interfaces/basic/include/G4UIExecutive.icc

    r1243 r1278  
    2525//
    2626//
    27 // $Id: G4UIExecutive.icc,v 1.6 2009/11/20 22:10:31 kmura Exp $
     27// $Id: G4UIExecutive.icc,v 1.7 2010/05/28 08:12:27 kmura Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    3535#include "G4UImanager.hh"
    3636
    37 #if defined(G4UI_USE_TCSH)
    38 #include "G4UIterminal.hh"
    39 #include "G4UItcsh.hh"
     37#if defined(G4UI_USE_QT)
     38#include "G4UIQt.hh"
     39#include "G4Qt.hh"
    4040
    4141#elif defined(G4UI_USE_XM)
     
    4545#include "G4UIWin32.hh"
    4646
    47 #elif defined(G4UI_USE_QT)
    48 #include "G4UIQt.hh"
    49 #include "G4Qt.hh"
     47#elif defined(G4UI_USE_TCSH)
     48#include "G4UIterminal.hh"
     49#include "G4UItcsh.hh"
    5050
    5151#else
     
    6262/////////////////////////////////////////////////////
    6363{
    64 #if defined(G4UI_USE_TCSH)
    65   DISCARD_PARAMETER(argc);
    66   DISCARD_PARAMETER(argv);
    67 
    68   shell = new G4UItcsh;
    69   session = new G4UIterminal(shell);
     64#if defined(G4UI_USE_QT)
     65  session = new G4UIQt(argc, argv);
     66  isGUI = true;
    7067
    7168#elif defined(G4UI_USE_XM)
     
    7976  session = new G4UIWin32();
    8077
    81 #elif defined(G4UI_USE_QT)
    82   session = new G4UIQt(argc, argv);
    83   isGUI = true;
    84    
     78#elif defined(G4UI_USE_TCSH)
     79  DISCARD_PARAMETER(argc);
     80  DISCARD_PARAMETER(argv);
     81
     82  shell = new G4UItcsh;
     83  session = new G4UIterminal(shell);
     84
    8585#else
    8686  DISCARD_PARAMETER(argc);
     
    121121
    122122//////////////////////////////////////////////////////////////
    123 inline void G4UIExecutive::SetLsColor(TermColorIndex dirColor, 
     123inline void G4UIExecutive::SetLsColor(TermColorIndex dirColor,
    124124                                      TermColorIndex cmdColor)
    125125//////////////////////////////////////////////////////////////
     
    133133{
    134134  session-> SessionStart();
    135   delete session; 
     135  delete session;
    136136}
    137137
Note: See TracChangeset for help on using the changeset viewer.