Public Member Functions | |
QGSChannelFrame (const TGWindow *parent, UInt_t w, UInt_t h, Int_t id) | |
ctor | |
virtual | ~QGSChannelFrame () |
dtor | |
void | Changed () |
read all widgets and call Changed(Int_t) | |
void | Changed (Int_t id) |
emit signal when any of the graphical widgets has changed | |
void | SetChannelInfo (QScopeChannelInfo *chInfo) |
set ptr to QScopeChannelInfo object used for propagation of channel-based user-selected configuration | |
QScopeChannelInfo * | GetChannelInfo () const |
get QScopeChannelInfo associated to this object | |
void | SetLgChannels (const std::set< int > &channels) |
set lg channels available for display on this scope channel | |
void | UpdateInfos () |
propagate configuration from widgets to QScopeChannelInfo | |
void | UpdateDisplay () |
propagate offset and mV/div from QScopeChannelInfo object to graphical widgets | |
void | InitDisplay () |
similar to UpdateDisplay but also updates lg channel, color enable and active measurements | |
void | UpdateEnabled () |
enable/disable user interaction when enable button is toggled | |
void | AutoScale () |
slot function triggered when autoscale is requested | |
void | AdjustOffset () |
slot function triggered when adsust offset is requested | |
Private Types | |
enum | MeasButtonsId { kMaxMin = 1, kAverage = 2, kRMS = 3 } |
Private Member Functions | |
void | CreateWidgets () |
create graphical widgets to be shown by this object | |
void | MakeConnections () |
perform signal/slot connections | |
void | Lock (bool doLock) |
lock/unlock widgets | |
Private Attributes | |
Int_t | fId |
TGCheckButton * | fEnableButton |
QGuiColorSelect * | fColorButton |
QGUINumberSelector * | fChSelector |
TGComboBox * | fMvPerDivSelector |
TGNumberEntry * | fOffsetSelector |
TGTextButton * | fAutoScaleButton |
TGTextButton * | fAdjOffsetButton |
TGButtonGroup * | fMeasButtons |
bool | fAutoScale |
bool | fAdjustOffset |
std::map< Int_t, Float_t > | fMvPerDivMap |
QScopeChannelInfo * | fChannelInfo |
QGSChannelFrame::QGSChannelFrame | ( | const TGWindow * | parent, | |
UInt_t | w, | |||
UInt_t | h, | |||
Int_t | id | |||
) |
ctor
widget | id, used in signal/slot communication |
void QGSChannelFrame::SetChannelInfo | ( | QScopeChannelInfo * | chInfo | ) | [inline] |
set ptr to QScopeChannelInfo object used for propagation of channel-based user-selected configuration
chInfo must be deleted by the calling code
References fChannelInfo.
Int_t QGSChannelFrame::fId [private] |
channel id used in signal/slot communication
Referenced by Changed().
TGCheckButton* QGSChannelFrame::fEnableButton [private] |
enable/disable this channel
Referenced by CreateWidgets(), InitDisplay(), MakeConnections(), UpdateEnabled(), and UpdateInfos().
QGuiColorSelect* QGSChannelFrame::fColorButton [private] |
select waveform color
Referenced by CreateWidgets(), InitDisplay(), Lock(), MakeConnections(), and UpdateInfos().
QGUINumberSelector* QGSChannelFrame::fChSelector [private] |
logical channel selector
Referenced by CreateWidgets(), InitDisplay(), Lock(), MakeConnections(), SetLgChannels(), and UpdateInfos().
TGComboBox* QGSChannelFrame::fMvPerDivSelector [private] |
y-axis mV/div selector
Referenced by CreateWidgets(), Lock(), MakeConnections(), UpdateDisplay(), and UpdateInfos().
TGNumberEntry* QGSChannelFrame::fOffsetSelector [private] |
select y offset in mV
Referenced by CreateWidgets(), Lock(), MakeConnections(), UpdateDisplay(), and UpdateInfos().
TGTextButton* QGSChannelFrame::fAutoScaleButton [private] |
automatic scale
Referenced by CreateWidgets(), Lock(), and MakeConnections().
TGTextButton* QGSChannelFrame::fAdjOffsetButton [private] |
automatic offset adjustment
Referenced by CreateWidgets(), Lock(), and MakeConnections().
TGButtonGroup* QGSChannelFrame::fMeasButtons [private] |
measurement check buttons
Referenced by CreateWidgets(), InitDisplay(), Lock(), MakeConnections(), and UpdateInfos().
bool QGSChannelFrame::fAutoScale [private] |
set to true when autoscale is requested and reset to false when UpdateInfos() is called.
Referenced by AutoScale(), and UpdateInfos().
bool QGSChannelFrame::fAdjustOffset [private] |
set to true when automatic offset adjustment is requested and reset to false when UpdateInfos() is called.
Referenced by AdjustOffset(), AutoScale(), and UpdateInfos().
std::map<Int_t, Float_t> QGSChannelFrame::fMvPerDivMap [private] |
key: combo box entry id, value: corresponding mV/div
Referenced by CreateWidgets(), UpdateDisplay(), and UpdateInfos().
QScopeChannelInfo* QGSChannelFrame::fChannelInfo [private] |
object used for propagation of channel-based user-selected configuration
Referenced by GetChannelInfo(), InitDisplay(), SetChannelInfo(), UpdateDisplay(), and UpdateInfos().