QGPBoardFrame.hh
Go to the documentation of this file.00001
00002 #ifndef _QGP_BOARD_FRAME_HH_
00003 #define _QGP_BOARD_FRAME_HH_
00004
00005 #include "QGuiCompositeFrame.hh"
00006
00007 #include "QGPChannelFrame.hh"
00008
00009 #include <map>
00010 #include <set>
00011
00020 class QGPBoardFrame: public QGuiCompositeFrame
00021 {
00022 public:
00028 QGPBoardFrame(const TGWindow* parent, UInt_t w, UInt_t h,
00029 UInt_t boardId,
00030 const std::set<unsigned int>& channels);
00031
00032 virtual ~QGPBoardFrame();
00033
00040 Bool_t SetEnabled(UInt_t ch, Bool_t enabled);
00041
00042
00049 Bool_t SetAmplitude(UInt_t ch, UInt_t amplitude);
00050
00055 Bool_t GetEnabled(UInt_t ch) const;
00056
00058 UInt_t GetAmplitude(UInt_t ch) const;
00059
00061 void Blink(UInt_t ch);
00062
00064 void Lock();
00065
00067 void Unlock();
00068
00069 void EnableToggled() { Emit("EnableToggled()"); }
00070
00071 void OneShotPressed(Long_t);
00072
00073 void OneShotPressed(Long_t, Long_t);
00074
00075 private:
00076 UInt_t fBoardId;
00077
00079 std::map<unsigned int,QGPChannelFrame*> fChannelFrames;
00080
00081 ClassDef(QGPBoardFrame,0)
00082 };
00083 #endif