#include "editors.h"
#include <wx/dialog.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/listbox.h>
#include <wx/filename.h>
Go to the source code of this file.
Classes | |
class | wxArrayEditorDialog |
class | wxArrayStringProperty |
Property that manages a list of strings. More... | |
class | wxBaseEnumProperty |
Derive dynamic custom properties with choices from this class. More... | |
class | wxBoolProperty |
Basic property with boolean value. More... | |
class | wxCustomProperty |
This is a somewhat inefficient but versatile property class. More... | |
class | wxDirProperty |
Like wxLongStringProperty, but the button triggers dir selector instead. More... | |
class | wxEditEnumProperty |
wxEnumProperty with wxString value and writable combo box editor. More... | |
class | wxEnumProperty |
You can derive custom properties with choices from this class. See wxBaseEnumProperty for remarks. More... | |
class | wxFileProperty |
Like wxLongStringProperty, but the button triggers file selector instead. More... | |
class | wxFlagsProperty |
Represents a bit set that fits in a long integer. wxBoolProperty sub-properties are created for editing individual bits. Textctrl is created to manually edit the flags as a text; a continous sequence of spaces, commas and semicolons is considered as a flag id separator. Note: When changing "choices" (ie. flag labels) of wxFlagsProperty, you will need to use SetPropertyChoices - otherwise they will not get updated properly. More... | |
class | wxFloatProperty |
Basic property with double-precision floating point value. More... | |
class | wxIntProperty |
Basic property with integer value. Seamlessly supports 64-bit integer (wxLongLong) on overflow. More... | |
class | wxLongStringProperty |
Like wxStringProperty, but has a button that triggers a small text editor dialog. More... | |
class | wxPGArrayStringEditorDialog |
class | wxPGFileDialogAdapter |
class | wxPGInDialogValidator |
Creates and manages a temporary wxTextCtrl for validation purposes. Uses wxPropertyGrid's current editor, if available. More... | |
class | wxPGLongStringDialogAdapter |
class | wxStringProperty |
Basic property with string value. More... | |
class | wxUIntProperty |
Basic property with unsigned integer value. Seamlessly supports 64-bit integer (wxULongLong) on overflow. More... | |
Defines | |
#define | WX_PG_DECLARE_ARRAYSTRING_PROPERTY(PROPNAME) WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAME) |
#define | WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_DECL(PROPNAME, DECL) WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR_WITH_DECL(PROPNAME, DECL) |
#define | WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAM) WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAM, class) |
#define | WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR_WITH_DECL(PROPNAME, DECL) |
#define | WX_PG_DECLARE_ATTRIBUTE_METHODS() virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); |
#define | WX_PG_DECLARE_BASIC_TYPE_METHODS() |
#define | WX_PG_DECLARE_CHOICE_METHODS() |
#define | WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY(CLASSNAME) WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_WITH_DECL(CLASSNAME, class) |
#define | WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR(CLASSNAME) WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR_WITH_DECL(CLASSNAME, class) |
#define | WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR_WITH_DECL(CLASSNAME, DECL) |
#define | WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_WITH_DECL(CLASSNAME, DECL) |
#define | WX_PG_DECLARE_CUSTOM_ENUM_PROPERTY(CLASSNAME) WX_PG_DECLARE_CUSTOM_ENUM_PROPERTY_WITH_DECL(CLASSNAME, class) |
#define | WX_PG_DECLARE_CUSTOM_ENUM_PROPERTY_WITH_DECL(CLASSNAME, DECL) |
#define | WX_PG_DECLARE_CUSTOM_FLAGS_PROPERTY(CLASSNAME) WX_PG_DECLARE_CUSTOM_FLAGS_PROPERTY_WITH_DECL(CLASSNAME, class) |
#define | WX_PG_DECLARE_CUSTOM_FLAGS_PROPERTY_WITH_DECL(CLASSNAME, DECL) |
#define | WX_PG_DECLARE_CUSTOM_PAINT_METHODS() |
#define | WX_PG_DECLARE_DERIVED_PROPERTY_CLASS(CLASSNAME) DECLARE_DYNAMIC_CLASS(CLASSNAME) |
#define | WX_PG_DECLARE_EVENT_METHODS() virtual bool OnEvent( wxPropertyGrid* propgrid, wxWindow* primary, wxEvent& event ); |
#define | WX_PG_DECLARE_PARENTAL_METHODS() |
#define | WX_PG_DECLARE_STRING_PROPERTY(NAME) WX_PG_DECLARE_STRING_PROPERTY_WITH_DECL(NAME, class) \ |
#define | WX_PG_DECLARE_STRING_PROPERTY_WITH_DECL(NAME, DECL) |
#define | WX_PG_DECLARE_VALIDATOR_METHODS() virtual wxValidator* DoGetValidator() const; |
#define | WX_PG_DOGETVALIDATOR_ENTRY() |
#define | WX_PG_DOGETVALIDATOR_EXIT(VALIDATOR) |
#define | WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY(PROPNAME, DELIMCHAR, CUSTBUTTXT) |
#define | WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAME, DELIMCHAR, CUSTBUTTXT) |
#define | WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY(CLASSNAME, LABELS, VALUES, COLOURS) |
#define | WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR(CLASSNAME, LABELS, VALUES, COLOURS) WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR2(CLASSNAME,LABELS,VALUES,COLOURS,Choice) |
#define | WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR2(CLASSNAME, LABELS, VALUES, COLOURS, EDITOR) |
#define | WX_PG_IMPLEMENT_CUSTOM_ENUM_PROPERTY(CLASSNAME, LABELS, VALUES, DEFVAL) |
#define | WX_PG_IMPLEMENT_CUSTOM_FLAGS_PROPERTY(CLASSNAME, LABELS, VALUES, DEFVAL) |
#define | WX_PG_IMPLEMENT_DERIVED_PROPERTY_CLASS(NAME, UPNAME, T_AS_ARG) IMPLEMENT_DYNAMIC_CLASS(NAME, UPNAME) |
#define | WX_PG_IMPLEMENT_PROPERTY_CLASS(NAME, UPNAME, T, T_AS_ARG, EDITOR) WX_PG_IMPLEMENT_PROPERTY_CLASS2(NAME,wxPG_PROPCLASS(NAME),wxPG_PROPCLASS(UPNAME),T,T_AS_ARG,EDITOR) |
#define | WX_PG_IMPLEMENT_PROPERTY_CLASS2(NAME, CLASSNAME, UPCLASS, T, T_AS_ARG, EDITOR) |
#define | WX_PG_IMPLEMENT_STRING_PROPERTY(NAME, FLAGS) |
#define | WX_PG_IMPLEMENT_STRING_PROPERTY_WITH_VALIDATOR(NAME, FLAGS) |
#define | wxAEDIALOG_STYLE (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE) |
#define | wxPG_ESCAPE 0 |
#define | wxPG_NO_ESCAPE wxPG_PROP_NO_ESCAPE |
#define | wxPG_PROP_NO_ESCAPE wxPG_PROP_CLASS_SPECIFIC_1 |
#define | wxPG_PROP_PASSWORD wxPG_PROP_CLASS_SPECIFIC_2 |
#define | wxPG_PROP_SHOW_FULL_FILENAME wxPG_PROP_CLASS_SPECIFIC_1 |
#define | wxPG_PROP_STATIC_CHOICES wxPG_PROP_CLASS_SPECIFIC_1 |
#define | wxPG_PROP_USE_CHECKBOX wxPG_PROP_CLASS_SPECIFIC_1 |
#define | wxPG_PROP_USE_DCC wxPG_PROP_CLASS_SPECIFIC_2 |
Enumerations | |
enum | { wxPG_PROPERTY_VALIDATION_ERROR_MESSAGE = 0, wxPG_PROPERTY_VALIDATION_SATURATE = 1, wxPG_PROPERTY_VALIDATION_WRAP = 2 } |
Functions | |
WXDLLIMPEXP_PG bool | wxPGStringToLongLong (const wxString s, wxLongLong_t *val, int base) |
WXDLLIMPEXP_PG bool | wxPGStringToULongLong (const wxString s, wxULongLong_t *val, int base) |
Variables | |
class WXDLLIMPEXP_PG | wxArrayEditorDialog |
#define WX_PG_DECLARE_ARRAYSTRING_PROPERTY | ( | PROPNAME | ) | WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAME) |
#define WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_DECL | ( | PROPNAME, | |||
DECL | ) | WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR_WITH_DECL(PROPNAME, DECL) |
#define WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR | ( | PROPNAM | ) | WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAM, class) |
#define WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR_WITH_DECL | ( | PROPNAME, | |||
DECL | ) |
DECL wxPG_PROPCLASS(PROPNAME) : public wxPG_PROPCLASS(wxArrayStringProperty) \ { \ WX_PG_DECLARE_PROPERTY_CLASS(wxPG_PROPCLASS(PROPNAME)) \ public: \ wxPG_PROPCLASS(PROPNAME)( const wxString& label = wxPG_LABEL, const wxString& name = wxPG_LABEL, \ const wxArrayString& value = wxArrayString() ); \ ~wxPG_PROPCLASS(PROPNAME)(); \ virtual void GenerateValueAsString(); \ virtual bool StringToValue( wxVariant& value, const wxString& text, int = 0 ) const; \ virtual bool OnEvent( wxPropertyGrid* propgrid, wxWindow* primary, wxEvent& event ); \ virtual bool OnCustomStringEdit( wxWindow* parent, wxString& value ); \ WX_PG_DECLARE_VALIDATOR_METHODS() \ };
#define WX_PG_DECLARE_ATTRIBUTE_METHODS | ( | ) | virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); |
#define WX_PG_DECLARE_BASIC_TYPE_METHODS | ( | ) |
#define WX_PG_DECLARE_CHOICE_METHODS | ( | ) |
virtual bool IntToValue( wxVariant& variant, int number, int argFlags = 0 ) const; \ virtual int GetChoiceInfo( wxPGChoiceInfo* choiceinfo );
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY | ( | CLASSNAME | ) | WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_WITH_DECL(CLASSNAME, class) |
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR | ( | CLASSNAME | ) | WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR_WITH_DECL(CLASSNAME, class) |
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR_WITH_DECL | ( | CLASSNAME, | |||
DECL | ) |
DECL CLASSNAME : public wxPG_PROPCLASS(wxSystemColourProperty) \ { \ WX_PG_DECLARE_PROPERTY_CLASS(CLASSNAME) \ public: \ CLASSNAME( const wxString& label = wxPG_LABEL, const wxString& name = wxPG_LABEL, \ const wxColour& value = wxColour() ); \ virtual ~CLASSNAME(); \ virtual wxString GetValueAsString( int argFlags ) const; \ virtual wxColour GetColour( int index ) const; \ virtual wxVariant DoTranslateVal( wxColourPropertyValue& v ) const; \ void Init( wxColour colour ); \ };
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_WITH_DECL | ( | CLASSNAME, | |||
DECL | ) |
DECL CLASSNAME : public wxPG_PROPCLASS(wxSystemColourProperty) \ { \ DECLARE_DYNAMIC_CLASS(CLASSNAME) \ public: \ CLASSNAME( const wxString& label = wxPG_LABEL, const wxString& name = wxPG_LABEL, \ const wxColourPropertyValue& value = wxColourPropertyValue() ); \ virtual ~CLASSNAME(); \ virtual wxColour GetColour( int index ) const; \ };
#define WX_PG_DECLARE_CUSTOM_ENUM_PROPERTY | ( | CLASSNAME | ) | WX_PG_DECLARE_CUSTOM_ENUM_PROPERTY_WITH_DECL(CLASSNAME, class) |
#define WX_PG_DECLARE_CUSTOM_ENUM_PROPERTY_WITH_DECL | ( | CLASSNAME, | |||
DECL | ) |
class CLASSNAME : public wxEnumProperty \ { \ WX_PG_DECLARE_PROPERTY_CLASS(CLASSNAME) \ public: \ CLASSNAME( const wxString& label = wxPG_LABEL, const wxString& name = wxPG_LABEL, int value = -1 ); \ virtual ~CLASSNAME(); \ };
#define WX_PG_DECLARE_CUSTOM_FLAGS_PROPERTY | ( | CLASSNAME | ) | WX_PG_DECLARE_CUSTOM_FLAGS_PROPERTY_WITH_DECL(CLASSNAME, class) |
#define WX_PG_DECLARE_CUSTOM_FLAGS_PROPERTY_WITH_DECL | ( | CLASSNAME, | |||
DECL | ) |
DECL CLASSNAME : public wxFlagsProperty \ { \ WX_PG_DECLARE_PROPERTY_CLASS(CLASSNAME) \ public: \ CLASSNAME( const wxString& label = wxPG_LABEL, const wxString& name = wxPG_LABEL, long value = -1 ); \ virtual ~CLASSNAME(); \ };
#define WX_PG_DECLARE_CUSTOM_PAINT_METHODS | ( | ) |
virtual wxSize OnMeasureImage( int item ) const; \ virtual void OnCustomPaint( wxDC& dc, const wxRect& rect, wxPGPaintData& paintdata );
#define WX_PG_DECLARE_DERIVED_PROPERTY_CLASS | ( | CLASSNAME | ) | DECLARE_DYNAMIC_CLASS(CLASSNAME) |
#define WX_PG_DECLARE_EVENT_METHODS | ( | ) | virtual bool OnEvent( wxPropertyGrid* propgrid, wxWindow* primary, wxEvent& event ); |
#define WX_PG_DECLARE_PARENTAL_METHODS | ( | ) |
#define WX_PG_DECLARE_STRING_PROPERTY | ( | NAME | ) | WX_PG_DECLARE_STRING_PROPERTY_WITH_DECL(NAME, class) \ |
#define WX_PG_DECLARE_STRING_PROPERTY_WITH_DECL | ( | NAME, | |||
DECL | ) |
DECL NAME : public wxLongStringProperty \ { \ WX_PG_DECLARE_DERIVED_PROPERTY_CLASS(NAME) \ public: \ NAME( const wxString& name = wxPG_LABEL, const wxString& label = wxPG_LABEL, const wxString& value = wxEmptyString); \ virtual ~NAME(); \ virtual bool OnButtonClick( wxPropertyGrid* propgrid, wxString& value ); \ WX_PG_DECLARE_VALIDATOR_METHODS() \ };
#define WX_PG_DECLARE_VALIDATOR_METHODS | ( | ) | virtual wxValidator* DoGetValidator() const; |
#define WX_PG_DOGETVALIDATOR_ENTRY | ( | ) |
#define WX_PG_DOGETVALIDATOR_EXIT | ( | VALIDATOR | ) |
s_ptr = VALIDATOR; \ wxPGGlobalVars->m_arrValidators.Add( (void*) VALIDATOR ); \ return VALIDATOR;
#define WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY | ( | PROPNAME, | |||
DELIMCHAR, | |||||
CUSTBUTTXT | ) |
WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAME,DELIMCHAR,CUSTBUTTXT) \ wxValidator* wxPG_PROPCLASS(PROPNAME)::DoGetValidator () const \ { return (wxValidator*) NULL; }
#define WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY_WITH_VALIDATOR | ( | PROPNAME, | |||
DELIMCHAR, | |||||
CUSTBUTTXT | ) |
#define WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY | ( | CLASSNAME, | |||
LABELS, | |||||
VALUES, | |||||
COLOURS | ) |
static wxPGChoices gs_##CLASSNAME##_choicesCache; \ WX_PG_IMPLEMENT_DERIVED_PROPERTY_CLASS(CLASSNAME,wxSystemColourProperty,const wxColourPropertyValue&) \ CLASSNAME::CLASSNAME( const wxString& label, const wxString& name, \ const wxColourPropertyValue& value ) \ : wxPG_PROPCLASS(wxSystemColourProperty)(label,name,LABELS,VALUES,&gs_##CLASSNAME##_choicesCache,value ) \ { \ m_flags |= wxPG_PROP_TRANSLATE_CUSTOM; \ } \ CLASSNAME::~CLASSNAME () { } \ wxColour CLASSNAME::GetColour ( int index ) const \ { \ return COLOURS[m_choices.GetValue(index)]; \ }
#define WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR | ( | CLASSNAME, | |||
LABELS, | |||||
VALUES, | |||||
COLOURS | ) | WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR2(CLASSNAME,LABELS,VALUES,COLOURS,Choice) |
#define WX_PG_IMPLEMENT_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR2 | ( | CLASSNAME, | |||
LABELS, | |||||
VALUES, | |||||
COLOURS, | |||||
EDITOR | ) |
#define WX_PG_IMPLEMENT_CUSTOM_ENUM_PROPERTY | ( | CLASSNAME, | |||
LABELS, | |||||
VALUES, | |||||
DEFVAL | ) |
WX_PG_IMPLEMENT_PROPERTY_CLASS(CLASSNAME,wxEnumProperty,long_##CLASSNAME,int,Choice) \ CLASSNAME::CLASSNAME( const wxString& label, const wxString& name, int value ) \ : wxEnumProperty(label,name,LABELS,VALUES,value!=-1?value:DEFVAL) \ { \ m_flags |= wxPG_PROP_STATIC_CHOICES; \ } \ CLASSNAME::~CLASSNAME() { }
#define WX_PG_IMPLEMENT_CUSTOM_FLAGS_PROPERTY | ( | CLASSNAME, | |||
LABELS, | |||||
VALUES, | |||||
DEFVAL | ) |
WX_PG_IMPLEMENT_PROPERTY_CLASS(CLASSNAME,wxFlagsProperty,long_##CLASSNAME,long,TextCtrl) \ CLASSNAME::CLASSNAME( const wxString& label, const wxString& name, long value ) \ : wxFlagsProperty(label,name,LABELS,VALUES,value!=-1?value:DEFVAL) \ { \ m_flags |= wxPG_PROP_STATIC_CHOICES; \ } \ CLASSNAME::~CLASSNAME() { }
#define WX_PG_IMPLEMENT_DERIVED_PROPERTY_CLASS | ( | NAME, | |||
UPNAME, | |||||
T_AS_ARG | ) | IMPLEMENT_DYNAMIC_CLASS(NAME, UPNAME) |
#define WX_PG_IMPLEMENT_PROPERTY_CLASS | ( | NAME, | |||
UPNAME, | |||||
T, | |||||
T_AS_ARG, | |||||
EDITOR | ) | WX_PG_IMPLEMENT_PROPERTY_CLASS2(NAME,wxPG_PROPCLASS(NAME),wxPG_PROPCLASS(UPNAME),T,T_AS_ARG,EDITOR) |
#define WX_PG_IMPLEMENT_PROPERTY_CLASS2 | ( | NAME, | |||
CLASSNAME, | |||||
UPCLASS, | |||||
T, | |||||
T_AS_ARG, | |||||
EDITOR | ) |
IMPLEMENT_DYNAMIC_CLASS(NAME, UPCLASS) \ WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN(NAME,T,EDITOR)
#define WX_PG_IMPLEMENT_STRING_PROPERTY | ( | NAME, | |||
FLAGS | ) |
WX_PG_IMPLEMENT_STRING_PROPERTY_WITH_VALIDATOR(NAME,FLAGS) \ wxValidator* wxPG_PROPCLASS(NAME)::DoGetValidator () const \ { return (wxValidator*) NULL; }
#define WX_PG_IMPLEMENT_STRING_PROPERTY_WITH_VALIDATOR | ( | NAME, | |||
FLAGS | ) |
WX_PG_IMPLEMENT_DERIVED_PROPERTY_CLASS(NAME,wxLongStringProperty,const wxString&) \ NAME::NAME( const wxString& name, const wxString& label, const wxString& value ) \ : wxLongStringProperty(name,label,value) \ { \ m_flags |= FLAGS; \ } \ NAME::~NAME() { }
#define wxAEDIALOG_STYLE (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE) |
#define wxPG_PROP_SHOW_FULL_FILENAME wxPG_PROP_CLASS_SPECIFIC_1 |
anonymous enum |
WXDLLIMPEXP_PG bool wxPGStringToLongLong | ( | const wxString | s, | |
wxLongLong_t * | val, | |||
int | base | |||
) |
WXDLLIMPEXP_PG bool wxPGStringToULongLong | ( | const wxString | s, | |
wxULongLong_t * | val, | |||
int | base | |||
) |
class WXDLLIMPEXP_PG wxArrayEditorDialog |