// $Id$ // // File: fcal11_mainframe.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_mainframe_ #define _fcal11_mainframe_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class fcal11_mainframe:public TGMainFrame{ public: fcal11_mainframe(const TGWindow *p, UInt_t w, UInt_t h); virtual ~fcal11_mainframe(); // Slots for ROOT GUI void DoQuit(void); void DoNext(void); //void DoStop(void); //void DoCont(void); void DoTimer(void); void DoMyRedraw(void); void DoOpenfADCViewer(void); void DoOpenSignalViewer(void); void DoSetDelay(Int_t id); void DoSetTrig(void); bool GetCheckButton(string who); void AddCheckButtons(map &checkbuttons); // Other (non-slot) methods void SetEvent(int id); void SetSource(string source); void SetBlockColor(int row, int col, float val); void SetPaddleColor(int orientation, int chid, bool is_hit); void DrawDot(double x, double y); void GetTrigRequirement(UInt_t &htrig_mask, UInt_t &vtrig_mask, bool &require_both); TRootEmbeddedCanvas *canvas; unsigned long events_to_process; // used to automatically jump to next event in timer routine protected: private: map checkbuttons; TGLabel *event, *run, *source; TGComboBox *delay; TGComboBox *trig_and_or; TGTextButton *next; TBox *blocks[5][5]; TBox *hpaddles[5]; TBox *vpaddles[5]; TMarker *current_dot; vector dots; unsigned int dot_cntr; double canvas_width, default_canvas_width; TTimer *timer; long sleep_time; // in milliseconds ClassDef(fcal11_mainframe,1) }; #endif // _fcal11_mainframe_