PixieDAQ/scalarPanel.h

47 lines
758 B
C
Raw Normal View History

2022-03-30 16:09:12 -04:00
#ifndef SCALAR_PANEL_H
#define SCALAR_PANEL_H
#include <TQObject.h>
#include <TThread.h>
#include <TGNumberEntry.h>
#include <TGComboBox.h>
#include <TGLabel.h>
#include "Pixie16Class.h"
#include "global_macro.h"
2022-03-30 16:09:12 -04:00
class TGWindow;
class TGMainFrame;
class ScalarPanel{
private:
TGMainFrame * fMain;
static int nMod;
static Pixie16 * pixie;
static bool updateFlag;
2022-04-01 18:54:59 -04:00
static TGTextEntry * teRate[MAXMOD][MAXCH];
static TGTextEntry * teRealTime[MAXMOD];
2022-03-30 16:09:12 -04:00
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;
2022-04-01 18:54:59 -04:00
2022-03-30 16:09:12 -04:00
};
#endif