ViewChControl Class Reference

#include <view_ch_control.h>

List of all members.

Public Member Functions

 ViewChControl ()
 Constructors.
 ViewChControl (wxWindow *parent, wxWindowID id=SYMBOL_VIEWCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_VIEWCHCONTROL_POSITION, const wxSize &size=SYMBOL_VIEWCHCONTROL_SIZE, long style=SYMBOL_VIEWCHCONTROL_STYLE)
bool Create (wxWindow *parent, wxWindowID id=SYMBOL_VIEWCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_VIEWCHCONTROL_POSITION, const wxSize &size=SYMBOL_VIEWCHCONTROL_SIZE, long style=SYMBOL_VIEWCHCONTROL_STYLE)
 Creation.
void CreateControls ()
 Creates the controls and sizers.
void OnChooseColorButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CHOOSE_COLOR_BUTTON
void OnLineWidthSpinctrlUpdated (wxSpinEvent &event)
 wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL
void OnLineWidthSpinctrlTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL
void OnOffsetYResetButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OFFSET_Y_RESET_BUTTON
void OnSpinbutton1Updated (wxSpinEvent &event)
 wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON1
void OnVoltPerDivSpinctrlUpdated (wxSpinEvent &event)
 wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL
void OnVoltPerDivSpinctrlTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL
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 ()

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips?

Public Attributes

wxStaticBox * m_main_sizer_text
wxPanel * m_color_control
wxSpinCtrl * m_line_width_control
wxButton * m_ch_offset_reset_control
wxSpinButton * m_ch_offset_control
wxSpinCtrl * m_ch_volt_per_div_control

Protected Member Functions

void UpdateLinePen (void)
void UpdateLineWidth (int value)
void UpdateOffset (void)
void UpdateVoltPerDiv (int value)

Private Attributes

GenericBoardm_p_board
GenericBoardChannelm_p_board_channel
int m_ch_index
int m_ch_count


Detailed Description

ViewChControl class declaration


Constructor & Destructor Documentation

ViewChControl::ViewChControl  ) 
 

Constructors.

ViewChControl constructors

ViewChControl::ViewChControl wxWindow *  parent,
wxWindowID  id = SYMBOL_VIEWCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_VIEWCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_VIEWCHCONTROL_SIZE,
long  style = SYMBOL_VIEWCHCONTROL_STYLE
 


Member Function Documentation

bool ViewChControl::Create wxWindow *  parent,
wxWindowID  id = SYMBOL_VIEWCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_VIEWCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_VIEWCHCONTROL_SIZE,
long  style = SYMBOL_VIEWCHCONTROL_STYLE
 

Creation.

ViewChControl creator

void ViewChControl::CreateControls  ) 
 

Creates the controls and sizers.

Control creation for ViewChControl

wxBitmap ViewChControl::GetBitmapResource const wxString &  name  ) 
 

Retrieves bitmap resources.

Get bitmap resources

wxIcon ViewChControl::GetIconResource const wxString &  name  ) 
 

Retrieves icon resources.

Get icon resources

void ViewChControl::OnChooseColorButtonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CHOOSE_COLOR_BUTTON

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CHOOSE_COLOR_BUTTON

void ViewChControl::OnLineWidthSpinctrlTextUpdated wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL

void ViewChControl::OnLineWidthSpinctrlUpdated wxSpinEvent &  event  ) 
 

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL

void ViewChControl::OnOffsetYResetButtonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OFFSET_Y_RESET_BUTTON

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OFFSET_Y_RESET_BUTTON

void ViewChControl::OnSpinbutton1Updated wxSpinEvent &  event  ) 
 

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON1

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON1

void ViewChControl::OnVoltPerDivSpinctrlTextUpdated wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL

void ViewChControl::OnVoltPerDivSpinctrlUpdated wxSpinEvent &  event  ) 
 

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL

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

bool ViewChControl::ShowToolTips  )  [static]
 

Should we show tooltips?

Should we show tooltips?

bool ViewChControl::UpdateControls  ) 
 

void ViewChControl::UpdateLinePen void   )  [protected]
 

void ViewChControl::UpdateLineWidth int  value  )  [protected]
 

void ViewChControl::UpdateOffset void   )  [protected]
 

void ViewChControl::UpdateVoltPerDiv int  value  )  [protected]
 


Member Data Documentation

int ViewChControl::m_ch_count [private]
 

int ViewChControl::m_ch_index [private]
 

wxSpinButton* ViewChControl::m_ch_offset_control
 

wxButton* ViewChControl::m_ch_offset_reset_control
 

wxSpinCtrl* ViewChControl::m_ch_volt_per_div_control
 

wxPanel* ViewChControl::m_color_control
 

wxSpinCtrl* ViewChControl::m_line_width_control
 

wxStaticBox* ViewChControl::m_main_sizer_text
 

GenericBoard* ViewChControl::m_p_board [private]
 

GenericBoardChannel* ViewChControl::m_p_board_channel [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Nov 6 14:16:01 2006 for CAENScope by  doxygen 1.4.6-NO