Ignore:
Timestamp:
May 20, 2010, 11:47:43 AM (14 years ago)
Author:
garnier
Message:

remove cycle dependency

File:
1 edited

Legend:

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

    r1252 r1255  
    2525//
    2626//
    27 // $Id: G4UIQt.cc,v 1.36 2010/05/19 07:18:50 lgarnier Exp $
     27// $Id: G4UIQt.cc,v 1.37 2010/05/20 07:01:03 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    125125 
    126126  G4UImanager* UI = G4UImanager::GetUIpointer();
    127 
    128   // L.Garnier : This statement does not give the good pointer I think
    129127  if(UI!=NULL) UI->SetSession(this);
    130128  if(UI!=NULL) UI->SetG4UIWindow(this);
    131 
    132   //  if(UI!=NULL) UI->SetG4UIWindow(this);
    133 
    134 #ifdef G4DEBUG_INTERFACES_BASIC
    135   printf("G4UIQt:: recheck Session : this %d UImanager:%d\n",this,UI);
    136   G4UIQt * uiQt2 =  static_cast<G4UIQt*> (UI->GetG4UIWindow());
    137   printf("G4UIQt:: recheck Session : %d UImanager:%d\n",uiQt2,UI);
    138 #endif
    139129
    140130  // Check if already define in external app QMainWindow
     
    168158
    169159#ifdef G4DEBUG_INTERFACES_BASIC
    170   printf("G4UIQt::Initialise after main window creation +++++++++++ \n");
     160  printf("G4UIQt::Initialise after main window creation +++++++++++\n");
    171161#endif
    172162
     
    321311  if(UI!=NULL) UI->SetCoutDestination(this);  // TO KEEP
    322312
    323 //   interactorManager->SetG4UI(this);
    324 
    325313#if QT_VERSION < 0x040000
    326314  fMainWindow->setCaption( tr( "G4UI Session" ));
     
    347335  printf("G4UIQt::G4UIQt END\n");
    348336#endif
    349 #ifdef G4DEBUG_INTERFACES_BASIC
    350   printf("G4UIQt:: this : %d UImanager:%d\n",this,UI);
    351 #endif
    352337}
    353338
     
    363348  if(UI!=NULL) {  // TO KEEP
    364349    UI->SetSession(NULL);  // TO KEEP
    365     UI->SetG4UIWindow(NULL);  // TO KEEP
     350    UI->SetG4UIWindow(NULL);
    366351    UI->SetCoutDestination(NULL);  // TO KEEP
    367352  }
     
    535520{
    536521#ifdef G4DEBUG_INTERFACES_BASIC
    537   printf("G4UIQt::AddTabWidget %d %d G4UIQt:%d fMyVSplitter:%d\n",sizeX, sizeY, this,fMyVSplitter);
     522  printf("G4UIQt::AddTabWidget %d %d\n",sizeX, sizeY);
    538523#endif
    539524  if (!aWidget) {
Note: See TracChangeset for help on using the changeset viewer.