#include <view_ch_control.h>
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 | OnViewEnableTogglebuttonClick (wxCommandEvent &event) |
| wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VIEW_ENABLE_TOGGLEBUTTON | |
| 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 | 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 | OnLineWidthSpinctrlTextUpdated (wxCommandEvent &event) |
| void | OnVoltPerDivSpinctrlTextUpdated (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, int m_scope_index, bool is_virtual) |
| bool | UpdateControls () |
Static Public Member Functions | |
| static bool | ShowToolTips () |
| Should we show tooltips? | |
Public Attributes | |
| wxStaticBox * | m_main_sizer_text |
| wxToggleButton * | m_view_enable_control |
| 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 | |
| GenericBoard * | m_p_board |
| GenericBoardChannel * | m_p_board_channel |
| int | m_ch_index |
| int | m_ch_count |
| int | m_scope_index |
| bool | m_is_virtual |
Definition at line 75 of file view_ch_control.h.
|
|
Constructors. ViewChControl constructors Definition at line 74 of file view_ch_control.cpp. |
|
||||||||||||||||||||||||
|
Definition at line 78 of file view_ch_control.cpp. References Create(). |
|
||||||||||||||||||||||||
|
Creation. ViewChControl creator Definition at line 87 of file view_ch_control.cpp. References CreateControls(), m_ch_offset_control, m_ch_offset_reset_control, m_ch_volt_per_div_control, m_color_control, m_line_width_control, m_main_sizer_text, and m_view_enable_control. Referenced by ViewChControl(). |
|
|
Creates the controls and sizers. Control creation for ViewChControl Definition at line 116 of file view_ch_control.cpp. References ID_CHOOSE_COLOR_BUTTON, ID_COLOR_PANEL, ID_LINE_WIDTH_SPINCTRL, ID_OFFSET_Y_RESET_BUTTON, ID_SPINBUTTON1, ID_VIEW_ENABLE_TOGGLEBUTTON, ID_VOLT_PER_DIV_SPINCTRL, m_ch_offset_control, m_ch_offset_reset_control, m_ch_volt_per_div_control, m_color_control, m_line_width_control, m_main_sizer_text, m_view_enable_control, and ShowToolTips(). Referenced by Create(). |
|
|
Retrieves bitmap resources. Get bitmap resources Definition at line 192 of file view_ch_control.cpp. |
|
|
Retrieves icon resources. Get icon resources Definition at line 205 of file view_ch_control.cpp. |
|
|
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CHOOSE_COLOR_BUTTON wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CHOOSE_COLOR_BUTTON Definition at line 262 of file view_ch_control.cpp. References m_color_control, and UpdateLinePen(). |
|
|
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL Definition at line 304 of file view_ch_control.cpp. References UpdateLineWidth(). |
|
|
wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_LINE_WIDTH_SPINCTRL Definition at line 283 of file view_ch_control.cpp. References UpdateLineWidth(). |
|
|
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OFFSET_Y_RESET_BUTTON wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OFFSET_Y_RESET_BUTTON Definition at line 353 of file view_ch_control.cpp. References m_ch_offset_control, and UpdateOffset(). |
|
|
wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON1 wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON1 Definition at line 363 of file view_ch_control.cpp. References UpdateOffset(). |
|
|
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VIEW_ENABLE_TOGGLEBUTTON wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_VIEW_ENABLE_TOGGLEBUTTON Definition at line 372 of file view_ch_control.cpp. References m_p_board_channel, m_scope_index, GenericBoardChannel::m_scope_view_enabled, m_view_enable_control, and GenericBoardChannel::ScopeRefresh. |
|
|
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL Definition at line 342 of file view_ch_control.cpp. References UpdateVoltPerDiv(). |
|
|
wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_VOLT_PER_DIV_SPINCTRL Definition at line 333 of file view_ch_control.cpp. References UpdateVoltPerDiv(). |
|
||||||||||||||||||||||||
|
Definition at line 214 of file view_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 m_scope_index. Referenced by MainFrame::CreateDynControls(). |
|
|
Should we show tooltips? Should we show tooltips? Definition at line 183 of file view_ch_control.cpp. Referenced by CreateControls(). |
|
|
Definition at line 238 of file view_ch_control.cpp. References m_ch_offset_control, m_ch_volt_per_div_control, m_color_control, m_line_width_control, m_main_sizer_text, m_p_board_channel, m_scope_index, m_view_enable_control, GenericBoardChannel::m_volt_2_div, and UpdateLinePen(). |
|
|
Definition at line 289 of file view_ch_control.cpp. References m_p_board_channel, GenericBoardChannel::ScopeRefresh, and GenericBoardChannel::SetLinePen(). Referenced by OnChooseColorButtonClick(), UpdateControls(), and UpdateLineWidth(). |
|
|
Definition at line 311 of file view_ch_control.cpp. References GenericBoardChannel::m_line_width, m_p_board_channel, m_scope_index, and UpdateLinePen(). Referenced by OnLineWidthSpinctrlTextUpdated(), and OnLineWidthSpinctrlUpdated(). |
|
|
Definition at line 317 of file view_ch_control.cpp. References GenericBoardChannel::m_offset_y, m_p_board_channel, m_scope_index, and GenericBoardChannel::ScopeRefresh. Referenced by OnOffsetYResetButtonClick(), and OnSpinbutton1Updated(). |
|
|
Definition at line 322 of file view_ch_control.cpp. References m_p_board_channel, GenericBoardChannel::ScopeRefresh, and GenericBoardChannel::SetVolt2Div(). Referenced by OnVoltPerDivSpinctrlTextUpdated(), and OnVoltPerDivSpinctrlUpdated(). |
|
|
Definition at line 145 of file view_ch_control.h. Referenced by SetupBoard(). |
|
|
Definition at line 144 of file view_ch_control.h. Referenced by SetupBoard(). |
|
|
Definition at line 134 of file view_ch_control.h. Referenced by Create(), CreateControls(), OnOffsetYResetButtonClick(), and UpdateControls(). |
|
|
Definition at line 133 of file view_ch_control.h. Referenced by Create(), and CreateControls(). |
|
|
Definition at line 135 of file view_ch_control.h. Referenced by Create(), CreateControls(), and UpdateControls(). |
|
|
Definition at line 131 of file view_ch_control.h. Referenced by Create(), CreateControls(), OnChooseColorButtonClick(), and UpdateControls(). |
|
|
Definition at line 147 of file view_ch_control.h. Referenced by SetupBoard(). |
|
|
Definition at line 132 of file view_ch_control.h. Referenced by Create(), CreateControls(), and UpdateControls(). |
|
|
Definition at line 129 of file view_ch_control.h. Referenced by Create(), CreateControls(), and UpdateControls(). |
|
|
Definition at line 142 of file view_ch_control.h. Referenced by SetupBoard(). |
|
|
Definition at line 143 of file view_ch_control.h. Referenced by OnViewEnableTogglebuttonClick(), SetupBoard(), UpdateControls(), UpdateLinePen(), UpdateLineWidth(), UpdateOffset(), and UpdateVoltPerDiv(). |
|
|
Definition at line 146 of file view_ch_control.h. Referenced by OnViewEnableTogglebuttonClick(), SetupBoard(), UpdateControls(), UpdateLineWidth(), and UpdateOffset(). |
|
|
Definition at line 130 of file view_ch_control.h. Referenced by Create(), CreateControls(), OnViewEnableTogglebuttonClick(), and UpdateControls(). |
1.4.6-NO