PixieDAQ/channelSetting.h

51 lines
918 B
C
Raw Normal View History

#ifndef CHANNEL_SETTING_H
#define CHANNEL_SETTING_H
#include <TQObject.h>
#include <TGNumberEntry.h>
#include <TGComboBox.h>
#include <TGLabel.h>
#include "Pixie16Class.h"
#include "global_macro.h"
class TGWindow;
class TGMainFrame;
class ChannelSetting{
private:
TGMainFrame * fMain;
TGNumberEntry * modIDEntry, * chIDEntry;
2022-04-01 16:07:18 -04:00
TGComboBox * cbOnOff;
2022-04-01 18:16:37 -04:00
TGComboBox * cbPolarity;
TGComboBox * cbTraceOnOff;
TGComboBox * cbQDCsumOnOff;
2022-04-01 16:07:18 -04:00
TGNumberEntry * entry[NUM_CHANNEL_SETTING];
Pixie16 * pixie;
public:
ChannelSetting(const TGWindow *p, UInt_t w, UInt_t h, Pixie16 * pixie);
virtual ~ChannelSetting();
void CloseWindow() { printf("close ChannelSetting window\n"); delete this; }
void ChangeMod();
void ChangeCh();
2022-04-01 16:07:18 -04:00
void ChangeOnOff();
2022-04-01 18:16:37 -04:00
void ChangePolarity();
void ChangeTraceOnOff();
void ChangeQDCsumOnOff();
2022-04-01 16:07:18 -04:00
void ChangeID(int id);
bool isOpened;
};
#endif