41 lines
878 B
C++
41 lines
878 B
C++
#ifndef CHANNEL_SETTING_H
|
|
#define CHANNEL_SETTING_H
|
|
|
|
#include <TQObject.h>
|
|
#include <TGNumberEntry.h>
|
|
#include <TGButton.h>
|
|
#include <TGComboBox.h>
|
|
#include <TGLabel.h>
|
|
#include "ClassDigitizer.h"
|
|
#include "macro.h"
|
|
|
|
class TGWindow;
|
|
class TGMainFrame;
|
|
|
|
class ChannelSetting{
|
|
private:
|
|
TGMainFrame * fMain;
|
|
|
|
TGNumberEntry * boardIDEntry, * chIDEntry;
|
|
|
|
TGComboBox * cbOnOff;
|
|
TGComboBox * cbPolarity;
|
|
TGComboBox * cbInputDynamicRange;
|
|
|
|
Digitizer ** digi;
|
|
int NChannel;
|
|
|
|
public:
|
|
ChannelSetting(const TGWindow *p, UInt_t w, UInt_t h, Digitizer ** digi, int nDigi);
|
|
virtual ~ChannelSetting();
|
|
void CloseWindow() { printf("close ChannelSetting window\n"); delete this; }
|
|
void ChangeBoard();
|
|
void ChangeCh();
|
|
void ChangeOnOff();
|
|
void ChangePolarity();
|
|
void ChangeID(int id);
|
|
bool isOpened;
|
|
|
|
};
|
|
#endif
|