00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TGO4PREVIEWPANELSTATUS_H
00017 #define TGO4PREVIEWPANELSTATUS_H
00018
00019 #include "Go4StatusBase/TGo4Status.h"
00020
00021 class TPad;
00022 class TCanvas;
00023 class TIterator;
00024 class TRefArray;
00025 class TList;
00026 class TGo4PadOptions;
00027 class TGo4PreviewPanelSlots;
00028
00033 class TGo4PreviewPanelStatus : public TGo4Status {
00034 public:
00035
00036 TGo4PreviewPanelStatus(const char* name, const char* title);
00037 virtual ~TGo4PreviewPanelStatus();
00038
00039 const char * GetPadStringDrawOption(TPad * SelectedPad);
00040 TGo4PadOptions * GetPadOptions(TPad * Pad);
00041
00042 void ResetPadOptionsList();
00044 void RemoveSubPads(TPad* pad);
00046 void RemovePad(TPad* pad);
00049 void UpdateSubPads(TPad* pad);
00050
00051 Bool_t GetPadDragOption(TPad *SelectedPad);
00052 void SetPadDrawOption(TPad * SelectedPad, Int_t Xmin, Int_t Xmax, Int_t Ymin, Int_t Ymax);
00053 void SetPadDrawOption(TPad * SelectedPad, const char *Option, bool DragAddOption);
00054 void SetPadDrawOption(TPad * SelectedPad, const char *Option);
00055 void SetPadHistogramStats(TPad * SelectedPad, Bool_t showstatistics);
00056 Bool_t GetPadHistogramStats(TPad * SelectedPad);
00057 void SetPadHistogramTitle(TPad * SelectedPad, Bool_t showtitle);
00058 Bool_t GetPadHistogramTitle(TPad * SelectedPad);
00059 void SetPadCrosshair(TPad * SelectedPad, Bool_t showcross);
00060 Bool_t GetPadCrosshair(TPad * SelectedPad);
00061 void SetPadLegend(TPad * SelectedPad, Bool_t drawlegend);
00062 Bool_t GetPadLegend(TPad * SelectedPad);
00063
00064 void SetNoOfPads(Int_t ){;}
00065 Int_t GetNoOfPads();
00066
00067 TRefArray* GetListOfPads();
00068 void SetSlots(TGo4PreviewPanelSlots* s){fxSlots=s;}
00069
00073 void CleanupPadLists(TCanvas* can);
00074
00077 Bool_t CheckSubPads(TPad* container, TPad* test);
00078
00080 void RefreshListOfPads();
00081
00082
00087 void AssignUID(TObject* ob);
00088
00089 private:
00090 TList* PadOptionList;
00091
00092 TRefArray *ListOfPads;
00093
00095 TGo4PadOptions *fxTGo4PadOptions;
00096 TIterator* listiter;
00097
00100 TGo4PreviewPanelSlots* fxSlots;
00101 };
00102 #endif //TGO4PREVIEWPANELSTATUS_H
00103
00104
00105
00106