#include <wxOptions.h>


Public Member Functions | |
| wxFileOption (const wxString &configValueName, const wxString &description, const wxString &defaultValue, const wxString &wildcards, const wxString &browseMsg) | |
| virtual void | DoDisplay (wxOptionSizer *sizer, wxWindow *parent) |
| you should override the following functions: | |
| void | OnBrowse (wxCommandEvent &event) |
| bool | Enable (bool enable) |
| Enable/disable any controls that need to be enabled/disabled. | |
Private Attributes | |
| wxButton * | m_browseButton |
| wxString | m_browseMsg |
| wxString | m_wildcards |
Definition at line 462 of file wxOptions.h.
| wxFileOption::wxFileOption | ( | const wxString & | configValueName, | |
| const wxString & | description, | |||
| const wxString & | defaultValue, | |||
| const wxString & | wildcards, | |||
| const wxString & | browseMsg | |||
| ) | [inline] |
Definition at line 464 of file wxOptions.h.
| void wxFileOption::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 wxStringOption.
Definition at line 148 of file wxOptions.cpp.
| void wxFileOption::OnBrowse | ( | wxCommandEvent & | event | ) |
Definition at line 162 of file wxOptions.cpp.
| bool wxFileOption::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 wxStringOption.
Definition at line 472 of file wxOptions.h.
wxButton* wxFileOption::m_browseButton [private] |
Definition at line 475 of file wxOptions.h.
wxString wxFileOption::m_browseMsg [private] |
Definition at line 476 of file wxOptions.h.
wxString wxFileOption::m_wildcards [private] |
Definition at line 477 of file wxOptions.h.
1.5.5