00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TGO4BROWSERSLOTS_H
00017 #define TGO4BROWSERSLOTS_H
00018
00019 #include "Go4GUIBase/TGo4SlotsBaseClass.h"
00020 #include "TString.h"
00021
00022 class QListViewItem;
00023 class TGo4Status;
00024 class TGo4Browser;
00025 class TGo4BrowserStatus;
00026 class TGo4QRootCanvas;
00027 class TFolder;
00028 class TGo4GUIRegistry;
00029 class TRefArray;
00030 class TFolder;
00031 class QTabWidget;
00032 class TGo4MainWindow;
00033 class TGo4DockBrowsers;
00034 class TGraph;
00035 class TH1;
00036
00041 class TGo4BrowserSlots : public TGo4SlotsBaseClass {
00042
00043 public:
00044
00045 TGo4BrowserSlots(const char * name, const char * title, TGo4Browser *p);
00046 virtual ~TGo4BrowserSlots();
00047 void AddLocalObject(TNamed * Obj);
00048 void AddObject(TNamed *);
00049
00050 void AddObject(TNamed *, TQRootCanvas * , TPad *pad=0 );
00051
00053 const Text_t* AddObjectToLocalList(TNamed *ob, Bool_t clone = kTRUE, Bool_t changetab=kTRUE);
00054 TGo4Browser *GetBrowserGUI(){return fxTGo4Browser;}
00055 TRefArray *GetIndexOfSelectedItems();
00056 TGo4Status * GetStatus();
00057 void LocalItemDoubleClicked(QListViewItem *Item);
00058 void LocalListDeleteSelection();
00059 void PlotLocal();
00063 void ExportSelectedItems(const Text_t* filename, const Text_t* filedir, const Text_t* format=0, const Text_t* description=0,Bool_t exportall=kFALSE);
00064 void SetGUI(TGo4Browser *GUI );
00065 void SetOverWriteMode(bool Mode ){OverWriteMode= Mode;}
00066 void SuperImposeLocal();
00067 void SynchronizeWithMemory();
00068 void UpdateLocalList();
00069 void ResetRemoteObj(const char* ObjName);
00070
00074 const char* GetAddedItemName() const { return fxAddedItemName.Data(); }
00075
00076 private:
00077
00079 TGo4GUIRegistry * fxTGo4GUIRegistry;
00080 TGo4Browser * fxTGo4Browser;
00081 TGo4BrowserStatus * fxTGo4BrowserStatus;
00082 TFolder *RootMem;
00083 bool OverWriteMode;
00084 QTabWidget *TGo4DockBrowserTabs;
00085 TGo4DockBrowsers *fxTGo4DockBrowsers;
00086 TGo4MainWindow * fxMainWin;
00087
00089 TString fxAddedItemName;
00090 };
00091
00092 #endif //TGO4BROWSERSLOTS_H
00093
00094