CursorChControl Class Reference

#include <cursor_ch_control.h>

List of all members.

Public Member Functions

 CursorChControl ()
 Constructors.
 CursorChControl (wxWindow *parent, wxWindowID id=SYMBOL_CURSORCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_CURSORCHCONTROL_POSITION, const wxSize &size=SYMBOL_CURSORCHCONTROL_SIZE, long style=SYMBOL_CURSORCHCONTROL_STYLE)
bool Create (wxWindow *parent, wxWindowID id=SYMBOL_CURSORCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_CURSORCHCONTROL_POSITION, const wxSize &size=SYMBOL_CURSORCHCONTROL_SIZE, long style=SYMBOL_CURSORCHCONTROL_STYLE)
 Creation.
void CreateControls ()
 Creates the controls and sizers.
void OnCursorTogglebuttonClick (wxCommandEvent &event)
 wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CURSOR_TOGGLEBUTTON
void OnCursorResetButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CURSOR_RESET_BUTTON
void OnCursorPositionSpinbuttonUpdated (wxSpinEvent &event)
 wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_CURSOR_POSITION_SPINBUTTON
void OnCursorPosMultiplierChoiceSelected (wxCommandEvent &event)
 wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CURSOR_POS_MULTIPLIER_CHOICE
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, int m_scope_index, bool is_virtual)
bool UpdateControls (void)
bool UpdateCursorPosition (int cursor_position)

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_cursor_reset_control
wxSpinButton * m_set_cursor_position_control
wxChoice * m_cursor_pos_multiplier_control
wxStaticText * m_cursor_position_control
wxStaticText * m_cursor_value_control
wxStaticText * m_mV_label

Private Member Functions

int GetCursorMultipler (void)

Private Attributes

GenericBoardm_p_board
GenericBoardChannelm_p_board_channel
int m_ch_index
int m_ch_count
int m_scope_index
int m_last_cursor_pos
bool m_is_virtual


Detailed Description

CursorChControl class declaration

Definition at line 69 of file cursor_ch_control.h.


Constructor & Destructor Documentation

CursorChControl::CursorChControl  ) 
 

Constructors.

CursorChControl constructors

Definition at line 66 of file cursor_ch_control.cpp.

CursorChControl::CursorChControl wxWindow *  parent,
wxWindowID  id = SYMBOL_CURSORCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_CURSORCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_CURSORCHCONTROL_SIZE,
long  style = SYMBOL_CURSORCHCONTROL_STYLE
 

Definition at line 70 of file cursor_ch_control.cpp.

References Create().


Member Function Documentation

bool CursorChControl::Create wxWindow *  parent,
wxWindowID  id = SYMBOL_CURSORCHCONTROL_IDNAME,
const wxPoint &  pos = SYMBOL_CURSORCHCONTROL_POSITION,
const wxSize &  size = SYMBOL_CURSORCHCONTROL_SIZE,
long  style = SYMBOL_CURSORCHCONTROL_STYLE
 

Creation.

CursorChControl creator

Definition at line 80 of file cursor_ch_control.cpp.

References CreateControls(), m_ch_cursor_reset_control, m_ch_enable_control, m_cursor_pos_multiplier_control, m_cursor_position_control, m_cursor_value_control, m_main_sizer_text, m_mV_label, and m_set_cursor_position_control.

Referenced by CursorChControl().

void CursorChControl::CreateControls  ) 
 

Creates the controls and sizers.

Control creation for CursorChControl

Definition at line 110 of file cursor_ch_control.cpp.

References ID_CURSOR_POS_MULTIPLIER_CHOICE, ID_CURSOR_POSITION_SPINBUTTON, ID_CURSOR_RESET_BUTTON, ID_CURSOR_TOGGLEBUTTON, m_ch_cursor_reset_control, m_ch_enable_control, m_cursor_pos_multiplier_control, m_cursor_position_control, m_cursor_value_control, m_main_sizer_text, m_mV_label, m_set_cursor_position_control, and ShowToolTips().

Referenced by Create().

wxBitmap CursorChControl::GetBitmapResource const wxString &  name  ) 
 

Retrieves bitmap resources.

Get bitmap resources

Definition at line 221 of file cursor_ch_control.cpp.

int CursorChControl::GetCursorMultipler void   )  [private]
 

Definition at line 319 of file cursor_ch_control.cpp.

References m_cursor_pos_multiplier_control.

wxIcon CursorChControl::GetIconResource const wxString &  name  ) 
 

Retrieves icon resources.

Get icon resources

Definition at line 234 of file cursor_ch_control.cpp.

void CursorChControl::OnCursorPositionSpinbuttonUpdated wxSpinEvent &  event  ) 
 

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_CURSOR_POSITION_SPINBUTTON

wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON1

Definition at line 268 of file cursor_ch_control.cpp.

References m_last_cursor_pos, m_set_cursor_position_control, and UpdateCursorPosition().

void CursorChControl::OnCursorPosMultiplierChoiceSelected wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CURSOR_POS_MULTIPLIER_CHOICE

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CURSOR_POS_MULTIPLIER_CHOICE

Definition at line 349 of file cursor_ch_control.cpp.

void CursorChControl::OnCursorResetButtonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CURSOR_RESET_BUTTON

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1

Definition at line 257 of file cursor_ch_control.cpp.

References m_last_cursor_pos, m_set_cursor_position_control, and UpdateCursorPosition().

void CursorChControl::OnCursorTogglebuttonClick wxCommandEvent &  event  ) 
 

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CURSOR_TOGGLEBUTTON

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TOGGLEBUTTON

Definition at line 246 of file cursor_ch_control.cpp.

References m_ch_enable_control, GenericBoardChannel::m_cursor_enabled, m_p_board_channel, m_scope_index, and GenericBoardChannel::ScopeRefresh.

bool CursorChControl::SetupBoard GenericBoard p_board,
int  ch_index,
int  ch_count,
int  m_scope_index,
bool  is_virtual
 

Definition at line 277 of file cursor_ch_control.cpp.

References m_ch_count, GenericBoardChannel::m_ch_index, m_ch_index, m_is_virtual, m_mV_label, m_p_board, m_p_board_channel, GenericBoardChannel::m_p_cursor_ch_control, and m_scope_index.

Referenced by MainFrame::CreateDynControls().

bool CursorChControl::ShowToolTips  )  [static]
 

Should we show tooltips?

Should we show tooltips?

Definition at line 212 of file cursor_ch_control.cpp.

Referenced by CreateControls().

bool CursorChControl::UpdateControls void   ) 
 

Definition at line 304 of file cursor_ch_control.cpp.

References m_ch_enable_control, and m_main_sizer_text.

bool CursorChControl::UpdateCursorPosition int  cursor_position  ) 
 

Definition at line 335 of file cursor_ch_control.cpp.

References GenericBoardChannel::m_cursor_position, m_cursor_position_control, m_p_board_channel, m_scope_index, GenericBoardChannel::Sample2Sec(), and GenericBoardChannel::ScopeRefresh.

Referenced by OnCursorPositionSpinbuttonUpdated(), and OnCursorResetButtonClick().


Member Data Documentation

int CursorChControl::m_ch_count [private]
 

Definition at line 132 of file cursor_ch_control.h.

Referenced by SetupBoard().

wxButton* CursorChControl::m_ch_cursor_reset_control
 

Definition at line 116 of file cursor_ch_control.h.

Referenced by Create(), and CreateControls().

wxToggleButton* CursorChControl::m_ch_enable_control
 

Definition at line 115 of file cursor_ch_control.h.

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

int CursorChControl::m_ch_index [private]
 

Definition at line 131 of file cursor_ch_control.h.

Referenced by SetupBoard().

wxChoice* CursorChControl::m_cursor_pos_multiplier_control
 

Definition at line 118 of file cursor_ch_control.h.

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

wxStaticText* CursorChControl::m_cursor_position_control
 

Definition at line 119 of file cursor_ch_control.h.

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

wxStaticText* CursorChControl::m_cursor_value_control
 

Definition at line 120 of file cursor_ch_control.h.

Referenced by Create(), and CreateControls().

bool CursorChControl::m_is_virtual [private]
 

Definition at line 135 of file cursor_ch_control.h.

Referenced by SetupBoard().

int CursorChControl::m_last_cursor_pos [private]
 

Definition at line 134 of file cursor_ch_control.h.

Referenced by OnCursorPositionSpinbuttonUpdated(), and OnCursorResetButtonClick().

wxStaticBox* CursorChControl::m_main_sizer_text
 

Definition at line 114 of file cursor_ch_control.h.

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

wxStaticText* CursorChControl::m_mV_label
 

Definition at line 121 of file cursor_ch_control.h.

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

GenericBoard* CursorChControl::m_p_board [private]
 

Definition at line 129 of file cursor_ch_control.h.

Referenced by SetupBoard().

GenericBoardChannel* CursorChControl::m_p_board_channel [private]
 

Definition at line 130 of file cursor_ch_control.h.

Referenced by OnCursorTogglebuttonClick(), SetupBoard(), and UpdateCursorPosition().

int CursorChControl::m_scope_index [private]
 

Definition at line 133 of file cursor_ch_control.h.

Referenced by OnCursorTogglebuttonClick(), SetupBoard(), and UpdateCursorPosition().

wxSpinButton* CursorChControl::m_set_cursor_position_control
 

Definition at line 117 of file cursor_ch_control.h.

Referenced by Create(), CreateControls(), OnCursorPositionSpinbuttonUpdated(), and OnCursorResetButtonClick().


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