QGSChannelFrame Class Reference
[ApolloApollo Gui]

List of all members.


Detailed Description

manages graphical widgets that are repeated for each channel in the scope

Author:
Sergio Di Domizio

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
QScopeChannelInfoGetChannelInfo () 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
QGuiColorSelectfColorButton
QGUINumberSelectorfChSelector
TGComboBox * fMvPerDivSelector
TGNumberEntry * fOffsetSelector
TGTextButton * fAutoScaleButton
TGTextButton * fAdjOffsetButton
TGButtonGroup * fMeasButtons
bool fAutoScale
bool fAdjustOffset
std::map< Int_t, Float_t > fMvPerDivMap
QScopeChannelInfofChannelInfo

Constructor & Destructor Documentation

QGSChannelFrame::QGSChannelFrame ( const TGWindow *  parent,
UInt_t  w,
UInt_t  h,
Int_t  id 
)

ctor

Parameters:
widget id, used in signal/slot communication


Member Function Documentation

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.


Member Data Documentation

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().

select waveform color

Referenced by CreateWidgets(), InitDisplay(), Lock(), MakeConnections(), and UpdateInfos().

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().

set to true when autoscale is requested and reset to false when UpdateInfos() is called.

Referenced by AutoScale(), and UpdateInfos().

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().

object used for propagation of channel-based user-selected configuration

Referenced by GetChannelInfo(), InitDisplay(), SetChannelInfo(), UpdateDisplay(), and UpdateInfos().


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6