Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4QtBaseWidgets/TGo4QLeafItem.cpp

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "TGo4QLeafItem.h"
00017 
00018 #include "TTree.h"
00019 #include "TFile.h"
00020 
00021 #include "qstring.h"
00022 
00023 #include "Go4GUIRegistry/TGo4GUIRegistry.h"
00024 #include "Go4GUI/TGo4PreviewPanel.h"
00025 #include "Go4GUI/TGo4MainWindow.h"
00026 
00027 TGo4QLeafItem::TGo4QLeafItem( QListViewItem* parent, const QString & text, const QString & text1,  const QString & text2)
00028    :TGo4QDragDrop (parent, "leaf_t", text, text1, text2) {
00029        fxRootTree=0;
00030 }
00031 
00032 TGo4QLeafItem::TGo4QLeafItem( QListView* parent, const QString & text, const QString & text1,  const QString & text2)
00033    :TGo4QDragDrop (parent, "leaf_t", text, text1, text2) {
00034     fxRootTree=0;
00035 }
00036 
00037 TGo4QLeafItem::~TGo4QLeafItem(){
00038 }
00039 
00040 void TGo4QLeafItem::ItemDBkLocal() {
00041    TGo4PreviewPanel *fxTGo4PreviewPanel=0;
00042    TGo4MainWindow  *fxMainWin=0;
00043    fxRootFile->cd();
00044    fxMainWin = dynamic_cast <TGo4MainWindow *> (fxTGo4GUIRegistry->GetMainWindow());
00045    if(fxMainWin!=0) fxTGo4PreviewPanel =fxMainWin->ViewPanelSlot();
00046    fxRootTree->Draw(text(0).data());
00047 }
00048 
00049 void TGo4QLeafItem::DropAction(QWidget*) {
00050 }
00051 
00052 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:04 2005 for Go4-v2.10-5 by doxygen1.2.15