Support proportions for wxFlexGridSizer growables in XRC schema
The value of "growablerows" and "growablecols" elements is not just a
list of numbers, but a list of numbers with optional weights, specified
after a colon.
Update the XRC schema to account for the weights too.
See #17802.
(cherry picked from commit 0d73253111
)
This commit is contained in:
@@ -461,6 +461,8 @@ t_imagelist = (
|
||||
|
||||
t_list_of_numbers = xsd:string { pattern = "\d+(,\d+)*" }
|
||||
|
||||
t_list_of_numbers_with_weights = xsd:string { pattern = "\d+(:\d+)?(,\d+(:\d+)?)*" }
|
||||
|
||||
|
||||
#
|
||||
# Handlers for non-<object> content:
|
||||
@@ -1589,8 +1591,8 @@ wxFlexGridSizer =
|
||||
[xrc:p="o"] element nonflexiblegrowmode {_, ("wxFLEX_GROWMODE_NONE" |
|
||||
"wxFLEX_GROWMODE_SPECIFIED" |
|
||||
"wxFLEX_GROWMODE_ALL") }* &
|
||||
[xrc:p="o"] element growablerows {_, t_list_of_numbers }* &
|
||||
[xrc:p="o"] element growablecols {_, t_list_of_numbers }* &
|
||||
[xrc:p="o"] element growablerows {_, t_list_of_numbers_with_weights }* &
|
||||
[xrc:p="o"] element growablecols {_, t_list_of_numbers_with_weights }* &
|
||||
(wxSizer_item | objectRef)*
|
||||
}
|
||||
|
||||
@@ -1605,8 +1607,8 @@ wxGridBagSizer =
|
||||
[xrc:p="o"] element nonflexiblegrowmode {_, ("wxFLEX_GROWMODE_NONE" |
|
||||
"wxFLEX_GROWMODE_SPECIFIED" |
|
||||
"wxFLEX_GROWMODE_ALL") }* &
|
||||
[xrc:p="o"] element growablerows {_, t_list_of_numbers }* &
|
||||
[xrc:p="o"] element growablecols {_, t_list_of_numbers }* &
|
||||
[xrc:p="o"] element growablerows {_, t_list_of_numbers_with_weights }* &
|
||||
[xrc:p="o"] element growablecols {_, t_list_of_numbers_with_weights }* &
|
||||
(wxSizer_item | objectRef)*
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user