Add minimal support for wxPropertyGrid to the XRC schema
This is too lax and might also not cover everything but it better than nothing.
This commit is contained in:
parent
8c586b6ff5
commit
65715453e7
1 changed files with 60 additions and 0 deletions
|
|
@ -202,6 +202,8 @@ builtinWindowClasses =
|
||||||
| wxNotebook
|
| wxNotebook
|
||||||
| wxOwnerDrawnComboBox
|
| wxOwnerDrawnComboBox
|
||||||
| wxPanel
|
| wxPanel
|
||||||
|
| wxPropertyGrid
|
||||||
|
| wxPropertyGridManager
|
||||||
| wxPropertySheetDialog
|
| wxPropertySheetDialog
|
||||||
| wxRadioButton
|
| wxRadioButton
|
||||||
| wxRadioBox
|
| wxRadioBox
|
||||||
|
|
@ -305,6 +307,8 @@ builtinClassesNames =
|
||||||
| "wxNotebook"
|
| "wxNotebook"
|
||||||
| "wxOwnerDrawnComboBox"
|
| "wxOwnerDrawnComboBox"
|
||||||
| "wxPanel"
|
| "wxPanel"
|
||||||
|
| "wxPropertyGrid"
|
||||||
|
| "wxPropertyGridManager"
|
||||||
| "wxPropertySheetDialog"
|
| "wxPropertySheetDialog"
|
||||||
| "wxRadioButton"
|
| "wxRadioButton"
|
||||||
| "wxRadioBox"
|
| "wxRadioBox"
|
||||||
|
|
@ -1276,6 +1280,62 @@ wxPanel =
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxPropertyGrid =
|
||||||
|
element object {
|
||||||
|
attribute class { "wxPropertyGrid" } &
|
||||||
|
stdObjectNodeAttributes &
|
||||||
|
stdWindowProperties &
|
||||||
|
[xrc:p="o"] element virtualwidth {_, t_integer }* &
|
||||||
|
(wxPropertyGridProperty | objectRef)*
|
||||||
|
}
|
||||||
|
|
||||||
|
wxPropertyGridManager =
|
||||||
|
element object {
|
||||||
|
attribute class { "wxPropertyGridManager" } &
|
||||||
|
stdObjectNodeAttributes &
|
||||||
|
stdWindowProperties &
|
||||||
|
[xrc:p="o"] element virtualwidth {_, t_integer }* &
|
||||||
|
(wxPropertyGridPage | objectRef)*
|
||||||
|
}
|
||||||
|
|
||||||
|
wxPropertyGridPage =
|
||||||
|
element page {
|
||||||
|
[xrc:p="o"] element label {_, t_text }* &
|
||||||
|
[xrc:p="o"] element columns {_, t_integer}* &
|
||||||
|
[xrc:p="o"] element splitterpos {
|
||||||
|
attribute index { t_integer }* &
|
||||||
|
# Too lax: it should be t_integer with optional "%", not text.
|
||||||
|
t_text
|
||||||
|
}* &
|
||||||
|
[xrc:p="o"] element choices {
|
||||||
|
attribute id { t_identifier } &
|
||||||
|
t_text
|
||||||
|
}* &
|
||||||
|
(wxPropertyGridProperty | objectRef)*
|
||||||
|
}
|
||||||
|
|
||||||
|
wxPropertyGridProperty =
|
||||||
|
element property {
|
||||||
|
attribute class { t_identifier } &
|
||||||
|
[xrc:p="o"] element label {_, t_text }* &
|
||||||
|
[xrc:p="o"] element value {_, t_text }* &
|
||||||
|
[xrc:p="o"] element attribute{
|
||||||
|
attribute name { t_identifier } &
|
||||||
|
t_text
|
||||||
|
}* &
|
||||||
|
# Too lax: choices should either have an id attribute or start with "@"
|
||||||
|
# referencing an ID defined elsewhere.
|
||||||
|
[xrc:p="o"] element choices {
|
||||||
|
attribute id { t_identifier }* &
|
||||||
|
t_text
|
||||||
|
}* &
|
||||||
|
[xrc:p="o"] element tip {_, t_text }* &
|
||||||
|
[xrc:p="o"] element expanded {_, t_bool }* &
|
||||||
|
[xrc:p="o"] element flags {_, t_text }* &
|
||||||
|
(wxPropertyGridProperty | objectRef)*
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
wxPropertySheetDialog =
|
wxPropertySheetDialog =
|
||||||
element object {
|
element object {
|
||||||
attribute class { "wxPropertySheetDialog" } &
|
attribute class { "wxPropertySheetDialog" } &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue