Changeset 1278


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

bug fix on window

Location:
trunk/source/interfaces
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/interfaces/History

    r1274 r1278  
    1 $Id: History,v 1.135 2010/05/26 14:27:14 lgarnier Exp $
     1$Id: History,v 1.138 2010/05/28 09:14:41 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    1818     ----------------------------------------------------------
    1919
    20 26 May, L. Garnier
     2028 May, L. Garnier
     21 - G4UIQt : Bug fix when compiling on windows
     22
     2328 May, K. Murakami (interfaces-V09-03-04)
     24 - G4UIExective : session type order is changed.
     25                  GUI session is prioritized.
     26
     2726 May, L. Garnier (interfaces-V09-03-03)
    2128 - G4UIQt: Fix some compil errors with qt3
    2229
  • trunk/source/interfaces/basic/GNUmakefile

    r1134 r1278  
    1313
    1414# For debug mode
    15 CPPFLAGS += -DG4DEBUG_INTERFACES_BASIC
     15# CPPFLAGS += -DG4DEBUG_INTERFACES_BASIC
    1616
    1717include $(G4INSTALL)/config/architecture.gmk
  • 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
  • trunk/source/interfaces/basic/src/G4UIQt.cc

    r1277 r1278  
    6767#include <qlistwidget.h>
    6868#include <qtreewidget.h>
     69#include <QResizeEvent>
    6970#else
    7071#include <qaction.h>
     
    324325  // Connect signal
    325326  connect(fCommandArea, SIGNAL(returnPressed()), SLOT(CommandEnteredCallback()));
    326 #if QT_VERSION >= 0x040500
    327327  connect(fTabWidget,   SIGNAL(tabCloseRequested(int)), this, SLOT(TabCloseCallback(int)));
    328 #endif
    329328  connect(fTabWidget, SIGNAL(currentChanged ( int ) ), SLOT(UpdateTabWidget(int)));
    330329  connect(fToolBox, SIGNAL(currentChanged(int)), SLOT(ToolBoxActivated(int)));
  • trunk/source/interfaces/common/GNUmakefile

    r1228 r1278  
    1010
    1111# For debug mode
    12 CPPFLAGS += -DG4DEBUG_INTERFACES_COMMON
     12# CPPFLAGS += -DG4DEBUG_INTERFACES_COMMON
    1313
    1414include $(G4INSTALL)/config/architecture.gmk
  • trunk/source/interfaces/common/src/G4VBasicShell.cc

    r1043 r1278  
    2525//
    2626//
    27 // $Id: G4VBasicShell.cc,v 1.13 2009/05/15 09:34:36 lgarnier Exp $
     27// $Id: G4VBasicShell.cc,v 1.15 2010/01/06 14:04:13 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
Note: See TracChangeset for help on using the changeset viewer.