// $Id$ // // File: fcal11_fADCviewer.h // Created: Wed Nov 30 07:42:06 EST 2011 // Creator: davidl (on Linux ifarm1101 2.6.18-128.7.1.el5 x86_64) // #ifndef _fcal11_fADCviewer_ #define _fcal11_fADCviewer_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class fcal11_fADCviewer:public TGMainFrame{ public: fcal11_fADCviewer(const TGWindow *p, UInt_t w, UInt_t h); virtual ~fcal11_fADCviewer(); // Slots for ROOT GUI void DoClose(void); void DoNext(void); void DoSetSlot(Int_t); void DoSetChannel(Int_t); void DoMyRedraw(void); bool GetCheckButton(string who); void AddCheckButtons(map &checkbuttons); // Other (non-slot) methods void SetEvent(int id); void SetSource(string source); void Show(void); void Hide(void); bool IsHidden(void); unsigned int slot, channel; TRootEmbeddedCanvas *canvas; protected: private: map checkbuttons; TGLabel *event, *run, *source; TGTextButton *next; double canvas_width, default_canvas_width; bool is_hidden; ClassDef(fcal11_fADCviewer,1) }; extern fcal11_fADCviewer *gfADCVIEWER; #endif // _fcal11_fADCviewer_