Ignore:
Timestamp:
Jun 5, 2007, 4:09:01 PM (17 years ago)
Author:
garnier
Message:

r573@mac-90108: laurentgarnier | 2007-06-05 16:12:24 +0200
remise a jour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/common/include/G4Qt.hh

    r481 r484  
    2525//
    2626//
    27 // $Id: G4Xt.hh,v 1.6 2006/06/29 19:10:14 gunter Exp $
     27// $Id: G4Qt.hh,v 1.6 2007/05/29 11:10:14 $
    2828// GEANT4 tag $Name: geant4-08-01 $
    2929//
    30 //  To unify X11 event treatment between
    31 // G4/interfaces Xt sessions and G4/visualizations Xt drivers.
    32 // G.Barrand
     30//  To unify Qt event treatment between
     31// G4/interfaces Qt sessions and G4/visualizations Qt drivers.
     32// L. Garnier
    3333
    34 #ifndef G4XT_HH
    35 #define G4XT_HH
     34#ifndef G4QT_HH
     35#define G4QT_HH
    3636
    37 #if defined(G4INTY_BUILD_XT) || defined(G4INTY_USE_XT)
    38 
    39 #include <X11/Intrinsic.h>
     37#if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
    4038
    4139#include "G4VInteractorManager.hh"
    4240
     41#include <QtGui/qapplication.h>
     42#include <QtGui/qwidget.h>
     43#include <QtGui/qmainwindow.h>
     44
    4345// Class description :
    4446//
    45 //  G4Xt : a singleton to handle GUI sessions and visualization
    46 // drivers built over Xt. It permits to have one Xt main loop for
    47 // the whole application. The Xt toolkit is inited in the
     47//  G4Qt : a singleton to handle GUI sessions and visualization
     48// drivers built over Qt. It permits to have one Qt main loop for
     49// the whole application. The Qt toolkit is inited in the
    4850// constructor. It is done once for the whole application.
    4951//
    5052// Class description - end :
    5153
    52 class G4Xt : public G4VInteractorManager {
     54class G4Qt : public G4VInteractorManager {
    5355public:
    54   static G4Xt* getInstance();
    55   static G4Xt* getInstance(int,char**,char*);
    56   void PutStringInResourceDatabase(char*);
     56  static G4Qt* getInstance();
     57  static G4Qt* getInstance(int,char**,char*);
    5758  G4bool Inited();
    5859  void* GetEvent();
    5960  void FlushAndWaitExecution();
    60   virtual ~G4Xt();                     
     61  virtual ~G4Qt();                     
    6162private:
    62   G4Xt (int,char**,char*);                     
    63   static G4Xt* instance; // Pointer to single instance.
     63  G4Qt (int,char**,char*);                     
     64  static G4Qt* instance; // Pointer to single instance.
    6465};
    6566
    66 #endif //HAS_XT
     67#endif //HAS_QT
    6768
    6869#endif
Note: See TracChangeset for help on using the changeset viewer.