wxPropertyGrid
Public Member Functions | Protected Attributes
wxDirProperty Class Reference

Like wxLongStringProperty, but the button triggers dir selector instead. More...

#include <props.h>

Inheritance diagram for wxDirProperty:
wxLongStringProperty wxPGProperty

List of all members.

Public Member Functions

virtual wxValidator * DoGetValidator () const
 Returns pointer to the wxValidator that should be used with the editor of this property (NULL for no validator).
virtual bool DoSetAttribute (const wxString &name, wxVariant &value)
 Special handling for attributes of this property.
virtual bool OnButtonClick (wxPropertyGrid *propGrid, wxString &value)
 wxDirProperty (const wxString &name=wxPG_LABEL, const wxString &label=wxPG_LABEL, const wxString &value=wxEmptyString)

Protected Attributes

wxString m_dlgMessage

Detailed Description

Like wxLongStringProperty, but the button triggers dir selector instead.

Supported special attributes:


Member Function Documentation

virtual wxValidator* wxDirProperty::DoGetValidator ( ) const [virtual]

Returns pointer to the wxValidator that should be used with the editor of this property (NULL for no validator).

Setting validator explicitly via SetPropertyValidator will override this.

In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):

        wxValidator* wxMyPropertyClass::DoGetValidator () const
        {
            WX_PG_DOGETVALIDATOR_ENTRY()

            wxMyValidator* validator = new wxMyValidator(...);

            ... prepare validator...

            WX_PG_DOGETVALIDATOR_EXIT(validator)
        }
Remarks:
You can get common filename validator by returning wxFileProperty::GetClassValidator(). wxDirProperty, for example, uses it.

Reimplemented from wxPGProperty.

virtual bool wxDirProperty::DoSetAttribute ( const wxString &  name,
wxVariant &  value 
) [virtual]

Special handling for attributes of this property.

If returns false, then the attribute will be automatically stored in m_attributes.

Default implementation simply returns false.

Reimplemented from wxPGProperty.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator