00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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