implement file browser dialog
This commit is contained in:
@@ -258,14 +258,41 @@
|
||||
</border>
|
||||
</layout>
|
||||
|
||||
<!-- Browse Dialog Popup -->
|
||||
|
||||
<layout id="dialog-browse-item">
|
||||
<border dir="col" color=".4 .4 .4 .8" pad="4" height="120" width="100" margin="1 1 1 1" grow="1" align="center">
|
||||
<image-texture id="thumb-tex" width="100%" grow="1" height="1" aspect-ratio="1"/>
|
||||
<text id="title" text="File Name" margin="5 0 0 0" font-face="arial" font-size="11"/>
|
||||
</border>
|
||||
</layout>
|
||||
<layout id="dialog-browse">
|
||||
<border id="background" positioning="absolute" position="0 0" color=".4 .4 .4 .8" width="100%" height="100%" align="center" justify="center">
|
||||
<border id="form" thickness="1" border-color=".2" pad="3" width="90%" height="90%" dir="col">
|
||||
<border id="title-bar" width="100%" height="30" color=".2 .2 .2 .9" dir="row" align="center" justify="center">
|
||||
<text text="Browse PanoPainter Projects" font-face="arial" font-size="11"></text>
|
||||
</border>
|
||||
<border width="100%" height="100" color="0 0 0 .9" pad="10" dir="row" grow="1">
|
||||
<scroll id="files-list" dir="row" wrap="1" flood-events="1" grow="1" height="100%" margin="0 0 0 0" pad="0 20 0 0" color=".2 .2 .2 1">
|
||||
</scroll>
|
||||
</border>
|
||||
<node id="footer" height="40" dir="row" align="flex-end" justify="flex-end" pad="10">
|
||||
<node grow="1"><button id="btn-delete" text="Delete Project" width="100" height="30" margin="0 10 0 0" color="1 0 0 1"/></node>
|
||||
<button id="btn-ok" text="Open Project" width="100" height="30" margin="0 10 0 0"/>
|
||||
<button id="btn-cancel" text="Cancel" width="60" height="30" pad="10"/>
|
||||
</node>
|
||||
</border>
|
||||
</border>
|
||||
</layout>
|
||||
|
||||
<!-- Open Dialog Popup -->
|
||||
|
||||
<layout id="dialog-open-item">
|
||||
<border dir="row" color=".4 .4 .4 .8" pad="4" height="30" margin="1 0 1 0" align="center">
|
||||
<!--<image-texture id="thumb-tex" width="64" height="64"/>-->
|
||||
<text id="title" text="Title" font-face="arial" font-size="11"/>
|
||||
</border>
|
||||
</layout>
|
||||
|
||||
<!-- Open Dialog Popup -->
|
||||
<layout id="dialog-open">
|
||||
<border positioning="absolute" position="0 0" color=".4 .4 .4 .8" width="100%" height="100%" align="center" justify="center">
|
||||
<border thickness="1" border-color=".2" pad="3">
|
||||
@@ -425,6 +452,10 @@
|
||||
<icon icon="page_add" width="20"/>
|
||||
<text text="Open" margin="0 0 0 5" font-face="arial" font-size="11"/>
|
||||
</button-custom>
|
||||
<button-custom id="file-browse" text="Menu" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
|
||||
<icon icon="page_add" width="20"/>
|
||||
<text text="Browse" margin="0 0 0 5" font-face="arial" font-size="11"/>
|
||||
</button-custom>
|
||||
<button-custom id="file-save" text="Menu" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
|
||||
<icon icon="disk" width="20"/>
|
||||
<text text="Save" margin="0 0 0 5" font-face="arial" font-size="11"/>
|
||||
@@ -605,7 +636,6 @@
|
||||
<text text="#opengl #fromscratch #c++" font-face="arial" font-size="11" margin="0 0 0 10" color=".2 .5 1 1"/>
|
||||
</border>-->
|
||||
</node>
|
||||
<!--<ref id="settings"/>-->
|
||||
<!--<ref id="popup-menu"/>-->
|
||||
<!--<ref id="popup-dialog-open"/>-->
|
||||
</layout>
|
||||
|
||||
Reference in New Issue
Block a user