Ignore:
Timestamp:
Nov 30, 2007, 3:49:44 PM (17 years ago)
Author:
garnier
Message:

commit sur geant4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r630 r632  
    2525//
    2626//
    27 // $Id: G4UIQt.cc,v 1.12 2007/11/15 18:24:27 lgarnier Exp $
     27// $Id: G4UIQt.cc,v 1.13 2007/11/30 14:28:50 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
    3030// L. Garnier
    3131
    32 #define GEANT4_QT_DEBUG
     32//#define DEBUG
    3333
    3434#ifdef G4UI_BUILD_QT_SESSION
     
    175175  connect(fCommandHistoryArea, SIGNAL(itemSelectionChanged()), SLOT(CommandHistoryCallback()));
    176176#endif
    177 
    178177  fCommandHistoryArea->installEventFilter(this);
    179178  fCommandLabel = new QLabel("",bottomWidget);
     
    181180  fCommandArea = new QLineEdit(bottomWidget);
    182181  fCommandArea->installEventFilter(this);
    183 #ifdef GEANT4_QT_DEBUG
    184   printf("G4UIQt::   1\n");
    185 #endif
    186182#if QT_VERSION < 0x040000
    187183  fCommandArea->setActiveWindow();
     
    190186#endif
    191187  connect(fCommandArea, SIGNAL(returnPressed()), SLOT(CommandEnteredCallback()));
    192 #ifdef GEANT4_QT_DEBUG
    193   printf("G4UIQt::   1 connect returnPressed\n");
    194 #endif
    195188#if QT_VERSION < 0x040000
    196189  fCommandArea->setFocusPolicy ( QWidget::StrongFocus );
     
    207200#endif
    208201
    209 #ifdef GEANT4_QT_DEBUG
    210   printf("G4UIQt::   3\n");
    211 #endif
    212202
    213203
     
    219209#endif
    220210
    221 #ifdef GEANT4_QT_DEBUG
    222   printf("G4UIQt::   4\n");
    223 #endif
    224211  layoutBottom->addWidget(fCommandHistoryArea);
    225212  layoutBottom->addWidget(fCommandLabel);
     
    233220
    234221
    235 #ifdef GEANT4_QT_DEBUG
    236   printf("G4UIQt::   5\n");
    237 #endif
    238222  fMainWindow->setCentralWidget(splitter);
    239223
     
    250234  fMainWindow->menuBar()->insertItem( QString("&Help"), helpMenu );
    251235
    252 #ifdef GEANT4_QT_DEBUG
    253   printf("G4UIQt::   6\n");
    254 #endif
    255236
    256237#else
     
    263244  QMenu *helpMenu = fMainWindow->menuBar()->addMenu("Help");
    264245  helpMenu->addAction("Show Help", this, SLOT(ShowHelpCallback()));
    265 #endif
    266 #ifdef GEANT4_QT_DEBUG
    267   printf("G4UIQt::   7\n");
    268246#endif
    269247
     
    279257    splitter->setSizes(vals);
    280258  }
    281 #ifdef GEANT4_QT_DEBUG
    282   printf("G4UIQt::   8\n");
    283 #endif
    284259
    285260  if(UI!=NULL) UI->SetCoutDestination(this);  // TO KEEP
     
    448423  fTextArea->verticalScrollBar()->setSliderPosition(fTextArea->verticalScrollBar()->maximum());
    449424#endif
    450   // Slow down everything : disababled
    451425  interactorManager->FlushAndWaitExecution();
    452426  return 0;
     
    609583
    610584#if QT_VERSION < 0x040000
    611 #ifdef GEANT4_QT_DEBUG
    612   printf("G4UIQt::QTextEdit 1\n");
    613 #endif
    614585    fHelpArea = new QTextEdit(splitter);
    615 #ifdef GEANT4_QT_DEBUG
    616   printf("G4UIQt::end 1\n");
    617 #endif
    618 #else
    619 #ifdef GEANT4_QT_DEBUG
    620   printf("G4UIQt::QTextEdit 2\n");
    621 #endif
     586#else
    622587    fHelpArea = new QTextEdit();
    623 #ifdef GEANT4_QT_DEBUG
    624   printf("G4UIQt::end 2\n");
    625 #endif
    626588#endif
    627589    fHelpArea->setReadOnly(true);
     
    12121174)
    12131175{
    1214 
    12151176#if QT_VERSION < 0x040000
    12161177  G4String ss = G4String(aCommand.ascii());
     
    13161277  if (!fCommandHistoryArea)
    13171278    return ;
     1279
    13181280 
    13191281#if QT_VERSION < 0x040000
Note: See TracChangeset for help on using the changeset viewer.