#include <OptionsLCDproc.h>


Public Member Functions | |
| LCDprocOption () | |
| Constructor -- Get initial options. | |
| void | DoDisplay (wxOptionSizer *sizer, wxWindow *parent) |
| Create and initialize controls. | |
| void | OnWindowDestroy () |
| Keep the settings around for later. | |
| bool | DoSave () |
| Save the settings. | |
| bool | Enable (bool enable) |
| Enable/disable any controls that need to be enabled/disabled. | |
Private Member Functions | |
| void | OnScreenSelection (wxCommandEvent &event) |
| Text was typed in the screen selection combo box - update the widget list accordingly. | |
| void | OnWidgetSelection (wxCommandEvent &event) |
| The user selected a widget from the list. | |
| void | OnWidgetAdd (wxCommandEvent &event) |
| User clicked add - add the entered settings into a new widget. | |
| void | OnWidgetUpdate (wxCommandEvent &event) |
| User clicked update - update the settings in the selected widget with what's on the screen. | |
| void | OnWidgetDelete (wxCommandEvent &event) |
| User clicked delete - delete the selected widget. | |
| void | UpdateScreenList () |
| Update the list of screens in the m_pctlScreenSelection combo box. | |
| void | UpdateWidgetList () |
| Update the list of widgets in the m_pctlWidgetList list box. | |
Private Attributes | |
| wxCheckBox * | m_pctlEnableLCDproc |
| Check box indicating if LCDproc support is enabled or not. | |
| wxTextCtrl * | m_pctlHostAndPort |
| Text control where the user can enter the host and port of the LCDproc server. | |
| wxComboBox * | m_pctlScreenSelection |
| Screen selection combo box. User may type in new screen names or use the drop down feature. | |
| wxListBox * | m_pctlWidgetList |
| List box containing the widgets for this screen. | |
| wxTextCtrl * | m_pctlWidgetRow |
| Row number of this widget. 1 = top row, 2 = second row, etc. | |
| wxTextCtrl * | m_pctlWidgetColumn |
| Column number of this widget. 1 = leftmost column, 2 = second column, etc. | |
| wxComboBox * | m_pctlWidgetType |
| Combo box containing the type of this widget. | |
| wxComboBox * | m_pctlWidgetContents |
| Combo box containing the value of this widget. May be a mangled variable name or static text. | |
| LCDprocSettings | m_cActiveSettings |
| Contains a copy of the entered settings. Made effective using SetLCDprocSettings in OnOK. | |
Definition at line 39 of file OptionsLCDproc.h.
| LCDprocOption::LCDprocOption | ( | ) |
| void LCDprocOption::DoDisplay | ( | wxOptionSizer * | sizer, | |
| wxWindow * | parent | |||
| ) | [virtual] |
Create and initialize controls.
Implements wxOption.
Definition at line 66 of file OptionsLCDproc.cpp.
| void LCDprocOption::OnWindowDestroy | ( | ) | [virtual] |
Keep the settings around for later.
Implements wxOption.
Definition at line 385 of file OptionsLCDproc.cpp.
| bool LCDprocOption::DoSave | ( | ) | [virtual] |
| bool LCDprocOption::Enable | ( | bool | enable | ) | [inline, virtual] |
Enable/disable any controls that need to be enabled/disabled.
Don't bother doing this with static labels, that just seems like it would be annoying and useless.
Implements wxOption.
Definition at line 48 of file OptionsLCDproc.h.
| void LCDprocOption::OnScreenSelection | ( | wxCommandEvent & | event | ) | [private] |
Text was typed in the screen selection combo box - update the widget list accordingly.
Definition at line 454 of file OptionsLCDproc.cpp.
| void LCDprocOption::OnWidgetSelection | ( | wxCommandEvent & | event | ) | [private] |
The user selected a widget from the list.
Update the widget settings on the screen with the settings for that widget.
Definition at line 466 of file OptionsLCDproc.cpp.
| void LCDprocOption::OnWidgetAdd | ( | wxCommandEvent & | event | ) | [private] |
User clicked add - add the entered settings into a new widget.
Definition at line 496 of file OptionsLCDproc.cpp.
| void LCDprocOption::OnWidgetUpdate | ( | wxCommandEvent & | event | ) | [private] |
User clicked update - update the settings in the selected widget with what's on the screen.
Definition at line 533 of file OptionsLCDproc.cpp.
| void LCDprocOption::OnWidgetDelete | ( | wxCommandEvent & | event | ) | [private] |
User clicked delete - delete the selected widget.
Also, deletes the selected screen if there are no widgets left on it.
Definition at line 565 of file OptionsLCDproc.cpp.
| void LCDprocOption::UpdateScreenList | ( | ) | [private] |
Update the list of screens in the m_pctlScreenSelection combo box.
Definition at line 408 of file OptionsLCDproc.cpp.
| void LCDprocOption::UpdateWidgetList | ( | ) | [private] |
Update the list of widgets in the m_pctlWidgetList list box.
Definition at line 423 of file OptionsLCDproc.cpp.
wxCheckBox* LCDprocOption::m_pctlEnableLCDproc [private] |
Check box indicating if LCDproc support is enabled or not.
Definition at line 61 of file OptionsLCDproc.h.
wxTextCtrl* LCDprocOption::m_pctlHostAndPort [private] |
Text control where the user can enter the host and port of the LCDproc server.
Definition at line 64 of file OptionsLCDproc.h.
wxComboBox* LCDprocOption::m_pctlScreenSelection [private] |
Screen selection combo box. User may type in new screen names or use the drop down feature.
Definition at line 67 of file OptionsLCDproc.h.
wxListBox* LCDprocOption::m_pctlWidgetList [private] |
wxTextCtrl* LCDprocOption::m_pctlWidgetRow [private] |
Row number of this widget. 1 = top row, 2 = second row, etc.
Definition at line 75 of file OptionsLCDproc.h.
wxTextCtrl* LCDprocOption::m_pctlWidgetColumn [private] |
Column number of this widget. 1 = leftmost column, 2 = second column, etc.
Definition at line 78 of file OptionsLCDproc.h.
wxComboBox* LCDprocOption::m_pctlWidgetType [private] |
wxComboBox* LCDprocOption::m_pctlWidgetContents [private] |
Combo box containing the value of this widget. May be a mangled variable name or static text.
Definition at line 84 of file OptionsLCDproc.h.
Contains a copy of the entered settings. Made effective using SetLCDprocSettings in OnOK.
Definition at line 87 of file OptionsLCDproc.h.
1.5.5