WML(5) File Formats Manual WML(5) (NAME) WML - - (widget meta-language) uil (DESCRIPTION) - (WML) (UIL) . WML UIL Motif . (File) WML ASCII . tools/wml WML . WML .wml . Motif motif.wml . WML WML . motif.wml . UIL . motif.wml WML WML . WML UIL . : o (Comments) o (Data Type Definitions) o (Character Set Definitions) o (Enumeration Set Definitions) o (Control List Definitions) o (Class Definitions) o (Child Definitions) o (Resource Definitions) . . - : [ ] . ... . | . (Comments) WML . : [any.element]!any.comment . . . : !This is a comment ! that spans two lines. DataType !This is a comment following code. (Data Type Definitions) . WML . : DataType any.datatype [{ InternalLiteral = internal.name | DocName = "string"; [...]}]; [...] DataType . DataType : InternalLiteral . UIL (hard-coded) . . DocName . . : DataType OddNumber {DocName="OddNumber";}; NewString; (Character Set Definitions) Motif UIL . : CharacterSet any.character.set { [ FontListElementTag | XmStringCharsetName ] = "string"; [ Alias = "string" ...; | Direction = [ LeftToRight | RightToLeft ]; | ParseDirection = [ LeftToRight | RightToLeft ]; | CharacterSize = [ OneByte | TwoByte ]; ] [ ... ] }; [ ... ] CharacterSet . CharacterSet : FontListElementTag | XmStringCharsetName (compound string segment) . . Alias . UIL . Direction . LeftToRight . ParseDirection . Direction . CharacterSize . OneByte . : CharacterSet iso_latin1 { XmStringCharsetName = "ISO8859-1"; Alias = "ISOLatin1"; }; iso_hebrew_lr { XmStringCharsetName = "ISO8859-8"; Alias = "iso_latin8_lr"; Direction = RightToLeft; ParseDirection = LeftToRight; }; ksc_korean { XmStringCharsetName = "KSC5601.1987-0"; CharacterSize = TwoByte; }; (Enumeration Set Definitions) Motif . : EnumerationSet resource.name: resource.type { enum.value.name; [ ... ] }; EnumerationSet . . Motif XmN . Motif XmNrowColumnType RowColumnType . integer . . Motif . : EnumerationSet RowColumnType: integer { XmWORK_AREA; XmMENU_BAR; XmMENU_POPUP; XmMENU_PULLDOWN; XmMENU_OPTION; }; (Boolean) . (Control List Definitions) . WML . : ControlList any.control.list [{ any.control; [...]}]; ControlList . ControlList . . : ControlList Buttons {PushButton; RadioButton; CascadeButton; NewCascadebutton;}; . (Class Definitions) (convenience function) . UIL . : Class class.name: MetaClass | Widget | Gadget [{[ SuperClass = class.name; | ParentClass = parent.class.name; | InternalLiteral = internal.name; | Alias = alias; | ConvenienceFunction = convenience.function; | WidgetClass = widget.class; | DocName = "string"; | DialogClass = True | False; | Resources { any.resource.name [{ Default = new.default.value; | Exclude = True | False; [...]} ]; [...]}; | Controls { any.control.name; [...]}; Children { any.child.name; [...] }; [...] ]}]; Class . (metaclass) (widget) (gadget) . . SuperClass () . SuperClass . ParentClass . . XmBulletinBoardDialog XmBulletinBoard XmDialogShell . XmDialogShell . InternalLiteral . UIL . . Alias UIL . ConvenienceFunction (creation convenience function) . ConvenienceFunction . WidgetClass . . DocName . . DialogClass . . Resources . : Default . . . Exclude . Exclude False . Children UIL . Controls . . . Class TopLevelWidget: MetaClass { Resources { XtbNfirstResource; XtbNsecondResource; }; }; NewWidget: Widget { SuperClass = TopLevelWidget; ConvenienceFunction = XtbCreateNewWidget; Resources { XtbNnewResource; XtbNfirstResource {Default="XtbNEW_VALUE";}; XtbNsecondResource {Exclude=True;}; }; Controls { NewWidget; Buttons; }; }; (Child Definitions) . uil Children . : Child child.name : class.name; [...] child.name class.name . (Resource Definitions) . . : Resource resource.name: Argument | Reason | Constraint | SubResource [{[ Type = type; [ResourceLiteral = resource.literal; ] [InternalLiteral = internal.name; ] [Alias = alias; ] [Related = related; ] [Default = default; ] [DocName = doc.name; ] [...]}] [...] Resource . (Argument) / (Reason) (Constraint) (SubResource) . Argument . Reason (callback) . Constraint (constraint) . SubResource . : Type . . ResourceLiteral UIL . Motif ResourceLiteral . InternalLiteral . UIL . . Alias UIL . Related . UIL resource.name . Default . DocName . . . Resource XtbNfirstResource: Argument { Type = OddNumber; Default = "XtbOLD_VALUE";}; XtbNsecondResource: Argument { Type = NewString; Default = "XtbNEW_STRING"; }; XtbNnewResource: Argument { Type = OddNumber; Default = "XtbODD_NUMBER"; }; OpenMotif WML(5)