Update Showcase

This commit is contained in:
DanyLE 2022-12-31 22:45:42 +01:00
parent 2c436533f7
commit 695044704b
5 changed files with 20 additions and 15 deletions

View File

@ -1,12 +1,11 @@
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
<afx-vbox>
<afx-menu data-height="30" data-id="menu" ></afx-menu>
<afx-tab-container data-id="tabctn" dir = "column" tabbarheight= "30">
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "100" tabbarheight = "40">
<afx-hbox tabname="Widgets">
<afx-vbox data-width="150">
<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-resizer data-width="5" ></afx-resizer>
<afx-vbox data-width="grow">
@ -20,7 +19,7 @@
</afx-hbox>
<afx-resizer data-height="5" ></afx-resizer>
<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 data-height="150">
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>
@ -44,6 +43,9 @@
<afx-button data-id = "btrundia" text="Run dialog" data-height="30"></afx-button>
</afx-vbox>
</afx-hbox>
<afx-hbox tabname="Stackmenues">
<afx-stack-menu data-id="menu" ></afx-stack-menu>
</afx-hbox>
</afx-tab-container>
</afx-vbox>

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,11 @@
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
<afx-vbox>
<afx-menu data-height="30" data-id="menu" ></afx-menu>
<afx-tab-container data-id="tabctn" dir = "column" tabbarheight= "30">
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "100" tabbarheight = "40">
<afx-hbox tabname="Widgets">
<afx-vbox data-width="150">
<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-resizer data-width="5" ></afx-resizer>
<afx-vbox data-width="grow">
@ -20,7 +19,7 @@
</afx-hbox>
<afx-resizer data-height="5" ></afx-resizer>
<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 data-height="150">
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>
@ -44,6 +43,9 @@
<afx-button data-id = "btrundia" text="Run dialog" data-height="30"></afx-button>
</afx-vbox>
</afx-hbox>
<afx-hbox tabname="Stackmenues">
<afx-stack-menu data-id="menu" ></afx-stack-menu>
</afx-hbox>
</afx-tab-container>
</afx-vbox>

Binary file not shown.

View File

@ -34,7 +34,7 @@ class ShowCase extends this.OS.application.BaseApplication
@notify e.data
menu = @find 'menu'
menu.items = @menu()
menu.nodes = @menu()
list.contextmenuHandle = (e, m) =>
m.items = @menu()
@ -208,7 +208,8 @@ class ShowCase extends this.OS.application.BaseApplication
when "text"
@openDialog("TextDialog", {
title: "Text dialog review",
value: "txt data"
value: "txt data",
label: "this is the label"
})
.then (d) =>
@notify d
@ -284,11 +285,11 @@ class ShowCase extends this.OS.application.BaseApplication
{ text: "__(Sidebar)", switch: true, checked: true },
{ text: "__(Navigation bar)", switch: true, checked: false },
{ 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: "__(List view)", radio:true, checked: false, dataid: "#{@name}-list", type: 'list' },
{ 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
},