#ifndef HONLINEMONCLIENTMAINWIN_H #define HONLINEMONCLIENTMAINWIN_H #include "TNamed.h" #include "TString.h" #include "TList.h" #include "TGFrame.h" #include "TGNumberEntry.h" #include "TGLabel.h" #include "TGStatusBar.h" #include "TGTextEntry.h" class HOnlineMonClientMain; class HOnlineMonClientMainWin : public TNamed { public: TList listControlbuttons; // holds the control checkboxes - each detector has a // controlbutton in the MainWindow to switch on/off HOnlineMonClientMainWin(); ~HOnlineMonClientMainWin(); void CreateMainWin(HOnlineMonClientMain* clientmain); void DestroyMainWin(HOnlineMonClientMain* clientmain); void SetWidth(Int_t width); Int_t GetWidth(); void SetHeight(Int_t height); Int_t GetHeight(); void SetSnapShotPath(TString path); TString GetSnapShotPath() { return SnapShotPath; } void SetAutoSaveRate(Int_t rate) ; Int_t GetAutoSaveRate() { return autoSaveRate;} // refresh rate TGGroupFrame* gFrameRefreshRate; TGNumberEntry* numberEntryRefreshRate; // number entry for refresh rate TGNumberEntry* numberEntryAutoSaveRate;// number entry for auto save rate TGTextEntry* fTextFilename; // widget for file name TGTextEntry* fTextSnapshotPath; // widget for snapshot path TGTextEntry* fTextSpeed; // widget for speed [evts/s] private: // main window elements TGMainFrame* clientMainWindow; Int_t width; Int_t height; TString SnapShotPath; Int_t autoSaveRate; // snapshot TGGroupFrame* gFrameSnapshot; TGTextButton* buttonSnapshot; // detectors TGGroupFrame* gFrameDetectors; ClassDef(HOnlineMonClientMainWin, 1); }; #endif