#ifndef SCALAR_PANEL_H #define SCALAR_PANEL_H #include #include #include #include #include #include "Pixie16Class.h" class TGWindow; class TGMainFrame; #define MAXCH 16 #define MAXMOD 13 class ScalarPanel{ private: TGMainFrame * fMain; static int nMod; static Pixie16 * pixie; static bool updateFlag; static TGTextEntry * teRate[MAXMOD][MAXCH]; static TGTextEntry * teRealTime[MAXMOD]; TThread * thread; public: ScalarPanel(const TGWindow *p, UInt_t w, UInt_t h, Pixie16 * pixie); virtual ~ScalarPanel(); static void * UpdateScalar(void * ptr); void CloseWindow() { printf("close window\n"); delete this; } bool isOpened; }; #endif