Ignore:
Timestamp:
Jun 11, 2008, 2:29:46 PM (16 years ago)
Author:
garnier
Message:

import all except CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/interfaces/common/src/G4Qt.cc

    r632 r836  
    2929//
    3030// L. Garnier
     31
     32#define GEANT4_QT_DEBUG
    3133
    3234#if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
     
    9395  if(QtInited==FALSE) {  //Qt should be Inited once !
    9496#ifdef GEANT4_QT_DEBUG
    95     printf("G4Qt::G4Qt inited Qt\n");
    96 #endif
    97 #if QT_VERSION < 0x040000
    98     qApp = new QApplication (a_argn, a_args);
    99     //    QApplication qApp(a_argn, a_args);
    100     //    if(&qApp == NULL) {
    101 #else
    102     new QApplication (a_argn, a_args);
    10397#endif
    10498    if(!qApp) {
    105 
     99#if QT_VERSION < 0x040000
     100      qApp = new QApplication (a_argn, a_args);
     101      //    QApplication qApp(a_argn, a_args);
     102      //    if(&qApp == NULL) {
     103#else
     104      new QApplication (a_argn, a_args);
     105#endif
     106    }
     107    if(!qApp) {
    106108      G4cout        << "G4Qt : Unable to init Qt." << G4endl;
    107109    } else {
    108110      QtInited  = TRUE;
    109       //#if QT_VERSION < 0x040000
    110       //      SetMainInteractor (&qApp);
    111       //#else
    112111      SetMainInteractor (qApp);
    113       //#endif
    114112      SetArguments      (a_argn,a_args);
    115113#ifdef GEANT4_QT_DEBUG
     
    146144}
    147145/***************************************************************************/
    148 /**
    149   Si j'ai bien compris, cette fonction ne sert à rien
    150  */
     146// Should do nothing in Qt
    151147void* G4Qt::GetEvent (
    152148)
     
    154150/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    155151{
    156 //FIXME
    157 //   G4cout        << "G4Qt : Rien compris a cette fonction G4Qt::GetEvent." << G4endl;
    158 //  static XEvent  event;
    159 //  if(appContext==NULL) return NULL;
    160 //  if(mainApp==NULL) return NULL;
    161 //  QtAppNextEvent (appContext, &event);
    162 //  return         &event;
    163   printf("*");
    164152  return 0;
    165153}
     
    170158/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    171159{
    172   //  printf("G4Qt::FlushAndWaitExecution ::  Flush ....\n");
    173160  if(!qApp) return;
    174161  qApp->processEvents();
Note: See TracChangeset for help on using the changeset viewer.