Changeset 1255 for trunk


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

remove cycle dependency

Location:
trunk/source/interfaces
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/interfaces/History

    r1252 r1255  
    1 $Id: History,v 1.132 2010/05/19 07:18:50 lgarnier Exp $
     1$Id: History,v 1.133 2010/05/20 07:01:03 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    1818     ----------------------------------------------------------
    1919
     2020 May, L. Garnier
     21 Co-working tag : intercoms-V09-03-01
     22 - G4UIQt: Add some changes in order to register UI in order to access
     23   it after
     24 - G4Qt: Remove a cycle dependency
     25
    202619 May, L. Garnier
    2127 - G4UIQt: Fix a warning in Cout during viewer creation
  • 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) {
  • trunk/source/interfaces/common/include/G4Qt.hh

    r1252 r1255  
    2525//
    2626//
    27 // $Id: G4Qt.hh,v 1.5 2010/01/06 14:07:34 lgarnier Exp $
    28 // GEANT4 tag $Name: laurent-QtUI_with_tabs_v1 $
     27// $Id: G4Qt.hh,v 1.6 2010/05/20 07:01:03 lgarnier Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030//  To unify Qt event treatment between
     
    3939#include "G4VInteractorManager.hh"
    4040
    41 // class G4UIQt;
    4241class QWidget;
    4342class QString;
     
    6059  void FlushAndWaitExecution();
    6160  virtual ~G4Qt();                     
    62 //   bool AddTabWidget(QWidget*,QString,int,int);
    63 //   void SetG4UI(G4UIQt*);
    6461
    6562private:
     
    6865  int    argn;
    6966  char** args;
    70 //   G4UIQt* fG4UI;
    7167};
    7268
  • trunk/source/interfaces/common/src/G4Qt.cc

    r1252 r1255  
    2525//
    2626//
    27 // $Id: G4Qt.cc,v 1.16 2010/04/26 15:46:00 lgarnier Exp $
     27// $Id: G4Qt.cc,v 1.17 2010/05/20 07:01:03 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    3838
    3939#include "G4Qt.hh"
    40 // #include "G4UIQt.hh"
    4140#include <qwidget.h>
    4241
     
    7675 ,char*  /*a_class */
    7776 )
    78 // :fG4UI(NULL)
    7977/***************************************************************************/
    8078/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
     
    207205}
    208206
    209 // /***************************************************************************/
    210 // void G4Qt::SetG4UI (
    211 //  G4UIQt* ui
    212 // )
    213 // /***************************************************************************/
    214 // /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    215 // {
    216 // #ifdef G4DEBUG_INTERFACES_COMMON
    217 //     printf("G4Qt::SetG4UI \n");
    218 // #endif
    219 //   fG4UI = ui;
    220 // }
    221 
    222 // /***************************************************************************/
    223 // bool G4Qt::AddTabWidget (
    224 //  QWidget * vis
    225 // ,QString name
    226 // ,int sizeX
    227 // ,int sizeY
    228 // )
    229 // /***************************************************************************/
    230 // /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    231 // {
    232 //   if (fG4UI != NULL) {
    233 //     //    return fG4UI->AddTabWidget(vis,name,sizeX,sizeY);
    234 //   }
    235 //   return false;
    236 // }
    237 #endif
    238 
    239 
     207#endif
     208
     209
Note: See TracChangeset for help on using the changeset viewer.