00001 00002 #ifndef _Q_PULSER_GUI_INTERFACE_HH_ 00003 #define _Q_PULSER_GUI_INTERFACE_HH_ 00004 00005 #include "QPulserGroupList.hh" 00006 00007 #include <TQObject.h> 00008 00009 class QGuiPulserController; 00010 00018 class QPulserGuiInterface: public TQObject 00019 { 00020 public: 00021 QPulserGuiInterface(); 00022 00023 virtual ~QPulserGuiInterface(); 00024 00026 void SetDelay(unsigned int delayMs) { fDelayMs = delayMs; } 00027 00029 void SetPeriod(unsigned int periodMs) 00030 { fPeriodMs = periodMs; fGroups.SetPulserPeriod(fPeriodMs); } 00031 00036 bool AddChannel(unsigned int boardId, 00037 unsigned int hwCh, 00038 unsigned int pulseAmplitudemV); 00039 00041 void Start(); 00042 00047 bool Stop(); 00048 00050 void SetSettingsBasket(unsigned int basket) {fSettingsBasket = basket; } 00051 private: 00052 unsigned int fDelayMs; 00053 unsigned int fPeriodMs; 00054 QPulserGroupList fGroups; 00055 unsigned int fSettingsBasket; 00056 00057 QGuiPulserController* fController; 00058 00059 ClassDef(QPulserGuiInterface,0) 00060 }; 00061 #endif