#include <OptionCustom.h>


Public Member Functions | |
| ttsTypeOption (const wxString &configValueName, const wxString &description, const wxString &defaultValue) | |
| void | DoDisplay (wxOptionSizer *sizer, wxWindow *parent) |
| you should override the following functions: | |
| void | OnTest (wxCommandEvent &event) |
| bool | Enable (bool enable) |
| Enable/disable any controls that need to be enabled/disabled. | |
Private Attributes | |
| wxButton * | m_testButton |
| wxTextCtrl * | m_testText |
Definition at line 70 of file OptionCustom.h.
| ttsTypeOption::ttsTypeOption | ( | const wxString & | configValueName, | |
| const wxString & | description, | |||
| const wxString & | defaultValue | |||
| ) |
Definition at line 57 of file OptionCustom.cpp.
| void ttsTypeOption::DoDisplay | ( | wxOptionSizer * | sizer, | |
| wxWindow * | parent | |||
| ) | [virtual] |
you should override the following functions:
This is called when the option is going to be displayed. You should add your controls to a sizer, and then wait for OnWindowDestroy() to be called. If you need to get the value of a control (ie, a textbox), then you should keep pointers to them around. However, do not delete the controls, since they are owned by the parent dialog and will be automatically deleted.
| sizer | is a wxOptionSizer that has two columns that your controls should be added to | |
| parent | is a reference to the parent window that you should pass to your child controls. |
Reimplemented from wxComboBoxOption.
Definition at line 74 of file OptionCustom.cpp.
| void ttsTypeOption::OnTest | ( | wxCommandEvent & | event | ) |
Definition at line 89 of file OptionCustom.cpp.
| bool ttsTypeOption::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.
Reimplemented from wxComboBoxOption.
Definition at line 75 of file OptionCustom.h.
wxButton* ttsTypeOption::m_testButton [private] |
Definition at line 79 of file OptionCustom.h.
wxTextCtrl* ttsTypeOption::m_testText [private] |
Definition at line 83 of file OptionCustom.h.
1.5.5