Proof-of-concept GUI schema, with makefile entry to run it in data/tools
This commit is contained in:
parent
48fa373c76
commit
292dcd7bf6
2 changed files with 58 additions and 0 deletions
54
data/schema-gui.cfg
Normal file
54
data/schema-gui.cfg
Normal file
|
@ -0,0 +1,54 @@
|
|||
[schema]
|
||||
identifier="re ^[a-z_]+$"
|
||||
# slash-separated filenames
|
||||
path="re ^([a-z0-9\-.+]+/)*[a-z0-9\-.+]+$"
|
||||
|
||||
[root]
|
||||
_gui="required gui" # or repeated? maybe we need a new 'at least one' type
|
||||
[/root]
|
||||
|
||||
[gui]
|
||||
_settings="required settings"
|
||||
|
||||
#TODO: make sure all the below are actually optional
|
||||
_button_definition="repeated button_definition"
|
||||
_horizontal_listbox_definition="repeated horizontal_listbox_definition"
|
||||
_horizontal_scrollbar_definition="repeated horizontal_scrollbar_definition"
|
||||
_image_definition="repeated image_definition"
|
||||
_label_definition="repeated label_definition"
|
||||
_listbox_definition="repeated listbox_definition"
|
||||
_menubar_definition="repeated menubar_definition"
|
||||
_minimap_definition="repeated minimap_definition"
|
||||
_multi_page_definition="repeated multi_page_definition"
|
||||
_panel_definition="repeated panel_definition"
|
||||
_repeating_button_definition="repeated repeating_button_definition"
|
||||
_scrollbar_panel_definition="repeated scrollbar_panel_definition"
|
||||
_scroll_label_definition="repeated scroll_label_definition"
|
||||
_slider_definition="repeated slider_definition"
|
||||
_spacer_definition="repeated spacer_definition"
|
||||
_stacked_widget_definition="repeated stacked_widget_definition"
|
||||
_text_box_definition="repeated text_box_definition"
|
||||
_toggle_button_definition="repeated toggle_button_definition"
|
||||
_toggle_panel_definition="repeated toggle_panel_definition"
|
||||
_tooltip_definition="repeated tooltip_definition"
|
||||
_tree_view_definition="repeated tree_view_definition"
|
||||
_vertical_scrollbar_definition="repeated vertical_scrollbar_definition"
|
||||
_window_definition="repeated window_definition"
|
||||
_window="repeated window"
|
||||
|
||||
id="required identifier"
|
||||
description="required string"
|
||||
[/gui]
|
||||
|
||||
[settings]
|
||||
double_click_time="required integer"
|
||||
help_show_time="optional integer"
|
||||
popup_show_delay="optional integer"
|
||||
popup_show_time="optional integer"
|
||||
repeat_button_repeat_time="optional integer"
|
||||
sound_button_click="optional path"
|
||||
sound_toggle_button_click="optional path"
|
||||
sound_toggle_panel_click="optional path"
|
||||
sound_slider_adjust="optional path"
|
||||
[/settings]
|
||||
[/schema]
|
|
@ -36,6 +36,10 @@ validate:
|
|||
# No UMC testing until $$(UMC) is fixed
|
||||
./wmlvalidator -p $(DATA) #-u $(UMC)
|
||||
|
||||
validate-gui:
|
||||
# Check GUI WML for meaning and references.
|
||||
./wmlvalidator -p $(DATA) -s $(DATA)/schema-gui.cfg $(DATA)/gui/default.cfg
|
||||
|
||||
# Beware of removing images listed in this report unless you know
|
||||
# UMC is not relying on them!
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue