1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPGProperty
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
9 // -----------------------------------------------------------------------
12 @class wxPropertyGridInterface
14 Most of the shared property manipulation interface shared by wxPropertyGrid,
15 wxPropertyGridPage, and wxPropertyGridManager is defined in this class.
18 - In separate wxPropertyGrid component this class was known as
19 wxPropertyContainerMethods.
21 - wxPropertyGridInterface's property operation member functions all accept
22 a special wxPGPropArg id argument, using which you can refer to properties
23 either by their pointer (for performance) or by their name (for conveniency).
28 class WXDLLIMPEXP_PROPGRID wxPropertyGridInterface
33 virtual ~wxPropertyGridInterface() { }
36 Appends property to the list. wxPropertyGrid assumes ownership of the
37 object. Becomes child of most recently added category.
40 - wxPropertyGrid takes the ownership of the property pointer.
41 - If appending a category with name identical to a category already in
42 the wxPropertyGrid, then newly created category is deleted, and most
43 recently added category (under which properties are appended) is set
44 to the one with same name. This allows easier adding of items to same
45 categories in multiple passes.
46 - Does not automatically redraw the control, so you may need to call
47 Refresh() when calling this function after control has been shown for
49 - This functions deselects selected property, if any. Validation
50 failure option wxPG_VFB_STAY_IN_PROPERTY is not respected, ie.
51 selection is cleared even if editor had invalid value.
53 wxPGProperty
* Append( wxPGProperty
* property
);
56 Same as Append(), but appends under given parent property.
59 Name or pointer to parent property.
64 wxPGProperty
* AppendIn( wxPGPropArg id
, wxPGProperty
* newProperty
);
67 In order to add new items into a property with private children (for
68 instance, wxFlagsProperty), you need to call this method.
69 After populating has been finished, you need to call EndAddChildren().
73 void BeginAddChildren( wxPGPropArg id
);
76 Deletes all properties.
78 @remarks This functions deselects selected property, if any. Validation
79 failure option wxPG_VFB_STAY_IN_PROPERTY is not respected, ie.
80 selection is cleared even if editor had invalid value.
82 virtual void Clear() = 0;
85 Clears current selection, if any.
88 If set to @false, deselecting the property will always work,
89 even if its editor had invalid value in it.
91 @return Returns @true if successful or if there was no selection. May
92 fail if validation was enabled and active editor had invalid
95 @remarks In wxPropertyGrid 1.4, this member function used to send
96 wxPG_EVT_SELECTED. In wxWidgets 2.9 and later, it no longer
99 @see wxPropertyGrid::SelectProperty()
101 bool ClearSelection( bool validation
= false);
104 Resets modified status of all properties.
106 void ClearModifiedStatus();
109 Collapses given category or property with children.
111 @return Returns @true if actually collapsed.
113 @remarks This function may deselect selected property, if any. Validation
114 failure option wxPG_VFB_STAY_IN_PROPERTY is not respected, ie.
115 selection is cleared even if editor had invalid value.
117 bool Collapse( wxPGPropArg id
);
120 Collapses all items that can be collapsed.
122 @remarks This functions clears selection. Validation failure option
123 wxPG_VFB_STAY_IN_PROPERTY is not respected, ie. selection
124 is cleared even if editor had invalid value.
129 Changes value of a property, as if by user. Use this instead of
130 SetPropertyValue() if you need the value to run through validation
131 process, and also send the property change event.
133 @return Returns @true if value was successfully changed.
135 bool ChangePropertyValue( wxPGPropArg id
, wxVariant newValue
);
140 @remarks This functions deselects selected property, if any. Validation
141 failure option wxPG_VFB_STAY_IN_PROPERTY is not respected, ie.
142 selection is cleared even if editor had invalid value.
144 void DeleteProperty( wxPGPropArg id
);
149 bool DisableProperty( wxPGPropArg id
);
152 Returns @true if all property grid data changes have been committed. Usually
153 only returns @false if value in active editor has been invalidated by a
156 bool EditorValidate();
159 Enables or disables property.
162 Name or pointer to a property.
164 If @false, property is disabled instead.
166 bool EnableProperty( wxPGPropArg id
, bool enable
= true );
169 Called after population of property with fixed children has finished.
171 @see BeginAddChildren()
173 void EndAddChildren( wxPGPropArg id
);
176 Expands given category or property with children.
178 @return Returns @true if actually expanded.
180 @remarks This function may deselect selected property, if any. Validation
181 failure option wxPG_VFB_STAY_IN_PROPERTY is not respected, ie.
182 selection is cleared even if editor had invalid value.
184 bool Expand( wxPGPropArg id
);
187 Expands all items that can be expanded.
189 @remarks This functions clears selection. Validation failure option
190 wxPG_VFB_STAY_IN_PROPERTY is not respected, ie. selection
191 is cleared even if editor had invalid value.
193 bool ExpandAll( bool expand
= true );
196 Returns id of first child of given property.
198 @remarks Does not return private children!
200 wxPGProperty
* GetFirstChild( wxPGPropArg id
);
204 Returns iterator class instance.
207 See @ref propgrid_iterator_flags. Value wxPG_ITERATE_DEFAULT causes
208 iteration over everything except private child properties.
210 Property to start iteration from. If @NULL, then first child of root
214 <b>wxPython Note:</b> Instead of ++ operator, use Next() method, and
215 instead of * operator, use GetProperty() method.
218 wxPropertyGridIterator
GetIterator( int flags
= wxPG_ITERATE_DEFAULT
,
219 wxPGProperty
* firstProp
= NULL
);
220 wxPropertyGridConstIterator
GetIterator( int flags
= wxPG_ITERATE_DEFAULT
,
221 wxPGProperty
* firstProp
= NULL
) const;
226 Returns iterator class instance.
229 See @ref propgrid_iterator_flags. Value wxPG_ITERATE_DEFAULT causes
230 iteration over everything except private child properties.
232 Either wxTOP or wxBOTTOM. wxTOP will indicate that iterations start
233 from the first property from the top, and wxBOTTOM means that the
234 iteration will instead begin from bottommost valid item.
237 <b>wxPython Note:</b> Instead of ++ operator, use Next() method, and
238 instead of * operator, use GetProperty() method.
241 wxPropertyGridIterator
GetIterator( int flags
, int startPos
);
242 wxPropertyGridConstIterator
GetIterator( int flags
, int startPos
) const;
246 Returns id of first item that matches given criteria.
249 See @ref propgrid_iterator_flags.
251 wxPGProperty
* GetFirst( int flags
= wxPG_ITERATE_ALL
);
254 Returns pointer to a property with given name (case-sensitive).
255 If there is no property with such name, @NULL pointer is returned.
257 @remarks Properties which have non-category, non-root parent
258 can not be accessed globally by their name. Instead, use
259 "<property>.<subproperty>" instead of "<subproperty>".
261 wxPGProperty
* GetProperty( const wxString
& name
) const;
264 Adds to 'targetArr' pointers to properties that have given flags 'flags' set.
265 However, if @a 'inverse' is set to @true, then only properties without
266 given flags are stored.
271 Property flags to use.
275 Iterator flags to use. Default is everything expect private children.
276 See @ref propgrid_iterator_flags.
278 void GetPropertiesWithFlag( wxArrayPGProperty
* targetArr
,
279 wxPGProperty::FlagType flags
,
280 bool inverse
= false,
281 int iterFlags
= (wxPG_ITERATE_PROPERTIES
|wxPG_ITERATE_HIDDEN
|wxPG_ITERATE_CATEGORIES
) ) const;
284 Returns value of given attribute. If none found, returns wxNullVariant.
286 wxVariant
GetPropertyAttribute( wxPGPropArg id
, const wxString
& attrName
) const;
289 Returns background colour of first cell of a property.
291 wxColour
GetPropertyBackgroundColour( wxPGPropArg id
) const;
294 Returns pointer of property's nearest parent category. If no category
295 found, returns @NULL.
297 wxPropertyCategory
* GetPropertyCategory( wxPGPropArg id
) const;
299 /** Returns client data (void*) of a property. */
300 void* GetPropertyClientData( wxPGPropArg id
) const;
303 Returns first property which label matches given string. @NULL if none
304 found. Note that this operation is very slow when compared to
307 wxPGProperty
* GetPropertyByLabel( const wxString
& label
) const;
310 Returns pointer to a property with given name (case-sensitive).
311 If there is no property with such name, @NULL pointer is returned.
313 @remarks Properties which have non-category, non-root parent
314 can not be accessed globally by their name. Instead, use
315 "<property>.<subproperty>" instead of "<subproperty>".
317 wxPGProperty
* GetPropertyByName( const wxString
& name
) const;
320 Returns child property 'subname' of property 'name'. Same as
321 calling GetPropertyByName("name.subname"), albeit slightly faster.
323 wxPGProperty
* GetPropertyByName( const wxString
& name
,
324 const wxString
& subname
) const;
327 Returns property's editor.
329 const wxPGEditor
* GetPropertyEditor( wxPGPropArg id
) const;
332 Returns help string associated with a property.
334 wxString
GetPropertyHelpString( wxPGPropArg id
) const;
337 Returns property's custom value image (@NULL of none).
339 wxBitmap
* GetPropertyImage( wxPGPropArg id
) const;
341 /** Returns label of a property. */
342 const wxString
& GetPropertyLabel( wxPGPropArg id
);
344 /** Returns property's name, by which it is globally accessible. */
345 wxString
GetPropertyName( wxPGProperty
* property
);
348 Returns text colour of first cell of a property.
350 wxColour
GetPropertyTextColour( wxPGPropArg id
) const;
353 Returns validator of a property as a reference, which you
354 can pass to any number of SetPropertyValidator.
356 wxValidator
* GetPropertyValidator( wxPGPropArg id
);
359 Returns property's value as wxVariant.
361 If property value is unspecified, Null variant is returned.
363 wxVariant
GetPropertyValue( wxPGPropArg id
);
365 /** Return's property's value as wxArrayInt. */
366 wxArrayInt
GetPropertyValueAsArrayInt( wxPGPropArg id
) const;
368 /** Returns property's value as wxArrayString. */
369 wxArrayString
GetPropertyValueAsArrayString( wxPGPropArg id
) const;
371 /** Returns property's value as bool */
372 bool GetPropertyValueAsBool( wxPGPropArg id
) const;
374 /** Return's property's value as wxDateTime. */
375 wxDateTime
GetPropertyValueAsDateTime( wxPGPropArg id
) const;
377 /** Returns property's value as double-precision floating point number. */
378 double GetPropertyValueAsDouble( wxPGPropArg id
) const;
380 /** Returns property's value as integer */
381 int GetPropertyValueAsInt( wxPGPropArg id
) const;
383 /** Returns property's value as integer */
384 long GetPropertyValueAsLong( wxPGPropArg id
) const;
386 /** Returns property's value as native signed 64-bit integer. */
387 wxLongLong_t
GetPropertyValueAsLongLong( wxPGPropArg id
) const;
390 Returns property's value as wxString. If property does not
391 use string value type, then its value is converted using
392 wxPGProperty::GetValueAsString().
394 wxString
GetPropertyValueAsString( wxPGPropArg id
) const;
396 /** Returns property's value as unsigned integer */
397 unsigned long GetPropertyValueAsULong( wxPGPropArg id
) const;
399 /** Returns property's value as native unsigned 64-bit integer. */
400 wxULongLong_t
GetPropertyValueAsULongLong( wxPGPropArg id
) const;
403 Returns a wxVariant list containing wxVariant versions of all
404 property values. Order is not guaranteed.
411 Use wxPG_KEEP_STRUCTURE to retain category structure; each sub
412 category will be its own wxVariantList of wxVariant.
414 Use wxPG_INC_ATTRIBUTES to include property attributes as well.
415 Each attribute will be stored as list variant named
416 "@@<propname>@@attr."
418 wxVariant
GetPropertyValues( const wxString
& listname
= wxEmptyString
,
419 wxPGProperty
* baseparent
= NULL
, long flags
= 0 ) const;
422 Returns list of currently selected properties.
424 @remarks wxArrayPGProperty should be compatible with std::vector API.
426 const wxArrayPGProperty
& GetSelectedProperties() const;
429 Returns currently selected property. NULL if none.
431 @remarks When wxPG_EX_MULTIPLE_SELECTION extra style is used, this
432 member function returns the focused property, that is the
433 one which can have active editor.
435 wxPGProperty
* GetSelection() const;
438 Similar to GetIterator(), but instead returns wxPGVIterator instance,
439 which can be useful for forward-iterating through arbitrary property
443 See @ref propgrid_iterator_flags.
445 <b>wxPython Note:</b> Instead of ++ operator, use Next() method, and
446 instead of * operator, use GetProperty() method.
448 virtual wxPGVIterator
GetVIterator( int flags
) const;
451 Hides or reveals a property.
456 If @true, hides property, otherwise reveals it.
458 By default changes are applied recursively. Set this parameter
459 wxPG_DONT_RECURSE to prevent this.
461 bool HideProperty( wxPGPropArg id
, bool hide
= true, int flags
= wxPG_RECURSE
);
464 Initializes *all* property types. Causes references to most object
465 files in the library, so calling this may cause significant increase
466 in executable size when linking with static library.
468 static void InitAllTypeHandlers();
471 Inserts property to the property container.
474 New property is inserted just prior to this. Available only
475 in the first variant. There are two versions of this function
476 to allow this parameter to be either an id or name to
479 Pointer to the inserted property. wxPropertyGrid will take
480 ownership of this object.
482 @return Returns newProperty.
486 - wxPropertyGrid takes the ownership of the property pointer.
488 - While Append may be faster way to add items, make note that when
489 both types of data storage (categoric and
490 non-categoric) are active, Insert becomes even more slow. This is
491 especially true if current mode is non-categoric.
493 - This functions deselects selected property, if any. Validation
494 failure option wxPG_VFB_STAY_IN_PROPERTY is not respected, ie.
495 selection is cleared even if editor had invalid value.
502 wxPGProperty* my_cat_id = propertygrid->Append( new wxPropertyCategory("My Category") );
506 // insert into category - using second variant
507 wxPGProperty* my_item_id_1 = propertygrid->Insert( my_cat_id, 0, new wxStringProperty("My String 1") );
509 // insert before to first item - using first variant
510 wxPGProperty* my_item_id_2 = propertygrid->Insert( my_item_id, new wxStringProperty("My String 2") );
514 wxPGProperty
* Insert( wxPGPropArg priorThis
, wxPGProperty
* newProperty
);
517 Inserts property to the property container.
518 See the other overload for more details.
521 New property is inserted under this category. Available only
522 in the second variant. There are two versions of this function
523 to allow this parameter to be either an id or name to
526 Index under category. Available only in the second variant.
527 If index is < 0, property is appended in category.
529 Pointer to the inserted property. wxPropertyGrid will take
530 ownership of this object.
532 @return Returns newProperty.
534 wxPGProperty
* Insert( wxPGPropArg parent
, int index
, wxPGProperty
* newProperty
);
536 /** Returns @true if property is a category. */
537 bool IsPropertyCategory( wxPGPropArg id
) const;
539 /** Returns @true if property is enabled. */
540 bool IsPropertyEnabled( wxPGPropArg id
) const;
543 Returns @true if given property is expanded. Naturally, always returns
544 @false for properties that cannot be expanded.
546 bool IsPropertyExpanded( wxPGPropArg id
) const;
549 Returns @true if property has been modified after value set or modify
550 flag clear by software.
552 bool IsPropertyModified( wxPGPropArg id
) const;
555 Returns true if property is selected.
557 virtual bool IsPropertySelected( wxPGPropArg id
) const;
560 Returns @true if property is shown (ie. HideProperty() with @true not
563 bool IsPropertyShown( wxPGPropArg id
) const;
566 Returns @true if property value is set to unspecified.
568 bool IsPropertyValueUnspecified( wxPGPropArg id
) const;
571 Disables (limit = @true) or enables (limit = @false) wxTextCtrl editor
572 of a property, if it is not the sole mean to edit the value.
574 void LimitPropertyEditing( wxPGPropArg id
, bool limit
= true );
577 Initializes additional property editors (SpinCtrl etc.). Causes
578 references to most object files in the library, so calling this may
579 cause significant increase in executable size when linking with static
582 static void RegisterAdditionalEditors();
585 Removes and returns a property.
588 Pointer or name of a property.
590 @remarks Removed property cannot have any children.
592 wxPGProperty
* RemoveProperty( wxPGPropArg id
);
595 Replaces property with id with newly created one. For example,
596 this code replaces existing property named "Flags" with one that
597 will have different set of items:
600 pg->ReplaceProperty("Flags",
601 wxFlagsProperty("Flags", wxPG_LABEL, newItems))
606 wxPGProperty
* ReplaceProperty( wxPGPropArg id
, wxPGProperty
* property
);
609 @anchor propgridinterface_editablestate_flags
611 Flags for wxPropertyGridInterface::SaveEditableState() and
612 wxPropertyGridInterface::RestoreEditableState().
614 enum EditableStateFlags
616 /** Include selected property. */
617 SelectionState
= 0x01,
618 /** Include expanded/collapsed property information. */
619 ExpandedState
= 0x02,
620 /** Include scrolled position. */
621 ScrollPosState
= 0x04,
622 /** Include selected page information. Only applies to
623 wxPropertyGridManager. */
625 /** Include splitter position. Stored for each page. */
626 SplitterPosState
= 0x10,
627 /** Include description box size.
628 Only applies to wxPropertyGridManager. */
632 Include all supported user editable state information.
633 This is usually the default value. */
634 AllStates
= SelectionState
|
643 Restores user-editable state. See also wxPropertyGridInterface::SaveEditableState().
646 String generated by SaveEditableState.
649 Which parts to restore from source string. See @ref propgridinterface_editablestate_flags
650 "list of editable state flags".
652 @return Returns @false if there was problem reading the string.
654 @remarks If some parts of state (such as scrolled or splitter position)
655 fail to restore correctly, please make sure that you call this
656 function after wxPropertyGrid size has been set (this may
657 sometimes be tricky when sizers are used).
659 bool RestoreEditableState( const wxString
& src
,
660 int restoreStates
= AllStates
);
663 Used to acquire user-editable state (selected property, expanded
664 properties, scrolled position, splitter positions).
666 @param includedStates
667 Which parts of state to include. See @ref propgridinterface_editablestate_flags
668 "list of editable state flags".
670 wxString
SaveEditableState( int includedStates
= AllStates
) const;
673 Sets strings listed in the choice dropdown of a wxBoolProperty.
675 Defaults are "True" and "False", so changing them to, say, "Yes" and
676 "No" may be useful in some less technical applications.
678 static void SetBoolChoices( const wxString
& trueChoice
,
679 const wxString
& falseChoice
);
682 Sets an attribute for this property.
687 Text identifier of attribute. See @ref propgrid_property_attributes.
692 Use wxPG_RECURSE to set the attribute to child properties recursively.
694 @remarks Setting attribute's value to Null variant will simply remove it
695 from property's set of attributes.
697 void SetPropertyAttribute( wxPGPropArg id
, const wxString
& attrName
,
698 wxVariant value
, long argFlags
= 0 );
701 Sets property attribute for all applicapple properties.
702 Be sure to use this method only after all properties have been
705 void SetPropertyAttributeAll( const wxString
& attrName
, wxVariant value
);
708 Sets background colour of a property.
711 Property name or pointer.
714 New background colour.
717 Default is wxPG_RECURSE which causes colour to be set recursively.
718 Omit this flag to only set colour for the property in question
719 and not any of its children.
721 void SetPropertyBackgroundColour( wxPGPropArg id
,
722 const wxColour
& colour
,
723 int flags
= wxPG_RECURSE
);
726 Sets text, bitmap, and colours for given column's cell.
729 - You can set label cell by using column 0.
730 - You can use wxPG_LABEL as text to use default text for column.
732 void SetPropertyCell( wxPGPropArg id
,
734 const wxString
& text
= wxEmptyString
,
735 const wxBitmap
& bitmap
= wxNullBitmap
,
736 const wxColour
& fgCol
= wxNullColour
,
737 const wxColour
& bgCol
= wxNullColour
);
740 Sets client data (void*) of a property.
743 This untyped client data has to be deleted manually.
745 void SetPropertyClientData( wxPGPropArg id
, void* clientData
);
748 Resets text and background colours of given property.
750 void SetPropertyColoursToDefault( wxPGPropArg id
);
753 Sets editor for a property.
758 For builtin editors, use wxPGEditor_X, where X is builtin editor's
759 name (TextCtrl, Choice, etc. see wxPGEditor documentation for full
762 For custom editors, use pointer you received from wxPropertyGrid::RegisterEditorClass().
764 void SetPropertyEditor( wxPGPropArg id
, const wxPGEditor
* editor
);
767 Sets editor control of a property. As editor argument, use
768 editor name string, such as "TextCtrl" or "Choice".
770 void SetPropertyEditor( wxPGPropArg id
, const wxString
& editorName
);
773 Sets label of a property.
776 - Properties under same parent may have same labels. However,
777 property names must still remain unique.
779 void SetPropertyLabel( wxPGPropArg id
, const wxString
& newproplabel
);
782 Sets name of a property.
785 Name or pointer of property which name to change.
788 New name for property.
790 void SetPropertyName( wxPGPropArg id
, const wxString
& newName
);
793 Sets property (and, recursively, its children) to have read-only value.
794 In other words, user cannot change the value in the editor, but they can
797 @remarks This is mainly for use with textctrl editor. Only some other
798 editors fully support it.
801 Property name or pointer.
804 Use @true to enable read-only, @false to disable it.
807 By default changes are applied recursively. Set this parameter
808 wxPG_DONT_RECURSE to prevent this.
810 void SetPropertyReadOnly( wxPGPropArg id
, bool set
= true,
811 int flags
= wxPG_RECURSE
);
814 Sets property's value to unspecified. If it has children (it may be
815 category), then the same thing is done to them.
817 void SetPropertyValueUnspecified( wxPGPropArg id
);
820 Sets property values from a list of wxVariants.
822 void SetPropertyValues( const wxVariantList
& list
,
823 wxPGPropArg defaultCategory
= wxNullProperty
);
826 Sets property values from a list of wxVariants.
828 void SetPropertyValues( const wxVariant
& list
,
829 wxPGPropArg defaultCategory
= wxNullProperty
);
832 Associates the help string with property.
834 @remarks By default, text is shown either in the manager's "description"
835 text box or in the status bar. If extra window style
836 wxPG_EX_HELP_AS_TOOLTIPS is used, then the text will appear as
839 void SetPropertyHelpString( wxPGPropArg id
, const wxString
& helpString
);
842 Set wxBitmap in front of the value.
844 @remarks Bitmap will be scaled to a size returned by
845 wxPropertyGrid::GetImageSize();
847 void SetPropertyImage( wxPGPropArg id
, wxBitmap
& bmp
);
850 Sets max length of property's text.
852 bool SetPropertyMaxLength( wxPGPropArg id
, int maxLen
);
856 Sets text colour of a property.
859 Property name or pointer.
862 New background colour.
865 Default is wxPG_RECURSE which causes colour to be set recursively.
866 Omit this flag to only set colour for the property in question
867 and not any of its children.
869 void SetPropertyTextColour( wxPGPropArg id
,
870 const wxColour
& colour
,
871 int flags
= wxPG_RECURSE
);
874 Sets validator of a property.
876 void SetPropertyValidator( wxPGPropArg id
, const wxValidator
& validator
);
878 /** Sets value (integer) of a property. */
879 void SetPropertyValue( wxPGPropArg id
, long value
);
881 /** Sets value (integer) of a property. */
882 void SetPropertyValue( wxPGPropArg id
, int value
);
884 /** Sets value (floating point) of a property. */
885 void SetPropertyValue( wxPGPropArg id
, double value
);
887 /** Sets value (bool) of a property. */
888 void SetPropertyValue( wxPGPropArg id
, bool value
);
890 /** Sets value (string) of a property. */
891 void SetPropertyValue( wxPGPropArg id
, const wxString
& value
);
893 /** Sets value (wxArrayString) of a property. */
894 void SetPropertyValue( wxPGPropArg id
, const wxArrayString
& value
);
896 /** Sets value (wxDateTime) of a property. */
897 void SetPropertyValue( wxPGPropArg id
, const wxDateTime
& value
);
899 /** Sets value (wxObject*) of a property. */
900 void SetPropertyValue( wxPGPropArg id
, wxObject
* value
);
902 /** Sets value (wxObject&) of a property. */
903 void SetPropertyValue( wxPGPropArg id
, wxObject
& value
);
905 /** Sets value (native 64-bit int) of a property. */
906 void SetPropertyValue( wxPGPropArg id
, wxLongLong_t value
);
908 /** Sets value (native 64-bit unsigned int) of a property. */
909 void SetPropertyValue( wxPGPropArg id
, wxULongLong_t value
);
911 /** Sets value (wxArrayInt&) of a property. */
912 void SetPropertyValue( wxPGPropArg id
, const wxArrayInt
& value
);
915 Sets value (wxString) of a property.
917 @remarks This method uses wxPGProperty::SetValueFromString(), which all
918 properties should implement. This means that there should not be
919 a type error, and instead the string is converted to property's
922 void SetPropertyValueString( wxPGPropArg id
, const wxString
& value
);
925 Sets value (wxVariant&) of a property.
927 @remarks Use wxPropertyGrid::ChangePropertyValue() instead if you need to
928 run through validation process and send property change event.
930 void SetPropertyValue( wxPGPropArg id
, wxVariant value
);
933 Adjusts how wxPropertyGrid behaves when invalid value is entered
937 See @ref propgrid_vfbflags for possible values.
939 void SetValidationFailureBehavior( int vfbFlags
);
942 Sorts all properties recursively.
945 This can contain any of the following options:
946 wxPG_SORT_TOP_LEVEL_ONLY: Only sort categories and their
947 immediate children. Sorting done by wxPG_AUTO_SORT option
950 @see SortChildren, wxPropertyGrid::SetSortFunction
952 void Sort( int flags
= 0 );
955 Sorts children of a property.
958 Name or pointer to a property.
961 This can contain any of the following options:
962 wxPG_RECURSE: Sorts recursively.
964 @see Sort, wxPropertyGrid::SetSortFunction
966 void SortChildren( wxPGPropArg id
, int flags
= 0 );
969 Returns editor pointer of editor with given name;
971 static wxPGEditor
* GetEditorByName( const wxString
& editorName
);