Changeset 632 for trunk/geant4/interfaces/basic/src
- Timestamp:
- Nov 30, 2007, 3:49:44 PM (17 years ago)
- Location:
- trunk/geant4/interfaces/basic/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r630 r632 25 25 // 26 26 // 27 // $Id: G4UIQt.cc,v 1.1 2 2007/11/15 18:24:27lgarnier Exp $27 // $Id: G4UIQt.cc,v 1.13 2007/11/30 14:28:50 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // L. Garnier 31 31 32 #define GEANT4_QT_DEBUG32 //#define DEBUG 33 33 34 34 #ifdef G4UI_BUILD_QT_SESSION … … 175 175 connect(fCommandHistoryArea, SIGNAL(itemSelectionChanged()), SLOT(CommandHistoryCallback())); 176 176 #endif 177 178 177 fCommandHistoryArea->installEventFilter(this); 179 178 fCommandLabel = new QLabel("",bottomWidget); … … 181 180 fCommandArea = new QLineEdit(bottomWidget); 182 181 fCommandArea->installEventFilter(this); 183 #ifdef GEANT4_QT_DEBUG184 printf("G4UIQt:: 1\n");185 #endif186 182 #if QT_VERSION < 0x040000 187 183 fCommandArea->setActiveWindow(); … … 190 186 #endif 191 187 connect(fCommandArea, SIGNAL(returnPressed()), SLOT(CommandEnteredCallback())); 192 #ifdef GEANT4_QT_DEBUG193 printf("G4UIQt:: 1 connect returnPressed\n");194 #endif195 188 #if QT_VERSION < 0x040000 196 189 fCommandArea->setFocusPolicy ( QWidget::StrongFocus ); … … 207 200 #endif 208 201 209 #ifdef GEANT4_QT_DEBUG210 printf("G4UIQt:: 3\n");211 #endif212 202 213 203 … … 219 209 #endif 220 210 221 #ifdef GEANT4_QT_DEBUG222 printf("G4UIQt:: 4\n");223 #endif224 211 layoutBottom->addWidget(fCommandHistoryArea); 225 212 layoutBottom->addWidget(fCommandLabel); … … 233 220 234 221 235 #ifdef GEANT4_QT_DEBUG236 printf("G4UIQt:: 5\n");237 #endif238 222 fMainWindow->setCentralWidget(splitter); 239 223 … … 250 234 fMainWindow->menuBar()->insertItem( QString("&Help"), helpMenu ); 251 235 252 #ifdef GEANT4_QT_DEBUG253 printf("G4UIQt:: 6\n");254 #endif255 236 256 237 #else … … 263 244 QMenu *helpMenu = fMainWindow->menuBar()->addMenu("Help"); 264 245 helpMenu->addAction("Show Help", this, SLOT(ShowHelpCallback())); 265 #endif266 #ifdef GEANT4_QT_DEBUG267 printf("G4UIQt:: 7\n");268 246 #endif 269 247 … … 279 257 splitter->setSizes(vals); 280 258 } 281 #ifdef GEANT4_QT_DEBUG282 printf("G4UIQt:: 8\n");283 #endif284 259 285 260 if(UI!=NULL) UI->SetCoutDestination(this); // TO KEEP … … 448 423 fTextArea->verticalScrollBar()->setSliderPosition(fTextArea->verticalScrollBar()->maximum()); 449 424 #endif 450 // Slow down everything : disababled451 425 interactorManager->FlushAndWaitExecution(); 452 426 return 0; … … 609 583 610 584 #if QT_VERSION < 0x040000 611 #ifdef GEANT4_QT_DEBUG612 printf("G4UIQt::QTextEdit 1\n");613 #endif614 585 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 622 587 fHelpArea = new QTextEdit(); 623 #ifdef GEANT4_QT_DEBUG624 printf("G4UIQt::end 2\n");625 #endif626 588 #endif 627 589 fHelpArea->setReadOnly(true); … … 1212 1174 ) 1213 1175 { 1214 1215 1176 #if QT_VERSION < 0x040000 1216 1177 G4String ss = G4String(aCommand.ascii()); … … 1316 1277 if (!fCommandHistoryArea) 1317 1278 return ; 1279 1318 1280 1319 1281 #if QT_VERSION < 0x040000 -
trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc
r624 r632 3 3 ** 4 4 ** Created: Tue Nov 13 18:13:09 2007 5 ** by: The Qt MOC ($Id: G4UIQt_moc.cc,v 1. 8 2007/11/15 18:24:28lgarnier Exp $)5 ** by: The Qt MOC ($Id: G4UIQt_moc.cc,v 1.9 2007/11/30 14:28:50 lgarnier Exp $) 6 6 ** 7 7 ** WARNING! All changes made in this file will be lost!
Note: See TracChangeset
for help on using the changeset viewer.