wxDirectoryOption Class Reference

Implements a string option with an added browse button. More...

#include <wxOptions.h>

Inheritance diagram for wxDirectoryOption:

Inheritance graph
[legend]
Collaboration diagram for wxDirectoryOption:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxDirectoryOption (const wxString &configValueName, const wxString &description, const wxString &defaultValue, 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


Detailed Description

Implements a string option with an added browse button.

Definition at line 485 of file wxOptions.h.


Constructor & Destructor Documentation

wxDirectoryOption::wxDirectoryOption ( const wxString &  configValueName,
const wxString &  description,
const wxString &  defaultValue,
const wxString &  browseMsg 
) [inline]

Definition at line 487 of file wxOptions.h.


Member Function Documentation

void wxDirectoryOption::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.

Parameters:
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 179 of file wxOptions.cpp.

void wxDirectoryOption::OnBrowse ( wxCommandEvent &  event  ) 

Definition at line 193 of file wxOptions.cpp.

bool wxDirectoryOption::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 494 of file wxOptions.h.


Member Data Documentation

wxButton* wxDirectoryOption::m_browseButton [private]

Definition at line 497 of file wxOptions.h.

wxString wxDirectoryOption::m_browseMsg [private]

Definition at line 498 of file wxOptions.h.


The documentation for this class was generated from the following files:

Generated on Sun Jul 27 17:26:21 2008 for Roadnav by  doxygen 1.5.5