CommonChControl Class Reference

#include <common_ch_control.h>

Inheritance diagram for CommonChControl:

CommonChControlBase List of all members.

Public Member Functions

 CommonChControl ()
 Constructors.
 CommonChControl (wxWindow *parent, wxWindowID id=SYMBOL_COMMONCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_COMMONCHCONTROL_POSITION, const wxSize &size=SYMBOL_COMMONCHCONTROL_SIZE, long style=SYMBOL_COMMONCHCONTROL_STYLE)
bool Create (wxWindow *parent, wxWindowID id=SYMBOL_COMMONCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_COMMONCHCONTROL_POSITION, const wxSize &size=SYMBOL_COMMONCHCONTROL_SIZE, long style=SYMBOL_COMMONCHCONTROL_STYLE)
 Creation.
void CreateControls ()
 Creates the controls and sizers.
void OnEnableTogglebuttonClick (wxCommandEvent &event)
 wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ENABLE_TOGGLEBUTTON
void OnButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON
void OnSpinbuttonUpdated (wxSpinEvent &event)
 wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources.
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources.
bool SetupBoard (GenericBoard *p_board, int ch_index, int ch_count)
bool UpdateControls ()
void SetEnable (bool enable)
void SetMediumLabel (double value)
void SetOverloadBackground (const wxColor &color)

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips?

Public Attributes

wxStaticBox * m_main_sizer_text
wxToggleButton * m_ch_enable_control
wxButton * m_ch_DAC_reset_control
wxSpinButton * m_ch_DAC_control
wxStaticText * m_medium_value_control
wxStaticText * m_overload_control

Private Member Functions

void UpdateDAC (void)

Private Attributes

GenericBoardm_p_board
PhysicalBoardChannelm_p_board_channel
int m_ch_index
int m_ch_count

Detailed Description

CommonChControl class declaration

Definition at line 71 of file common_ch_control.h.


Constructor & Destructor Documentation

CommonChControl::CommonChControl  ) 
 

Constructors.

CommonChControl constructors

Definition at line 64 of file common_ch_control.cpp.

CommonChControl::CommonChControl wxWindow *  parent,
wxWindowID  id = SYMBOL_COMMONCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_COMMONCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_COMMONCHCONTROL_SIZE,
long  style = SYMBOL_COMMONCHCONTROL_STYLE
 

Definition at line 69 of file common_ch_control.cpp.

References Create().


Member Function Documentation

bool CommonChControl::Create wxWindow *  parent,
wxWindowID  id = SYMBOL_COMMONCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_COMMONCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_COMMONCHCONTROL_SIZE,
long  style = SYMBOL_COMMONCHCONTROL_STYLE
 

Creation.

CommonChControl creator

Definition at line 79 of file common_ch_control.cpp.

References CreateControls(), m_ch_DAC_control, m_ch_DAC_reset_control, m_ch_enable_control, m_main_sizer_text, m_medium_value_control, and m_overload_control.

Referenced by CommonChControl().

void CommonChControl::CreateControls  ) 
 

Creates the controls and sizers.

Control creation for CommonChControl

Definition at line 108 of file common_ch_control.cpp.

References ID_BUTTON, ID_ENABLE_TOGGLEBUTTON, ID_SPINBUTTON, m_ch_DAC_control, m_ch_DAC_reset_control, m_ch_enable_control, m_main_sizer_text, m_medium_value_control, m_overload_control, and ShowToolTips().

Referenced by Create().

wxBitmap CommonChControl::GetBitmapResource const wxString &  name  ) 
 

Retrieves bitmap resources.

Get bitmap resources

Definition at line 175 of file common_ch_control.cpp.

wxIcon CommonChControl::GetIconResource const wxString &  name  ) 
 

Retrieves icon resources.

Get icon resources

Definition at line 188 of file common_ch_control.cpp.

void CommonChControl::OnButtonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON

Definition at line 247 of file common_ch_control.cpp.

References m_ch_DAC_control, and UpdateDAC().

void CommonChControl::OnEnableTogglebuttonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ENABLE_TOGGLEBUTTON

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ENABLE_TOGGLEBUTTON

Definition at line 225 of file common_ch_control.cpp.

References m_ch_enable_control, GenericBoardChannel::m_enabled, m_p_board, m_p_board_channel, SCOPE_NUM_PANELS, PhysicalBoardChannel::WriteChannelTrigger(), and GenericBoard::WriteTriggerMode().

void CommonChControl::OnSpinbuttonUpdated wxSpinEvent &  event  ) 
 

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON

Definition at line 257 of file common_ch_control.cpp.

References UpdateDAC().

void CommonChControl::SetEnable bool  enable  )  [virtual]
 

Reimplemented from CommonChControlBase.

Definition at line 266 of file common_ch_control.cpp.

References m_ch_enable_control.

void CommonChControl::SetMediumLabel double  value  )  [virtual]
 

Reimplemented from CommonChControlBase.

Definition at line 262 of file common_ch_control.cpp.

References m_medium_value_control.

void CommonChControl::SetOverloadBackground const wxColor &  color  )  [virtual]
 

Reimplemented from CommonChControlBase.

Definition at line 271 of file common_ch_control.cpp.

References m_overload_control.

bool CommonChControl::SetupBoard GenericBoard p_board,
int  ch_index,
int  ch_count
 

Definition at line 196 of file common_ch_control.cpp.

References m_ch_count, GenericBoardChannel::m_ch_index, m_ch_index, m_p_board, and m_p_board_channel.

bool CommonChControl::ShowToolTips  )  [static]
 

Should we show tooltips?

Should we show tooltips?

Definition at line 166 of file common_ch_control.cpp.

Referenced by CreateControls().

bool CommonChControl::UpdateControls  ) 
 

Definition at line 210 of file common_ch_control.cpp.

References m_ch_DAC_control, m_ch_enable_control, m_main_sizer_text, and UpdateDAC().

void CommonChControl::UpdateDAC void   )  [private]
 

Definition at line 237 of file common_ch_control.cpp.

References m_ch_DAC_control, PhysicalBoardChannel::m_DAC_offset_bit, m_p_board_channel, and PhysicalBoardChannel::WriteDACOffset().

Referenced by OnButtonClick(), OnSpinbuttonUpdated(), and UpdateControls().


Member Data Documentation

int CommonChControl::m_ch_count [private]
 

Definition at line 131 of file common_ch_control.h.

Referenced by SetupBoard().

wxSpinButton* CommonChControl::m_ch_DAC_control
 

Definition at line 116 of file common_ch_control.h.

Referenced by Create(), CreateControls(), OnButtonClick(), UpdateControls(), and UpdateDAC().

wxButton* CommonChControl::m_ch_DAC_reset_control
 

Definition at line 115 of file common_ch_control.h.

Referenced by Create(), and CreateControls().

wxToggleButton* CommonChControl::m_ch_enable_control
 

Definition at line 114 of file common_ch_control.h.

Referenced by Create(), CreateControls(), OnEnableTogglebuttonClick(), SetEnable(), and UpdateControls().

int CommonChControl::m_ch_index [private]
 

Definition at line 130 of file common_ch_control.h.

Referenced by SetupBoard().

wxStaticBox* CommonChControl::m_main_sizer_text
 

Definition at line 113 of file common_ch_control.h.

Referenced by Create(), CreateControls(), and UpdateControls().

wxStaticText* CommonChControl::m_medium_value_control
 

Definition at line 117 of file common_ch_control.h.

Referenced by Create(), CreateControls(), and SetMediumLabel().

wxStaticText* CommonChControl::m_overload_control
 

Definition at line 118 of file common_ch_control.h.

Referenced by Create(), CreateControls(), and SetOverloadBackground().

GenericBoard* CommonChControl::m_p_board [private]
 

Definition at line 128 of file common_ch_control.h.

Referenced by OnEnableTogglebuttonClick(), and SetupBoard().

PhysicalBoardChannel* CommonChControl::m_p_board_channel [private]
 

Definition at line 129 of file common_ch_control.h.

Referenced by OnEnableTogglebuttonClick(), SetupBoard(), and UpdateDAC().


The documentation for this class was generated from the following files:
Generated on Mon Mar 19 17:14:09 2007 for CAENScope by  doxygen 1.4.6-NO