#include <wx/propgrid/propgrid.h>
Allows populating wxPropertyGrid from arbitrary text source.
◆ wxPropertyGridPopulator()
wxPropertyGridPopulator::wxPropertyGridPopulator |
( |
| ) |
|
◆ ~wxPropertyGridPopulator()
virtual wxPropertyGridPopulator::~wxPropertyGridPopulator |
( |
| ) |
|
|
virtual |
◆ Add()
Appends a new property under bottommost parent.
- Parameters
-
propClass | Property class as string. |
propLabel | Property label. |
propName | Property name. |
propValue | Property value. |
pChoices | Set of choices for the property (optional). |
◆ AddAttribute()
Adds attribute to the bottommost property.
- Parameters
-
name | Attribute name. |
type | Allowed values: "string" , (same as string), "int" , "bool" . Empty string means autodetect. |
value | Attribute value. |
◆ AddChildren()
void wxPropertyGridPopulator::AddChildren |
( |
wxPGProperty * |
property | ) |
|
Pushes property to the back of parent array (ie it becomes bottommost parent), and starts scanning/adding children for it.
When finished, parent array is returned to the original state.
◆ DoScanForChildren()
virtual void wxPropertyGridPopulator::DoScanForChildren |
( |
| ) |
|
|
pure virtual |
Called once in AddChildren.
◆ GetCurParent()
wxPGProperty* wxPropertyGridPopulator::GetCurParent |
( |
| ) |
const |
Returns id of parent property for which children can currently be added.
◆ GetState() [1/2]
◆ GetState() [2/2]
◆ ParseChoices()
Parses strings of format "choice1"[=value1] ...
"choiceN"[=valueN] into wxPGChoices. Registers parsed result using idString (if not empty). Also, if choices with given id already registered, then don't parse but return those choices instead.
◆ ProcessError()
virtual void wxPropertyGridPopulator::ProcessError |
( |
const wxString & |
msg | ) |
|
|
virtual |
Implement in derived class to do custom process when an error occurs.
Default implementation uses wxLogError.
◆ SetGrid()
◆ SetState()
◆ ToLongPCT()
static bool wxPropertyGridPopulator::ToLongPCT |
( |
const wxString & |
s, |
|
|
long * |
pval, |
|
|
long |
max |
|
) |
| |
|
static |