00001 #include <TQObject.h> 00002 #include <RQ_OBJECT.h> 00003 #include <TH1D.h> 00004 00005 00006 #include <TSystem.h> 00007 #include <TApplication.h> 00008 #include <TGClient.h> 00009 #include <TCanvas.h> 00010 #include <TF1.h> 00011 #include <TH1D.h> 00012 #include <TRandom.h> 00013 #include <TGButton.h> 00014 #include <TGTextEntry.h> 00015 //#include <TGButtonGroup.h> 00016 #include <TGLabel.h> 00017 #include <TRootEmbeddedCanvas.h> 00018 #include <TGFSContainer.h> 00019 #include <iostream> 00020 #include "../../SharedMemory/SMcommon.h" 00021 00022 class TGWindow; 00023 class TGMainFrame; 00024 class TRootEmbeddedCanvas; 00025 class MyMainFrame { 00026 RQ_OBJECT("MyMainFrame") 00027 00028 private: 00029 TGMainFrame *fMain; 00030 TRootEmbeddedCanvas *fEcanvas; 00031 SharedMemory sm; 00032 int EventNumber_old; 00033 TH1D *hi; 00034 bool logSW; 00035 TGTextBuffer *tbuf; 00036 TGTextBuffer *comment_buf; 00037 TGTextEntry *comment; 00038 int shd_param_id; 00039 struct SHM_PARAM *param_ptr; 00040 double *data_ptr; 00041 key_t key; 00042 struct tm*ltm; 00043 char LastEvent[50]; 00044 TGTextButton *resume; 00045 TGTextButton *suspend; 00046 // TGTextButton *logswc; 00047 TGTextButton *terminate; 00048 00049 public: 00050 MyMainFrame(const TGWindow *p,UInt_t w,UInt_t h); 00051 virtual ~MyMainFrame(); 00052 void DoDraw(); 00053 void DoResume(); 00054 void DoSuspend(); 00055 void DoTerminate(); 00056 void DoSwich(); 00057 void DoSave(); 00058 void DrawHist(); 00059 void Loop(); 00060 int ShMemory(); 00061 void SetLastEventTime(); 00062 char gifOutputDir[1024]; // file name for GIF output 00063 //Bool_t ProcessMessage(Long_t msg,Long_t parm1,Long_t parm2); 00064 00065 00066 // void TestDialog(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h); 00067 00068 };