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

/Go4QtBaseWidgets/TGo4QItem.h

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 
00017 
00018 #ifndef TGO4QITEM_H
00019 #define TGO4QITEM_H
00020 
00021 #include "qlistview.h"
00022 
00023 class TObject;
00024 class TKey;
00025 class TFile;
00026 class TGo4PreviewPanel;
00027 class TCanvas;
00028 class TPad;
00029 class TGo4Status;
00030 class TGo4GUIRegistry;
00031 
00037 class TGo4QItem : public QListViewItem {
00038   public:
00039 
00040     TGo4QItem( QListView* parent, const char* pixmap, const QString & text,  const QString & text1=0,  const QString & text2=0) ;
00041     TGo4QItem( QListViewItem* parent, const char* pixmap, const QString & text, const QString & text1=0,  const QString & text2=0) ;
00042     virtual ~TGo4QItem();
00043 
00044     TKey *GetFileKey(){return fxKey;}
00045     void SetFileKey(TKey *key){fxKey=key;}
00046 
00047     TObject *GetFileObj(){return fxObj;}
00048     void SetFileObj(TObject *Obj){fxObj = Obj;}
00049 
00050     TFile * GetRootFile(){return fxRootFile;}
00051     void SetRootFile(TFile * fxFile){fxRootFile=fxFile;}
00052 
00053     void SetItemObject(TObject * fxObj){fxItemObject=fxObj;}
00054     TObject * GetItemObject(){return fxItemObject;}
00055 
00056     bool IsMonitorDone() const {return fbMonitorDone;}
00057     void SetMonitorDone(bool val=true) { fbMonitorDone=val; }
00058 
00059     bool IsLogYScale();
00060 
00061     bool IsKeepScale();
00062     void SetKeepScale(bool val);
00063 
00064     virtual void ItemDBkRemote();
00065     virtual void ItemDBkLocal();
00066     virtual void ItemDBkMem();
00067 
00069     TObject* GetWorkObject();
00070 
00071     bool InFileBrowser();
00072     bool InMemoryBrowser();
00073     bool InMonitoringList();
00074 
00077     virtual void  DrawObj(TGo4PreviewPanel *fxPanel, TPad* currentpad=0);
00078 
00079     virtual void GetOnlineObj();
00080 
00083     virtual void UpdateOnline(TObject *fxObj);
00084 
00086     void UpdateDrawPad();
00087     virtual void GetRemoteObj();
00088     virtual void AddToMonitorList();
00089     virtual void AddToMemoryList();
00090     void SetDrawCanvas(TCanvas *fxCan) {fxDrawCanvas=fxCan;}
00091     TCanvas *GetDrawCanvas() {return fxDrawCanvas;}
00092     void SetDrawPad(TPad *fxPad){fxDrawPad=fxPad;}
00093     TPad *GetDrawPad(){return fxDrawPad;}
00094     void SetDrawPanel(TGo4PreviewPanel *panel){fxDrawPanel=panel;}
00095     TGo4PreviewPanel *GetDrawPanel(){return fxDrawPanel;}
00096 
00101     bool AssignDrawPanel(TGo4PreviewPanel* pan, TPad* currentpad=0);
00103     bool IsExisting(TCanvas* can, TPad* pad);
00105     bool IsSubPad(TPad* mother, TPad* subpad);
00106 
00108     virtual void SetStatus(TGo4Status*){}
00109 
00110   protected:
00111     TKey *fxKey;
00112     TGo4PreviewPanel* fxDrawPanel;
00113     TCanvas *fxDrawCanvas;
00114     TPad *fxDrawPad;
00115     TObject *fxObj;
00116     TFile * fxRootFile;
00117     TObject * fxItemObject;
00118     TGo4GUIRegistry *fxTGo4GUIRegistry;
00120     bool fbMonitorDone;
00121 };
00122 
00123 #endif //TGO4QITEM_H
00124 
00125 //----------------------------END OF GO4 SOURCE FILE ---------------------

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