]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/propliva.tex
Added '\' before all '_' chars that were not inside VERBATIM blocks
[wxWidgets.git] / docs / latex / wx / propliva.tex
CommitLineData
200fed6c
VS
1\section{\class{wxPropertyListValidator}}\label{wxpropertylistvalidator}
2
200fed6c
VS
3The {\bf wxPropertyListValidator} abstract class is the base class for
4deriving validators for property lists.
5
fa482912
JS
6\wxheading{See also}
7
8\helpref{wxPropertyListValidator overview}{wxpropertylistvalidatoroverview}
9
10\latexignore{\rtfignore{\wxheading{Members}}}
11
200fed6c
VS
12\membersection{wxPropertyListValidator::wxPropertyListValidator}
13
14\func{void}{wxPropertyListValidator}{\param{long}{ flags = wxPROP\_ALLOW\_TEXT\_EDITING}}
15
16Constructor.
17
18\membersection{wxPropertyListValidator::\destruct{wxPropertyListValidator}}
19
20\func{void}{\destruct{wxPropertyListValidator}}{\void}
21
22Destructor.
23
24\membersection{wxPropertyListValidator::OnCheckValue}
25
fa482912 26\func{bool}{OnCheckValue}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
27 \param{wxWindow *}{parentWindow}}
28
29Called when the Tick (Confirm) button is pressed or focus is list. Return FALSE if the value
30was invalid, which is a signal restores the old value. Return TRUE if the value was valid.
31
32\membersection{wxPropertyListValidator::OnClearControls}
33
fa482912 34\func{bool}{OnClearControls}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
35 \param{wxWindow *}{parentWindow}}
36
37Allows the clearing (enabling, disabling) of property list controls, when the focus leaves the current property.
38
39\membersection{wxPropertyListValidator::OnClearDetailControls}
40
fa482912 41\func{bool}{OnClearDetailControls}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
42 \param{wxWindow *}{parentWindow}}
43
44Called when the focus is lost, if the validator is in detailed editing mode.
45
46\membersection{wxPropertyListValidator::OnDisplayValue}
47
fa482912 48\func{bool}{OnDisplayValue}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
49 \param{wxWindow *}{parentWindow}}
50
51Should display the value in the appropriate controls. The default implementation gets the
52textual value from the property and inserts it into the text edit control.
53
54\membersection{wxPropertyListValidator::OnDoubleClick}
55
fa482912 56\func{bool}{OnDoubleClick}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
57 \param{wxWindow *}{parentWindow}}
58
59Called when the property is double clicked. Extra functionality can be provided,
60such as cycling through possible values.
61
62\membersection{wxPropertyListValidator::OnEdit}
63
fa482912 64\func{bool}{OnEdit}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
65 \param{wxWindow *}{parentWindow}}
66
67Called when the Edit (detailed editing) button is pressed. The default implementation
68calls wxPropertyListView::BeginDetailedEditing; a filename validator (for example) overrides
69this function to show the file selector.
70
71\membersection{wxPropertyListValidator::OnPrepareControls}
72
fa482912 73\func{bool}{OnPrepareControls}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
74 \param{wxWindow *}{parentWindow}}
75
76Called to allow the validator to setup the display, such enabling or disabling buttons, and
77setting the values and selection in the standard listbox control (the one optionally used for displaying
78value options).
79
80\membersection{wxPropertyListValidator::OnPrepareDetailControls}
81
fa482912 82\func{bool}{OnPrepareDetailControls}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
83 \param{wxWindow *}{parentWindow}}
84
85Called when the property is edited `in detail', i.e. when the Edit button is pressed.
86
87\membersection{wxPropertyListValidator::OnRetrieveValue}
88
fa482912 89\func{bool}{OnRetrieveValue}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
90 \param{wxWindow *}{parentWindow}}
91
92Called when Tick (Confirm) is pressed or focus is lost or view wants to update
93the property list. Should do the transfer from the property editing area to the property itself
94
95\membersection{wxPropertyListValidator::OnSelect}
96
fa482912 97\func{bool}{OnSelect}{\param{bool}{ select}, \param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
98 \param{wxWindow *}{parentWindow}}
99
100Called when the property is selected or deselected: typically displays the value
101in the edit control (having chosen a suitable control to display: (non)editable text or listbox).
102
103\membersection{wxPropertyListValidator::OnValueListSelect}
104
fa482912 105\func{bool}{OnValueListSelect}{\param{wxProperty *}{property}, \param{wxPropertyListView *}{view},
200fed6c
VS
106 \param{wxWindow *}{parentWindow}}
107
108Called when the value listbox is selected. The default behaviour is to copy
109string to text control, and retrieve the value into the property.
110