Changeset 1243 for trunk/source
- Timestamp:
- Apr 21, 2010, 3:51:50 PM (14 years ago)
- Location:
- trunk/source/interfaces
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/include/G4UIExecutive.hh
r1117 r1243 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4UIExecutive.hh,v 1. 3 2009/05/28 06:13:03kmura Exp $26 // $Id: G4UIExecutive.hh,v 1.4 2009/11/20 22:10:31 kmura Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 65 65 66 66 public: 67 G4UIExecutive(G4int argc =1, char** argv=0);67 G4UIExecutive(G4int argc, char** argv); 68 68 ~G4UIExecutive(); 69 69 -
trunk/source/interfaces/basic/include/G4UIExecutive.icc
r1210 r1243 25 25 // 26 26 // 27 // $Id: G4UIExecutive.icc,v 1. 4 2009/05/28 06:13:03kmura Exp $27 // $Id: G4UIExecutive.icc,v 1.6 2009/11/20 22:10:31 kmura Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 55 55 #endif 56 56 57 #define DISCARD_PARAMETER(p) (void)p 58 57 59 ///////////////////////////////////////////////////// 58 #if defined(G4UI_USE_XM) || defined(G4UI_USE_QT)59 60 G4UIExecutive::G4UIExecutive(G4int argc, char** argv) 60 #else61 G4UIExecutive::G4UIExecutive(G4int, char**)62 #endif63 61 : session(0), shell(0),isGUI(false) 64 62 ///////////////////////////////////////////////////// 65 63 { 66 64 #if defined(G4UI_USE_TCSH) 65 DISCARD_PARAMETER(argc); 66 DISCARD_PARAMETER(argv); 67 67 68 shell = new G4UItcsh; 68 69 session = new G4UIterminal(shell); … … 73 74 74 75 #elif defined(G4UI_USE_WIN32) 76 DISCARD_PARAMETER(argc); 77 DISCARD_PARAMETER(argv); 78 75 79 session = new G4UIWin32(); 76 80 77 81 #elif defined(G4UI_USE_QT) 78 // G4int argc2 = 0;79 // char** argv2 = 0;80 82 session = new G4UIQt(argc, argv); 81 // session = new G4UIQt(argc2, argv2);82 83 isGUI = true; 83 84 84 85 #else 86 DISCARD_PARAMETER(argc); 87 DISCARD_PARAMETER(argv); 88 85 89 shell = new G4UIcsh; 86 90 session = new G4UIterminal(shell); -
trunk/source/interfaces/basic/src/G4UIQt.cc
r1239 r1243 116 116 ,fTabWidget(NULL) 117 117 ,fCoutText("Output") 118 119 118 { 120 119 … … 249 248 fEmptyViewerTabLabel = new QLabel(" If you want to have a Viewer, please use /vis/open commands. "); 250 249 250 // Only at creation. Will be set visible when sessionStart(); 251 fTabWidget->setVisible(false); 252 fEmptyViewerTabLabel->setVisible(false); 253 251 254 fMyVSplitter->addWidget(fToolBox); 252 255 fMyVSplitter->addWidget(fEmptyViewerTabLabel); … … 300 303 connect(fCommandArea, SIGNAL(returnPressed()), SLOT(CommandEnteredCallback())); 301 304 connect(fTabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(TabCloseCallback(int))); 302 // connect(fTabWidget, SIGNAL(currentChanged(int)), this, SLOT(CurrentChangedCallback(int)));303 305 connect(fTabWidget, SIGNAL(currentChanged ( int ) ), SLOT(UpdateTabWidget(int))); 304 306 if(UI!=NULL) UI->SetCoutDestination(this); // TO KEEP … … 517 519 ) 518 520 { 519 520 521 #ifdef G4DEBUG_INTERFACES_BASIC 521 522 printf("G4UIQt::AddTabWidget %d %d\n",sizeX, sizeY); 522 523 #endif 523 if (!aWidget) return false; 524 524 if (!aWidget) { 525 return false; 526 } 527 525 528 // Remove QLabel 526 529 if ( fMyVSplitter->indexOf(fEmptyViewerTabLabel) != -1) { … … 605 608 // // #endif 606 609 610 fTabWidget->setVisible(true); 611 607 612 return true; 608 613 } … … 623 628 624 629 fTabWidget->setCurrentIndex(tabNumber); 630 631 // Send this signal to unblock graphic updates ! 632 fTabWidget->setVisible(true); 633 634 // This will send a paintEvent to OGL Viewers 625 635 fTabWidget->setTabSelected(); 626 636 … … 657 667 exitSession = false; 658 668 669 fTabWidget->setVisible(true); 670 fEmptyViewerTabLabel->setVisible(true); 671 659 672 #if QT_VERSION >= 0x040000 660 673 #if QT_VERSION >= 0x040200 … … 666 679 fMainWindow->show(); 667 680 #endif 681 682 QCoreApplication::sendPostedEvents () ; 668 683 669 684 #ifdef G4DEBUG_INTERFACES_BASIC -
trunk/source/interfaces/common/src/G4Qt.cc
r1232 r1243 131 131 #else 132 132 #ifdef G4DEBUG_INTERFACES_COMMON 133 133 printf("G4Qt::G4Qt QAppl \n"); 134 134 #endif 135 135 new QApplication (*p_argn, args); 136 #ifdef G4DEBUG_INTERFACES_COMMON137 printf("G4Qt::G4Qt 0\n");138 #endif139 136 #endif 140 137 if(!qApp) { … … 142 139 G4cout << "G4Qt : Unable to init Qt." << G4endl; 143 140 } else { 144 #ifdef G4DEBUG_INTERFACES_COMMON145 printf("G4Qt::G4Qt 1\n");146 #endif147 141 QtInited = TRUE; 148 142 if (a_argn != 0) {
Note: See TracChangeset
for help on using the changeset viewer.