Imprudence:XML skin formats

XML skin floater format
Windows and dialogs in the viewer are implemented as LLFloater objects. The class hierarchy of some LLFloaterFoo object is:

LLView - Base class, container for UI widget children. LLUICtrl - Any widget that can take keyboard focus. LLPanel - Rectangular area with dark background, has functions like childSetText, childGetValue. LLFloater - Generic window or dialog with close box, minimize box, etc. LLFloaterFoo - A "Foo" dialog.

The XML files describing these floaters reside in. The format of all files is:





Where  are defined in  :

rect_control="FloaterFooRect" -  is a   Setting defined in   and sets the values (x, y, w, h). If rect_control is omitted or when w is 0, then the default width is such that the right side is FLOATER_H_MARGIN from the right side of the containing parent view. If h is 0 it is set to the required height (passed to ) but never less than MIN_WIDGET_HEIGHT. left= - A   value that overrides the x value of rect_control. A negative value means that left is specified in pixels from the right side of the parent view (even after resizing the parent view). bottom= - A   value that overrides the y value of rect_control. A negative value means that bottom is specified in pixels below the top of the parent view (even after resizing the parent view). width= - A   value that overrides the w value set above. height= - A   value that overrides the h value set above. left_delta= - A   value that causes a subsequent floater to be opened this number of pixels more to the right then the previous floater. right= - A   value to define the distance between the right-side of the floater and the parent view. If left and right are both specified, they are used to determine the width (ignoring 'width' above), otherwise if left is not specified, x is set to right - width. A negative value means that right is specified as the number pixels left of the right side of the parent view. bottom_delta= - A   value that causes a subsequent floater to be opened this number of pixels lower then the previous floater. top= - A   value that overrides h above by setting it to top - y. A negative value means that the top is specified in pixels below the top of the parent view.