From 5d8375007754101ff2889d0e79486c8f9b7cf5ab Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 3 Sep 2017 11:22:38 -0700 Subject: Initial commit --- src/dutil/xsd/thmutil.xsd | 1188 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1188 insertions(+) create mode 100644 src/dutil/xsd/thmutil.xsd (limited to 'src/dutil/xsd') diff --git a/src/dutil/xsd/thmutil.xsd b/src/dutil/xsd/thmutil.xsd new file mode 100644 index 00000000..ccf951c0 --- /dev/null +++ b/src/dutil/xsd/thmutil.xsd @@ -0,0 +1,1188 @@ + + + + + + + + Schema for describing Theme files processed by thmutil. + + + + + + + + + This is the top-level container element for every thmutil Theme file. + + + + + + + + + + + Relative path to an image file that can serve as a single source for images in the rest of the theme. + This image is referenced by controls using the SourceX and SourceY attributes. + Mutually exclusive with the ImageResource attribute. + + + + + + + Identifier that references an image resource in the module for the window. + Mutually exclusive with the ImageFile attribute. + + + + + + + + + Defines a font including the size and color. + + + + + + Name of the font face (required). + + + + Numeric identifier for the font. Due to limitations in thmutil the first Font must start with "0" and each subsequent Font must increment the Id by 1. Failure to ensure the Font identifiers follow this strict ordering will create unexpected behavior or crashes. + + + + + Font size. Use negative numbers to specify the font in pixels. + + + + + Font weight. + + + + + + A system color id or a hexadecimal value representing BGR foreground color of the font. + "ffffff" is white, "ff0000" is pure blue, "00ff00" is pure green, "0000ff" is pure red, and "000000" is black. + If this attribute is absent the foreground will be transparent. + Supported system color ids are: btnface, btntext, graytext, highlight, highlighttext, hotlight, window, and windowtext. + + + + + + + A system color id or a hexadecimal value representing BGR background color of the font. + "ffffff" is white, "ff0000" is pure blue, "00ff00" is pure green, "0000ff" is pure red, and "000000" is black. + If this attribute is absent the background will be transparent. + Supported system color ids are: btnface, btntext, graytext, highlight, highlighttext, hotlight, window, and windowtext. + + + + + + Specifies whether the font is underlined. + + + + + + + + + + List of images which can be shared between multiple controls. + + + + + + + + + Name of the ImageList, to be referenced by other controls. + + + + + + + + + Named set of controls that can be shown and hidden collectively. + + + + + + + Optional name for the page. + + + + + + + + + Defines the overall look of the main window. + + + + + + + + + + Specifies whether the ThmUtil default window proc should process WM_SIZE and WM_SIZING events. + + + + + + Caption for the window. + This is required if not using the StringId attribute. + + + + + + Numeric identifier to the Font element that serves as the default font for the window. + + + + + Height of the window. + + + + + + Hexadecimal window style. If this is not specified the default value is: WS_OVERLAPPED | WS_VISIBLE | WS_MINIMIZEBOX | WS_SYSMENU. + If SourceX and SourceY are specified, then WS_OVERLAPPED is replaced with WS_POPUP. + + + + + + Relative path to an icon file for the window. Mutually exclusive with IconResource and SourceX and SourceY attributes. + + + + + + Identifier that references an icon resource in the module for the icon for the window. + Mutually exclusive with IconFile and SourceX and SourceY attributes. + + + + + + Minimum height of the window. Only functions if AutoResize is enabled. + + + + + Minimum width of the window. Only functions if AutoResize is enabled. + + + + + X offset of the window background in the Theme/@ImageFile. Mutually exclusive with IconFile and IconResource. + + + + + Y offset of the window background in the Theme/@ImageFile. Mutually exclusive with IconFile and IconResource. + + + + + + Identifier that references a string resource in the module to define the window caption. + Mutually exclusive with the Caption attribute. + + + + + + Width of the window. + + + + + + + + Defines a control that rotates through a set of images on a specified interval. + + + + + + + + + + Specifies the time to wait before showing the next image, in milliseconds. + + + + + + Specifies whether the billboard should loop through the images infinitely. + + + + + + + + Defines a button. + + + + + Text to display in the button. + Mutually exclusive with the StringId attribute and child Text elements. + + + + + + If multiple Action elements are given, the conditions should be mutually exclusive (when multiple conditions are true, the behavior is undefined and could be changed at any time). + If none of the conditions of the Action elements are true, then it uses the Action element without the Condition attribute. + + + + + + + + + + + + Numeric identifier to the Font element that serves as the font for the control. Only valid when using graphic buttons. + + + + + Numeric identifier to the Font element that serves as the font when the control is hovered over. Only valid when using graphic buttons. + + + + + + Relative path to an image file to define a graphic button. + The image must be 4x the height to represent the button in 4 states: unselected, hover, selected, focused. + Mutually exclusive with ImageResource and SourceX and SourceY attributes. + + + + + + + Identifier that references an image resource in the module to define a graphic button. + The image must be 4x the height to represent the button in 4 states: unselected, hover, selected, focused. + Mutually exclusive with ImageFile and SourceX and SourceY attributes. + + + + + + Numeric identifier to the Font element that serves as the font when the control is selected. Only valid when using graphic buttons. + + + + + + Identifier that references a string resource in the module to define the text for the control. + + + + + + + + + + When the button is pressed, a directory browser dialog is shown. + + + + + + + The condition that determines if the parent control will execute this action. + + + + + + + The name of the variable to update when the user selects a directory from the dialog. + + + + + + + + + + When the button is pressed, the specified page is shown. + + + + + + + When set to 'yes', none of the variable changes made on the current page are saved. + + + + + + + The condition that determines if the parent control will execute this action. + + + + + + + The Name of the Page to show. + + + + + + + + + + When the button is pressed, the WM_CLOSE message is sent to the window. + + + + + + + The condition that determines if the parent control will execute this action. + + + + + + + + + Defines a checkbox. + + + + + Text to display beside the checkbox. + Mutually exclusive with the StringId attribute and child Text elements. + + + + + + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + Identifier that references a string resource in the module to define the text for the control. + + + + + + + + + Defines a combobox. + + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + + + Defines a button. + + + + + Text to display in the button. + Mutually exclusive with the StringId attribute and child Text elements. + + + + + + If multiple Action elements are given, the conditions should be mutually exclusive (when multiple conditions are true, the behavior is undefined and could be changed at any time). + If none of the conditions of the Action elements are true, then it uses the Action element without the Condition attribute. + + + + + + + + + + + + Numeric identifier to the Font element that serves as the font for the control. Only valid when using graphic buttons. + + + + + + Relative path to an icon file to define a command link glyph. + Mutually exclusive with ImageResource and SourceX and SourceY attributes. + + + + + + + Identifier that references an icon resource in the module to define a command link glyph. + Mutually exclusive with ImageFile and SourceX and SourceY attributes. + + + + + + + Relative path to an image file to define a command link glyph. + Mutually exclusive with ImageResource and SourceX and SourceY attributes. + + + + + + + Identifier that references an image resource in the module to define a command link glyph. + Mutually exclusive with ImageFile and SourceX and SourceY attributes. + + + + + + + Identifier that references a string resource in the module to define the text for the control. + + + + + + + + + Defines an edit box. + + + + + + + Initial text for the control. + Mutually exclusive with the StringId attribute. + + + + + + Specifies whether the edit box should auto-complete with file system paths. + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + Identifier that references a string resource in the module to define the initial text for the control. + + + + + + + + + + + Defines a hyperlink. + + + + + Text to display as the link. + Mutually exclusive with the StringId attribute and child Text elements. + + + + + + + + + + Numeric identifier to the Font element that serves as the unselected font. + + + + + Numeric identifier to the Font element that serves as the font when the control is hovered over. + + + + + Numeric identifier to the Font element that serves as the font when the control is selected. + + + + + + Identifier that references a string resource in the module to define the text for the control. + + + + + + + + + Defines a text block with support for HTML <a> tags. + + + + + Text to display as the link. + Use HTML <a href="URL"> to create a link. + Mutually exclusive with the StringId attribute and child Text elements. + + + + + + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + Identifier that references a string resource in the module to define the text for the control. + + + + + + + + + Defines an image for an ImageList or Billboard. + + + + + Relative path to an image file. Mutually exclusive with ImageResource. + + + + + Identifier that references an image resource in the module. Mutually exclusive with ImageFile. + + + + + + + + Defines an image. + + + + + + Relative path to an image file. Mutually exclusive with ImageResource and SourceX and SourceY attributes. + + + + + Identifier that references an image resource in the module. Mutually exclusive with ImageFile and SourceX and SourceY attributes. + + + + + + + + Defines a label. + + + + + Text for the label to display. + Mutually exclusive with the StringId attribute and child Text elements. + + + + + + + + + + Specifies whether the text should be centered horizontally in the width of the control. Default is "no". + + + + + By default ampersands (&) in the text will underline the next character and treat it as an accelerator key. Set this attribute to "yes" to disable that behavior. Default is "no". + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + Identifier that references a string resource in the module to define the text for the label. + + + + + + + + + Defines a listview. + + + + + + + + + Numeric identifier to the Font element that serves as the default font for the ListView. + + + + + Hexadecimal extended window style. + + + + + + The name of the ImageList to assign to this listview with type LVSIL_NORMAL. + + + + + + + The name of the ImageList to assign to this listview with type LVSIL_SMALL. + + + + + + + The name of the ImageList to assign to this listview with type LVSIL_STATE. + + + + + + + The name of the ImageList to assign to this listview with type LVSIL_GROUPHEADER. + + + + + + + + + + Defines note text for a command link control based on an optional condition. + If multiple Note elements are given for one control, the conditions should be mutually exclusive (when multiple conditions are true, the behavior is undefined and may be changed at any time). + If none of the conditions of a control's Note elements are true, then it uses the text of the Note element without the Condition attribute. + + + + + + + + Note text for the parent command link control. + + + + + + The condition that determines when the parent control will use this note text. + + + + + + + + + + + Defines a collection of controls. + + + + + + + + + + Defines a progress bar. + + + + + + Relative path to an image file for the control. The image must be 4 pixels wide: left pixel is the left side of progress bar, left middle pixel is progress used, right middle pixel is progress unused, right pixel is right side of progress bar. Mutually exclusive with ImageResource and SourceX and SourceY attributes. + + + + + Identifier that references an image resource in the module for the control. The image must be 4 pixels wide: left pixel is the left side of progress bar, left middle pixel is progress used, right middle pixel is progress unused, right pixel is right side of progress bar. Mutually exclusive with ImageFile and SourceX and SourceY attributes. + + + + + + + + Defines an individual radio button within a set of radio buttons. + + + + + Text to display beside the radio button. + Mutually exclusive with the StringId attribute and child Text elements. + + + + + + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + Identifier that references a string resource in the module to define the text for the control. + + + + + + Optional value used when setting the variable associated with the set of radio buttons. + + + + + + + + Defines a set of radio buttons. + + + + + + + + Optional variable name for the set of radio buttons. + + + + + + + + Defines a rich edit control. + + + + + Initial text for the control. + Mutually exclusive with the StringId attribute. + + + + + + + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + + Identifier that references a string resource in the module to define the initial text for the control. + + + + + + + + + Defines a straight line. + + + + + + + + + Defines an individual tab within a set of tabs. + + + + + + + Caption of the tab. + Mutually exclusive with the StringId attribute. + + + + + + Identifier that references a string resource in the module to define the caption of the tab. + + + + + + + + + + + Defines a set of tabs. + + + + + + + + + Numeric identifier to the Font element that serves as the font for the control. + + + + + + + + + Defines text for the parent control based on an optional condition. + If multiple Text elements are given for one control, the conditions should be mutually exclusive (when multiple conditions are true, the behavior is undefined and may be changed at any time). + If none of the conditions of a control's Text elements are true, then it uses the text of the Text element without the Condition attribute. + + + + + + + + Text for the parent control. + + + + + + The condition that determines when the parent control will use this text. + + + + + + + + + + + + Defines text for the parent control's tooltip. + + + + + + + + Text for the parent control's tooltip. + + + + + + + + + + Defines a treeview. + + + + + + Specifies whether the row always appears selected even when the treeview has lost focus. + + + + + Specifies whether drag and drop is enabled for the treeview. + + + + + Specifies whether an entire row is selected for the treeview. + + + + + Specifies whether the treeview will show buttons. + + + + + Specifies whether lines appear for all treeview items. + + + + + Specifies whether the root nodes have lines beside them. + + + + + + + + A column of a list. + + + + + + + Text for the column header. + Mutually exclusive with the StringId attribute. + + + + + Width of the column. + + + + + + Whether or not this column can grow to fill available width of the listview. + More than one column can be marked with yes - all expandable columns will share available extra space. + This is especially useful if the Window/@AutoResize is yes. + + + + + + + Identifier that references a string resource in the module to define the text for the column header. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Optional name for the control. + + + + + Set to 'yes' to disable automatic variable getting and setting, EnableCondition, VisibleCondition, and conditional Text elements. The default is 'no'. + + + + + A condition that determines if the control is enabled. If this condition is true or omitted, then the control will be enabled. + + + + + Height of the control. Non-positive values extend the control to the bottom of the window minus the value. + + + + + Hexadecimal window style for the control. + + + + + Specifies whether the control should be hidden when disabled. + + + + + Specifies whether the control is part of the tab sequence of controls. + + + + + Specifies whether the control is initially visible. + + + + + + A condition that determines if the control is visible. If this condition is true or omitted, then the control will be visible. + + + + + + Width of the control. Non-positive values extend the control to the right of the window minus the value. + + + + + X coordinate for the control from the left of the window. Negative values are coordinates from the right of the window minus the width of the control. + + + + + Y coordinate for the control from the top of the window. Negative values are coordinates from the bottom of the window minus the height of the control. + + + + + + + Values of this type will either be "yes" or "no". + + + + + + + + + + + Indicates a system color for a font. + + + + + + + + + + + + + + + + + + Indicates the foreground or background color of a font. + + + + + -- cgit v1.2.3-55-g6feb