Allow to add extra accelerators to wxMenuItem
These accelerators are not shown in wxMenuItem label, but still will work. Implement support for them in all major ports and XRC. Co-Authored-By: Vadim Zeitlin <vadim@wxwidgets.org>
This commit is contained in:
parent
e729791222
commit
0cd898975c
18 changed files with 375 additions and 33 deletions
|
|
@ -501,6 +501,10 @@ t_list_of_numbers = xsd:string { pattern = "\d+(,\d+)*" }
|
|||
|
||||
t_list_of_numbers_with_weights = xsd:string { pattern = "\d+(:\d+)?(,\d+(:\d+)?)*" }
|
||||
|
||||
t_extra_accels = (
|
||||
[xrc:p="o"] element accel {_, t_text }+
|
||||
)
|
||||
|
||||
|
||||
#
|
||||
# Handlers for non-<object> content:
|
||||
|
|
@ -1193,15 +1197,16 @@ wxMenuItem =
|
|||
element object {
|
||||
attribute class { "wxMenuItem" } &
|
||||
stdObjectNodeAttributes &
|
||||
[xrc:p="o"] element label {_, t_text }* &
|
||||
[xrc:p="o"] element accel {_, t_text }* &
|
||||
[xrc:p="o"] element radio {_, t_bool }* &
|
||||
[xrc:p="o"] element checkable {_, t_bool }* &
|
||||
[xrc:p="o"] element bitmap {_, t_bitmap }* &
|
||||
[xrc:p="o"] element bitmap2 {_, t_bitmap }* &
|
||||
[xrc:p="o"] element help {_, t_text }* &
|
||||
[xrc:p="o"] element enabled {_, t_bool }* &
|
||||
[xrc:p="o"] element checked {_, t_bool }*
|
||||
[xrc:p="o"] element label {_, t_text }* &
|
||||
[xrc:p="o"] element accel {_, t_text }* &
|
||||
[xrc:p="o"] element extra-accels {_, t_extra_accels }* &
|
||||
[xrc:p="o"] element radio {_, t_bool }* &
|
||||
[xrc:p="o"] element checkable {_, t_bool }* &
|
||||
[xrc:p="o"] element bitmap {_, t_bitmap }* &
|
||||
[xrc:p="o"] element bitmap2 {_, t_bitmap }* &
|
||||
[xrc:p="o"] element help {_, t_text }* &
|
||||
[xrc:p="o"] element enabled {_, t_bool }* &
|
||||
[xrc:p="o"] element checked {_, t_bool }*
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue