51 lines
918 B
C++
51 lines
918 B
C++
#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;
|
|
|
|
TGComboBox * cbOnOff;
|
|
TGComboBox * cbPolarity;
|
|
TGComboBox * cbTraceOnOff;
|
|
TGComboBox * cbQDCsumOnOff;
|
|
|
|
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();
|
|
|
|
void ChangeOnOff();
|
|
void ChangePolarity();
|
|
void ChangeTraceOnOff();
|
|
void ChangeQDCsumOnOff();
|
|
void ChangeID(int id);
|
|
|
|
bool isOpened;
|
|
|
|
};
|
|
|
|
|
|
#endif
|