wxFileOption Class Reference

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

#include <wxOptions.h>

Inheritance diagram for wxFileOption:

Inheritance graph
[legend]
Collaboration diagram for wxFileOption:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Implements a string option with an added browse button.

Definition at line 462 of file wxOptions.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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 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.


Member Data Documentation

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.


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

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