VirtualCommonChControl Class Reference

#include <virtual_common_ch_control.h>

Inheritance diagram for VirtualCommonChControl:

CommonChControlBase List of all members.

Public Member Functions

 VirtualCommonChControl ()
 Constructors.
 VirtualCommonChControl (wxWindow *parent, wxWindowID id=SYMBOL_VIRTUALCOMMONCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_VIRTUALCOMMONCHCONTROL_POSITION, const wxSize &size=SYMBOL_VIRTUALCOMMONCHCONTROL_SIZE, long style=SYMBOL_VIRTUALCOMMONCHCONTROL_STYLE)
bool Create (wxWindow *parent, wxWindowID id=SYMBOL_VIRTUALCOMMONCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_VIRTUALCOMMONCHCONTROL_POSITION, const wxSize &size=SYMBOL_VIRTUALCOMMONCHCONTROL_SIZE, long style=SYMBOL_VIRTUALCOMMONCHCONTROL_STYLE)
 Creation.
void CreateControls ()
 Creates the controls and sizers.
void OnVirtualEnableTogglebuttonClick (wxCommandEvent &event)
 wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VIRTUAL_ENABLE_TOGGLEBUTTON
void OnVirtualButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_VIRTUAL_BUTTON
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 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
wxStaticText * m_medium_value_control

Private Attributes

GenericBoardm_p_board
VirtualBoardChannelm_p_board_channel
int m_ch_index
int m_ch_count

Detailed Description

VirtualCommonChControl class declaration

Definition at line 68 of file virtual_common_ch_control.h.


Constructor & Destructor Documentation

VirtualCommonChControl::VirtualCommonChControl  ) 
 

Constructors.

VirtualCommonChControl constructors

Definition at line 63 of file virtual_common_ch_control.cpp.

VirtualCommonChControl::VirtualCommonChControl wxWindow *  parent,
wxWindowID  id = SYMBOL_VIRTUALCOMMONCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_VIRTUALCOMMONCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_VIRTUALCOMMONCHCONTROL_SIZE,
long  style = SYMBOL_VIRTUALCOMMONCHCONTROL_STYLE
 

Definition at line 67 of file virtual_common_ch_control.cpp.

References Create().


Member Function Documentation

bool VirtualCommonChControl::Create wxWindow *  parent,
wxWindowID  id = SYMBOL_VIRTUALCOMMONCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_VIRTUALCOMMONCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_VIRTUALCOMMONCHCONTROL_SIZE,
long  style = SYMBOL_VIRTUALCOMMONCHCONTROL_STYLE
 

Creation.

VirtualCommonChControl creator

Definition at line 76 of file virtual_common_ch_control.cpp.

References CreateControls(), m_ch_enable_control, m_main_sizer_text, and m_medium_value_control.

Referenced by VirtualCommonChControl().

void VirtualCommonChControl::CreateControls  ) 
 

Creates the controls and sizers.

Control creation for VirtualCommonChControl

Definition at line 101 of file virtual_common_ch_control.cpp.

References ID_VIRTUAL_BUTTON, ID_VIRTUAL_ENABLE_TOGGLEBUTTON, m_ch_enable_control, m_main_sizer_text, m_medium_value_control, and ShowToolTips().

Referenced by Create().

wxBitmap VirtualCommonChControl::GetBitmapResource const wxString &  name  ) 
 

Retrieves bitmap resources.

Get bitmap resources

Definition at line 165 of file virtual_common_ch_control.cpp.

wxIcon VirtualCommonChControl::GetIconResource const wxString &  name  ) 
 

Retrieves icon resources.

Get icon resources

Definition at line 178 of file virtual_common_ch_control.cpp.

void VirtualCommonChControl::OnVirtualButtonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_VIRTUAL_BUTTON

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_VIRTUAL_BUTTON

Definition at line 190 of file virtual_common_ch_control.cpp.

References SCOPE_NUM_PANELS.

void VirtualCommonChControl::OnVirtualEnableTogglebuttonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VIRTUAL_ENABLE_TOGGLEBUTTON

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VIRTUAL_ENABLE_TOGGLEBUTTON

Definition at line 142 of file virtual_common_ch_control.cpp.

References m_ch_enable_control, GenericBoardChannel::m_enabled, m_p_board_channel, and SCOPE_NUM_PANELS.

void VirtualCommonChControl::SetMediumLabel double  value  )  [virtual]
 

Reimplemented from CommonChControlBase.

Definition at line 225 of file virtual_common_ch_control.cpp.

References m_medium_value_control.

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

Reimplemented from CommonChControlBase.

Definition at line 229 of file virtual_common_ch_control.cpp.

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

Definition at line 203 of file virtual_common_ch_control.cpp.

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

bool VirtualCommonChControl::ShowToolTips  )  [static]
 

Should we show tooltips?

Should we show tooltips?

Definition at line 156 of file virtual_common_ch_control.cpp.

Referenced by CreateControls().

bool VirtualCommonChControl::UpdateControls  ) 
 

Definition at line 217 of file virtual_common_ch_control.cpp.

References m_ch_enable_control, and m_main_sizer_text.


Member Data Documentation

int VirtualCommonChControl::m_ch_count [private]
 

Definition at line 122 of file virtual_common_ch_control.h.

Referenced by SetupBoard().

wxToggleButton* VirtualCommonChControl::m_ch_enable_control
 

Definition at line 108 of file virtual_common_ch_control.h.

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

int VirtualCommonChControl::m_ch_index [private]
 

Definition at line 121 of file virtual_common_ch_control.h.

Referenced by SetupBoard().

wxStaticBox* VirtualCommonChControl::m_main_sizer_text
 

Definition at line 107 of file virtual_common_ch_control.h.

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

wxStaticText* VirtualCommonChControl::m_medium_value_control
 

Definition at line 109 of file virtual_common_ch_control.h.

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

GenericBoard* VirtualCommonChControl::m_p_board [private]
 

Definition at line 119 of file virtual_common_ch_control.h.

Referenced by SetupBoard().

VirtualBoardChannel* VirtualCommonChControl::m_p_board_channel [private]
 

Definition at line 120 of file virtual_common_ch_control.h.

Referenced by OnVirtualEnableTogglebuttonClick(), and SetupBoard().


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