RecordChControl Class Reference

#include <record_ch_control.h>

List of all members.

Public Member Functions

 RecordChControl ()
 Constructors.
 RecordChControl (wxWindow *parent, wxWindowID id=SYMBOL_RECORDCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_RECORDCHCONTROL_POSITION, const wxSize &size=SYMBOL_RECORDCHCONTROL_SIZE, long style=SYMBOL_RECORDCHCONTROL_STYLE)
bool Create (wxWindow *parent, wxWindowID id=SYMBOL_RECORDCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_RECORDCHCONTROL_POSITION, const wxSize &size=SYMBOL_RECORDCHCONTROL_SIZE, long style=SYMBOL_RECORDCHCONTROL_STYLE)
 Creation.
void CreateControls ()
 Creates the controls and sizers.
void OnTogglebuttonClick (wxCommandEvent &event)
 wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TOGGLEBUTTON
void OnRateDividerSpinctrlUpdated (wxSpinEvent &event)
 wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_RATE_DIVIDER_SPINCTRL
void OnFormatChoiceSelected (wxCommandEvent &event)
 wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_FORMAT_CHOICE
void OnRateDividerSpinctrlTextUpdated (wxCommandEvent &event)
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 is_virtual)
bool UpdateControls (void)
void UpdateRateDivider (int value)

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips?

Public Attributes

wxStaticBox * m_main_sizer_text
wxToggleButton * m_ch_enable_control
wxSpinCtrl * m_ch_rate_divider_control
wxChoice * m_format_control

Private Attributes

bool m_is_virtual
GenericBoardm_p_board
GenericBoardChannelm_p_board_channel
int m_ch_index
int m_ch_count


Detailed Description

RecordChControl class declaration

Definition at line 69 of file record_ch_control.h.


Constructor & Destructor Documentation

RecordChControl::RecordChControl  ) 
 

Constructors.

RecordChControl constructors

Definition at line 65 of file record_ch_control.cpp.

RecordChControl::RecordChControl wxWindow *  parent,
wxWindowID  id = SYMBOL_RECORDCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_RECORDCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_RECORDCHCONTROL_SIZE,
long  style = SYMBOL_RECORDCHCONTROL_STYLE
 

Definition at line 69 of file record_ch_control.cpp.

References Create().


Member Function Documentation

bool RecordChControl::Create wxWindow *  parent,
wxWindowID  id = SYMBOL_RECORDCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_RECORDCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_RECORDCHCONTROL_SIZE,
long  style = SYMBOL_RECORDCHCONTROL_STYLE
 

Creation.

RecordChControl creator

Definition at line 78 of file record_ch_control.cpp.

References CreateControls(), m_ch_enable_control, m_ch_rate_divider_control, m_format_control, and m_main_sizer_text.

Referenced by RecordChControl().

void RecordChControl::CreateControls  ) 
 

Creates the controls and sizers.

Control creation for RecordChControl

Definition at line 104 of file record_ch_control.cpp.

References ID_FORMAT_CHOICE, ID_RATE_DIVIDER_SPINCTRL, ID_TOGGLEBUTTON, m_ch_enable_control, m_ch_rate_divider_control, m_format_control, m_main_sizer_text, and ShowToolTips().

Referenced by Create().

wxBitmap RecordChControl::GetBitmapResource const wxString &  name  ) 
 

Retrieves bitmap resources.

Get bitmap resources

Definition at line 188 of file record_ch_control.cpp.

wxIcon RecordChControl::GetIconResource const wxString &  name  ) 
 

Retrieves icon resources.

Get icon resources

Definition at line 201 of file record_ch_control.cpp.

void RecordChControl::OnFormatChoiceSelected wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_FORMAT_CHOICE

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_FORMAT_CHOICE

Definition at line 259 of file record_ch_control.cpp.

References m_p_board_channel, and GenericBoardChannel::m_record_format_type.

void RecordChControl::OnRateDividerSpinctrlTextUpdated wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_RATE_DIVIDER_SPINCTRL

Definition at line 169 of file record_ch_control.cpp.

References UpdateRateDivider().

void RecordChControl::OnRateDividerSpinctrlUpdated wxSpinEvent &  event  ) 
 

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_RATE_DIVIDER_SPINCTRL

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_RATE_DIVIDER_SPINCTRL

Definition at line 160 of file record_ch_control.cpp.

References UpdateRateDivider().

void RecordChControl::OnTogglebuttonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TOGGLEBUTTON

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TOGGLEBUTTON

Definition at line 150 of file record_ch_control.cpp.

References m_ch_enable_control, m_p_board_channel, and GenericBoardChannel::m_record_enabled.

bool RecordChControl::SetupBoard GenericBoard p_board,
int  ch_index,
int  ch_count,
bool  is_virtual
 

Definition at line 210 of file record_ch_control.cpp.

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

Referenced by MainFrame::CreateDynControls().

bool RecordChControl::ShowToolTips  )  [static]
 

Should we show tooltips?

Should we show tooltips?

Definition at line 179 of file record_ch_control.cpp.

Referenced by CreateControls().

bool RecordChControl::UpdateControls void   ) 
 

Definition at line 234 of file record_ch_control.cpp.

References m_ch_enable_control, m_ch_rate_divider_control, m_format_control, and m_main_sizer_text.

void RecordChControl::UpdateRateDivider int  value  ) 
 

Definition at line 251 of file record_ch_control.cpp.

References m_p_board_channel, and GenericBoardChannel::m_record_rate_divider.

Referenced by OnRateDividerSpinctrlTextUpdated(), and OnRateDividerSpinctrlUpdated().


Member Data Documentation

int RecordChControl::m_ch_count [private]
 

Definition at line 127 of file record_ch_control.h.

Referenced by SetupBoard().

wxToggleButton* RecordChControl::m_ch_enable_control
 

Definition at line 113 of file record_ch_control.h.

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

int RecordChControl::m_ch_index [private]
 

Definition at line 126 of file record_ch_control.h.

Referenced by SetupBoard().

wxSpinCtrl* RecordChControl::m_ch_rate_divider_control
 

Definition at line 114 of file record_ch_control.h.

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

wxChoice* RecordChControl::m_format_control
 

Definition at line 115 of file record_ch_control.h.

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

bool RecordChControl::m_is_virtual [private]
 

Definition at line 122 of file record_ch_control.h.

Referenced by SetupBoard().

wxStaticBox* RecordChControl::m_main_sizer_text
 

Definition at line 112 of file record_ch_control.h.

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

GenericBoard* RecordChControl::m_p_board [private]
 

Definition at line 124 of file record_ch_control.h.

Referenced by SetupBoard().

GenericBoardChannel* RecordChControl::m_p_board_channel [private]
 

Definition at line 125 of file record_ch_control.h.

Referenced by OnFormatChoiceSelected(), OnTogglebuttonClick(), SetupBoard(), and UpdateRateDivider().


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