... | ... | @@ -68,10 +68,29 @@ Below is an example of a complete View description in SMTK V2: |
|
|
</View>
|
|
|
</Views>
|
|
|
```
|
|
|
As you can see the Att Elements do not have any formatting/layout information, nor do they have any layout info.
|
|
|
As you can see the Att Elements nor the View Elements do not have any formatting/layout information, nor do they have any layout info.
|
|
|
|
|
|
# Adding Formatting Information into View Specification
|
|
|
|
|
|
The main use case I'm focussing on is one that lets the designer specify the layout of an attribute's items within a single widget and not the more general case of being able to generally mix the items of one attribute those of another - this would primarily be used in an Instanced View.
|
|
|
|
|
|
##Adding Widget Elements |
|
|
\ No newline at end of file |
|
|
##Adding Widget Elements
|
|
|
These Elements would represent a GUI tree of widgets which could then be referenced by attributes and item elements. Here is what one could look like:
|
|
|
|
|
|
```xml
|
|
|
<View Type="Instanced">
|
|
|
<GUI>
|
|
|
<Widget Name="widget1" Type="Frame" Layout="VBox">
|
|
|
<Widget Name="widget2" Type="Frame" Layout="HBox"/>
|
|
|
<Widget Name="widget3" Type="Frame" Layout="HBox"/>
|
|
|
</Widget>
|
|
|
</GUI>
|
|
|
<InstancedAttributes>
|
|
|
<Att Name="Time" Type="Time">
|
|
|
<Item Name="StartTime" NoLables="true" Widget="widget2"/>
|
|
|
<Item Name="EndTime" NoLables="true" Widget="widget3"/>
|
|
|
<Item Name="*" Widget="widget1"/>
|
|
|
</Att>
|
|
|
</InstancedAttributes>
|
|
|
</View>
|
|
|
``` |
|
|
\ No newline at end of file |