#include <common_ch_control.h>
Inheritance diagram for CommonChControl:

Public Member Functions | |
| CommonChControl () | |
| Constructors. | |
| CommonChControl (wxWindow *parent, wxWindowID id=SYMBOL_COMMONCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_COMMONCHCONTROL_POSITION, const wxSize &size=SYMBOL_COMMONCHCONTROL_SIZE, long style=SYMBOL_COMMONCHCONTROL_STYLE) | |
| bool | Create (wxWindow *parent, wxWindowID id=SYMBOL_COMMONCHCONTROL_IDNAME, const wxPoint &pos=SYMBOL_COMMONCHCONTROL_POSITION, const wxSize &size=SYMBOL_COMMONCHCONTROL_SIZE, long style=SYMBOL_COMMONCHCONTROL_STYLE) |
| Creation. | |
| void | CreateControls () |
| Creates the controls and sizers. | |
| void | OnEnableTogglebuttonClick (wxCommandEvent &event) |
| wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ENABLE_TOGGLEBUTTON | |
| void | OnButtonClick (wxCommandEvent &event) |
| wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON | |
| void | OnSpinbuttonUpdated (wxSpinEvent &event) |
| wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON | |
| 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 | SetEnable (bool enable) |
| 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 |
| wxButton * | m_ch_DAC_reset_control |
| wxSpinButton * | m_ch_DAC_control |
| wxStaticText * | m_medium_value_control |
| wxStaticText * | m_overload_control |
Private Member Functions | |
| void | UpdateDAC (void) |
Private Attributes | |
| GenericBoard * | m_p_board |
| PhysicalBoardChannel * | m_p_board_channel |
| int | m_ch_index |
| int | m_ch_count |
Definition at line 71 of file common_ch_control.h.
|
|
Constructors. CommonChControl constructors Definition at line 64 of file common_ch_control.cpp. |
|
||||||||||||||||||||||||
|
Definition at line 69 of file common_ch_control.cpp. References Create(). |
|
||||||||||||||||||||||||
|
Creation. CommonChControl creator Definition at line 79 of file common_ch_control.cpp. References CreateControls(), m_ch_DAC_control, m_ch_DAC_reset_control, m_ch_enable_control, m_main_sizer_text, m_medium_value_control, and m_overload_control. Referenced by CommonChControl(). |
|
|
Creates the controls and sizers. Control creation for CommonChControl Definition at line 108 of file common_ch_control.cpp. References ID_BUTTON, ID_ENABLE_TOGGLEBUTTON, ID_SPINBUTTON, m_ch_DAC_control, m_ch_DAC_reset_control, m_ch_enable_control, m_main_sizer_text, m_medium_value_control, m_overload_control, and ShowToolTips(). Referenced by Create(). |
|
|
Retrieves bitmap resources. Get bitmap resources Definition at line 175 of file common_ch_control.cpp. |
|
|
Retrieves icon resources. Get icon resources Definition at line 188 of file common_ch_control.cpp. |
|
|
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON Definition at line 247 of file common_ch_control.cpp. References m_ch_DAC_control, and UpdateDAC(). |
|
|
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ENABLE_TOGGLEBUTTON wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ENABLE_TOGGLEBUTTON Definition at line 225 of file common_ch_control.cpp. References m_ch_enable_control, GenericBoardChannel::m_enabled, m_p_board, m_p_board_channel, SCOPE_NUM_PANELS, PhysicalBoardChannel::WriteChannelTrigger(), and GenericBoard::WriteTriggerMode(). |
|
|
wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON wxEVT_COMMAND_SPINCTRL_UPDATED event handler for ID_SPINBUTTON Definition at line 257 of file common_ch_control.cpp. References UpdateDAC(). |
|
|
Reimplemented from CommonChControlBase. Definition at line 266 of file common_ch_control.cpp. References m_ch_enable_control. |
|
|
Reimplemented from CommonChControlBase. Definition at line 262 of file common_ch_control.cpp. References m_medium_value_control. |
|
|
Reimplemented from CommonChControlBase. Definition at line 271 of file common_ch_control.cpp. References m_overload_control. |
|
||||||||||||||||
|
Definition at line 196 of file common_ch_control.cpp. References m_ch_count, GenericBoardChannel::m_ch_index, m_ch_index, m_p_board, and m_p_board_channel. |
|
|
Should we show tooltips? Should we show tooltips? Definition at line 166 of file common_ch_control.cpp. Referenced by CreateControls(). |
|
|
Definition at line 210 of file common_ch_control.cpp. References m_ch_DAC_control, m_ch_enable_control, m_main_sizer_text, and UpdateDAC(). |
|
|
Definition at line 237 of file common_ch_control.cpp. References m_ch_DAC_control, PhysicalBoardChannel::m_DAC_offset_bit, m_p_board_channel, and PhysicalBoardChannel::WriteDACOffset(). Referenced by OnButtonClick(), OnSpinbuttonUpdated(), and UpdateControls(). |
|
|
Definition at line 131 of file common_ch_control.h. Referenced by SetupBoard(). |
|
|
Definition at line 116 of file common_ch_control.h. Referenced by Create(), CreateControls(), OnButtonClick(), UpdateControls(), and UpdateDAC(). |
|
|
Definition at line 115 of file common_ch_control.h. Referenced by Create(), and CreateControls(). |
|
|
Definition at line 114 of file common_ch_control.h. Referenced by Create(), CreateControls(), OnEnableTogglebuttonClick(), SetEnable(), and UpdateControls(). |
|
|
Definition at line 130 of file common_ch_control.h. Referenced by SetupBoard(). |
|
|
Definition at line 113 of file common_ch_control.h. Referenced by Create(), CreateControls(), and UpdateControls(). |
|
|
Definition at line 117 of file common_ch_control.h. Referenced by Create(), CreateControls(), and SetMediumLabel(). |
|
|
Definition at line 118 of file common_ch_control.h. Referenced by Create(), CreateControls(), and SetOverloadBackground(). |
|
|
Definition at line 128 of file common_ch_control.h. Referenced by OnEnableTogglebuttonClick(), and SetupBoard(). |
|
|
Definition at line 129 of file common_ch_control.h. Referenced by OnEnableTogglebuttonClick(), SetupBoard(), and UpdateDAC(). |
1.4.6-NO