mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 03:38:21 +01:00
Update Showcase
This commit is contained in:
parent
2c436533f7
commit
695044704b
@ -1,12 +1,11 @@
|
|||||||
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
|
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
|
||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-menu data-height="30" data-id="menu" ></afx-menu>
|
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "100" tabbarheight = "40">
|
||||||
<afx-tab-container data-id="tabctn" dir = "column" tabbarheight= "30">
|
|
||||||
|
|
||||||
<afx-hbox tabname="Widgets">
|
<afx-hbox tabname="Widgets">
|
||||||
<afx-vbox data-width="150">
|
<afx-vbox data-width="150">
|
||||||
<afx-tree-view data-id="tree" dragndrop="true" ></afx-tree-view>
|
<afx-tree-view data-id="tree" dragndrop="true" ></afx-tree-view>
|
||||||
<afx-slider data-id="slider" data-height="30" value="50"></afx-slider>
|
<afx-slider data-id="slider" data-height="30" value="50" precision="true"></afx-slider>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<afx-resizer data-width="5" ></afx-resizer>
|
<afx-resizer data-width="5" ></afx-resizer>
|
||||||
<afx-vbox data-width="grow">
|
<afx-vbox data-width="grow">
|
||||||
@ -20,7 +19,7 @@
|
|||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
<afx-resizer data-height="5" ></afx-resizer>
|
<afx-resizer data-height="5" ></afx-resizer>
|
||||||
<afx-hbox>
|
<afx-hbox>
|
||||||
<afx-list-view data-id="list" dropdown="false" multiselect="true" ></afx-list-view>
|
<afx-list-view data-id="list" dropdown="false" multiselect="true" dir="horizontal" ></afx-list-view>
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
<afx-hbox data-height="150">
|
<afx-hbox data-height="150">
|
||||||
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>
|
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>
|
||||||
@ -44,7 +43,10 @@
|
|||||||
<afx-button data-id = "btrundia" text="Run dialog" data-height="30"></afx-button>
|
<afx-button data-id = "btrundia" text="Run dialog" data-height="30"></afx-button>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
|
<afx-hbox tabname="Stackmenues">
|
||||||
|
<afx-stack-menu data-id="menu" ></afx-stack-menu>
|
||||||
|
</afx-hbox>
|
||||||
|
|
||||||
</afx-tab-container>
|
</afx-tab-container>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
</afx-app-window>
|
</afx-app-window>
|
File diff suppressed because one or more lines are too long
@ -1,12 +1,11 @@
|
|||||||
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
|
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
|
||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-menu data-height="30" data-id="menu" ></afx-menu>
|
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "100" tabbarheight = "40">
|
||||||
<afx-tab-container data-id="tabctn" dir = "column" tabbarheight= "30">
|
|
||||||
|
|
||||||
<afx-hbox tabname="Widgets">
|
<afx-hbox tabname="Widgets">
|
||||||
<afx-vbox data-width="150">
|
<afx-vbox data-width="150">
|
||||||
<afx-tree-view data-id="tree" dragndrop="true" ></afx-tree-view>
|
<afx-tree-view data-id="tree" dragndrop="true" ></afx-tree-view>
|
||||||
<afx-slider data-id="slider" data-height="30" value="50"></afx-slider>
|
<afx-slider data-id="slider" data-height="30" value="50" precision="true"></afx-slider>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<afx-resizer data-width="5" ></afx-resizer>
|
<afx-resizer data-width="5" ></afx-resizer>
|
||||||
<afx-vbox data-width="grow">
|
<afx-vbox data-width="grow">
|
||||||
@ -20,7 +19,7 @@
|
|||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
<afx-resizer data-height="5" ></afx-resizer>
|
<afx-resizer data-height="5" ></afx-resizer>
|
||||||
<afx-hbox>
|
<afx-hbox>
|
||||||
<afx-list-view data-id="list" dropdown="false" multiselect="true" ></afx-list-view>
|
<afx-list-view data-id="list" dropdown="false" multiselect="true" dir="horizontal" ></afx-list-view>
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
<afx-hbox data-height="150">
|
<afx-hbox data-height="150">
|
||||||
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>
|
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>
|
||||||
@ -44,7 +43,10 @@
|
|||||||
<afx-button data-id = "btrundia" text="Run dialog" data-height="30"></afx-button>
|
<afx-button data-id = "btrundia" text="Run dialog" data-height="30"></afx-button>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
|
<afx-hbox tabname="Stackmenues">
|
||||||
|
<afx-stack-menu data-id="menu" ></afx-stack-menu>
|
||||||
|
</afx-hbox>
|
||||||
|
|
||||||
</afx-tab-container>
|
</afx-tab-container>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
</afx-app-window>
|
</afx-app-window>
|
Binary file not shown.
@ -34,7 +34,7 @@ class ShowCase extends this.OS.application.BaseApplication
|
|||||||
@notify e.data
|
@notify e.data
|
||||||
|
|
||||||
menu = @find 'menu'
|
menu = @find 'menu'
|
||||||
menu.items = @menu()
|
menu.nodes = @menu()
|
||||||
|
|
||||||
list.contextmenuHandle = (e, m) =>
|
list.contextmenuHandle = (e, m) =>
|
||||||
m.items = @menu()
|
m.items = @menu()
|
||||||
@ -208,7 +208,8 @@ class ShowCase extends this.OS.application.BaseApplication
|
|||||||
when "text"
|
when "text"
|
||||||
@openDialog("TextDialog", {
|
@openDialog("TextDialog", {
|
||||||
title: "Text dialog review",
|
title: "Text dialog review",
|
||||||
value: "txt data"
|
value: "txt data",
|
||||||
|
label: "this is the label"
|
||||||
})
|
})
|
||||||
.then (d) =>
|
.then (d) =>
|
||||||
@notify d
|
@notify d
|
||||||
@ -284,11 +285,11 @@ class ShowCase extends this.OS.application.BaseApplication
|
|||||||
{ text: "__(Sidebar)", switch: true, checked: true },
|
{ text: "__(Sidebar)", switch: true, checked: true },
|
||||||
{ text: "__(Navigation bar)", switch: true, checked: false },
|
{ text: "__(Navigation bar)", switch: true, checked: false },
|
||||||
{ text: "__(Hidden files)", switch: true, checked: true, dataid: "#{@name}-hidden" },
|
{ text: "__(Hidden files)", switch: true, checked: true, dataid: "#{@name}-hidden" },
|
||||||
{ text: "__(Type)", child: [
|
{ text: "__(Type)", nodes: [
|
||||||
{ text: "__(Icon view)", radio: true, checked: true, dataid: "#{@name}-icon", type: 'icon' },
|
{ text: "__(Icon view)", radio: true, checked: true, dataid: "#{@name}-icon", type: 'icon' },
|
||||||
{ text: "__(List view)", radio:true, checked: false, dataid: "#{@name}-list", type: 'list' },
|
{ text: "__(List view)", radio:true, checked: false, dataid: "#{@name}-list", type: 'list' },
|
||||||
{ text: "__(Tree view)", radio:true, checked: false, dataid: "#{@name}-tree", type: 'tree' }
|
{ text: "__(Tree view)", radio:true, checked: false, dataid: "#{@name}-tree", type: 'tree' }
|
||||||
], onchildselect: (e) -> @notify e.data.item.data.text
|
], onchildselect: (e) => @notify e.data.item.data.text
|
||||||
},
|
},
|
||||||
], onchildselect: (e) => @notify e.data.item.data.text
|
], onchildselect: (e) => @notify e.data.item.data.text
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user