|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
2 |
<!-- jEdit settings: :tabSize=4:indentSize=4:noTabs=false:folding=explicit:collapseFolds=1: -->
|
|
3 |
|
|
4 |
<panel columns="1" gap="4">
|
|
5 |
|
|
6 |
<menubar weightx="1">
|
|
7 |
<menu text="File" mnemonic="0">
|
|
8 |
<menuitem text="New" mnemonic="0" icon="icons/empty_menu.gif" accelerator="ctrl N" action="menu_file_new()"/>
|
|
9 |
<menuitem text="Open..." mnemonic="0" icon="icons/empty_menu.gif" accelerator="ctrl O" action="menu_file_open()"/>
|
|
10 |
<separator/>
|
|
11 |
<menuitem text="Reload" mnemonic="0" icon="icons/empty_menu.gif" accelerator="ctrl R" action="menu_file_reload()"/>
|
|
12 |
<separator/>
|
|
13 |
<menuitem text="Save" mnemonic="0" icon="icons/empty_menu.gif" accelerator="ctrl S" action="menu_file_save()"/>
|
|
14 |
<menuitem text="Save As..." mnemonic="5" icon="icons/empty_menu.gif" action="menu_file_save_as()"/>
|
|
15 |
<separator/>
|
|
16 |
<menuitem text="Exit" mnemonic="0" icon="icons/empty_menu.gif" accelerator="alt F4" action="menu_file_exit()"/>
|
|
17 |
</menu>
|
|
18 |
<menu text="Edit" mnemonic="0">
|
|
19 |
<menuitem text="Cut" name="menu_edit_cut" mnemonic="0" accelerator="ctrl X" icon="icons/edit_cut.gif" action="menu_edit_cut()"/>
|
|
20 |
<menuitem text="Copy" name="menu_edit_copy" mnemonic="1" accelerator="ctrl C" icon="icons/edit_copy.gif" action="menu_edit_copy()"/>
|
|
21 |
<menuitem text="Paste" name="menu_edit_paste" mnemonic="0" accelerator="ctrl V" icon="icons/edit_paste.gif" action="menu_edit_paste()"/>
|
|
22 |
<menuitem text="Paste from system clipboard" name="menu_edit_paste_systemcb" mnemonic="1" accelerator="ctrl shift V" icon="icons/empty_menu.gif" action="menu_edit_paste_systemcb()"/>
|
|
23 |
<menuitem text="Delete" name="menu_edit_delete" mnemonic="0" icon="icons/edit_delete.gif" action="menu_edit_delete()"/>
|
|
24 |
<separator/>
|
|
25 |
<menuitem text="Settings..." mnemonic="0" icon="icons/empty_menu.gif" action="menu_edit_settings()"/>
|
|
26 |
</menu>
|
|
27 |
<menu text="Tools" mnemonic="0">
|
|
28 |
<menuitem text="Generate Handler Stub Source..." name="menu_tools_generate" mnemonic="0" accelerator="ctrl G" icon="icons/empty_menu.gif" action="menu_tools_generate()"/>
|
|
29 |
</menu>
|
|
30 |
<menu text="Help" mnemonic="0">
|
|
31 |
<menuitem text="About Thing..." mnemonic="0" icon="icons/thing_small.gif" action="menu_help_about()"/>
|
|
32 |
</menu>
|
|
33 |
</menubar>
|
|
34 |
|
|
35 |
<panel name="toolbar" weightx="1" gap="-1">
|
|
36 |
|
|
37 |
<!-- top level components -->
|
|
38 |
<button name="tb_add_panel" property="classname=panel" icon="icons/panel.gif" tooltip="Create new panel" action="addComponent(this)"/>
|
|
39 |
<button name="tb_add_dialog" property="classname=dialog" icon="icons/dialog.gif" tooltip="Create new dialog" action="addComponent(this)"/>
|
|
40 |
<button name="tb_add_desktop" property="classname=desktop" icon="icons/desktop.gif" tooltip="Create new desktop" action="addComponent(this)"/>
|
|
41 |
<button name="tb_add_splitpane" property="classname=splitpane" icon="icons/splitpane.gif" tooltip="Create new splitpane" action="addComponent(this)"/>
|
|
42 |
<button name="tb_add_tabbedpane" property="classname=tabbedpane" icon="icons/tabbedpane.gif" tooltip="Create new tabbedpane" action="addComponent(this)"/>
|
|
43 |
|
|
44 |
<!-- menu components -->
|
|
45 |
<button name="tb_add_menubar" property="classname=menubar" icon="icons/menubar.gif" tooltip="Create new menubar" action="addComponent(this)"/>
|
|
46 |
<button name="tb_add_menu" property="classname=menu" icon="icons/menu.gif" tooltip="Create new menu" action="addComponent(this)"/>
|
|
47 |
<button name="tb_add_menuitem" property="classname=menuitem" icon="icons/menuitem.gif" tooltip="Create new menuitem" action="addComponent(this)"/>
|
|
48 |
<button name="tb_add_checkboxmenuitem" property="classname=checkboxmenuitem" icon="icons/checkboxmenuitem.gif" tooltip="Create new checkboxmenuitem" action="addComponent(this)"/>
|
|
49 |
|
|
50 |
<!-- components -->
|
|
51 |
<button name="tb_add_label" property="classname=label" icon="icons/label.gif" tooltip="Create new label" action="addComponent(this)"/>
|
|
52 |
<button name="tb_add_button" property="classname=button" icon="icons/button.gif" tooltip="Create new button" action="addComponent(this)"/>
|
|
53 |
<button name="tb_add_togglebutton" property="classname=togglebutton" icon="icons/togglebutton.gif" tooltip="Create new togglebutton" action="addComponent(this)"/>
|
|
54 |
<button name="tb_add_checkbox" property="classname=checkbox" icon="icons/checkbox.gif" tooltip="Create new checkbox" action="addComponent(this)"/>
|
|
55 |
<button name="tb_add_textfield" property="classname=textfield" icon="icons/textfield.gif" tooltip="Create new textfield" action="addComponent(this)"/>
|
|
56 |
<button name="tb_add_combobox" property="classname=combobox" icon="icons/combobox.gif" tooltip="Create new combobox" action="addComponent(this)"/>
|
|
57 |
<button name="tb_add_passwordfield" property="classname=passwordfield" icon="icons/passwordfield.gif" tooltip="Create new passwordfield" action="addComponent(this)"/>
|
|
58 |
<button name="tb_add_spinbox" property="classname=spinbox" icon="icons/spinbox.gif" tooltip="Create new spinbox" action="addComponent(this)"/>
|
|
59 |
<button name="tb_add_progressbar" property="classname=progressbar" icon="icons/progressbar.gif" tooltip="Create new progressbar" action="addComponent(this)"/>
|
|
60 |
<button name="tb_add_slider" property="classname=slider" icon="icons/slider.gif" tooltip="Create new slider" action="addComponent(this)"/>
|
|
61 |
<button name="tb_add_separator" property="classname=separator" icon="icons/separator.gif" tooltip="Create new separator" action="addComponent(this)"/>
|
|
62 |
<button name="tb_add_list" property="classname=list" icon="icons/list.gif" tooltip="Create new list" action="addComponent(this)"/>
|
|
63 |
<button name="tb_add_table" property="classname=table" icon="icons/table.gif" tooltip="Create new table" action="addComponent(this)"/>
|
|
64 |
<button name="tb_add_textarea" property="classname=textarea" icon="icons/textarea.gif" tooltip="Create new textarea" action="addComponent(this)"/>
|
|
65 |
<button name="tb_add_tree" property="classname=tree" icon="icons/tree.gif" tooltip="Create new tree" action="addComponent(this)"/>
|
|
66 |
|
|
67 |
<!-- list items -->
|
|
68 |
<button name="tb_add_choice" property="classname=choice" icon="icons/choice.gif" tooltip="Create new choice" action="addComponent(this)"/>
|
|
69 |
<button name="tb_add_item" property="classname=item" icon="icons/item.gif" tooltip="Create new item" action="addComponent(this)"/>
|
|
70 |
<button name="tb_add_node" property="classname=node" icon="icons/node.gif" tooltip="Create new node" action="addComponent(this)"/>
|
|
71 |
<button name="tb_add_tab" property="classname=tab" icon="icons/tab.gif" tooltip="Create new tab" action="addComponent(this)"/>
|
|
72 |
|
|
73 |
<!-- table components -->
|
|
74 |
<button name="tb_add_row" property="classname=row" icon="icons/row.gif" tooltip="Create new row" action="addComponent(this)"/>
|
|
75 |
<button name="tb_add_cell" property="classname=cell" icon="icons/cell.gif" tooltip="Create new cell" action="addComponent(this)"/>
|
|
76 |
<button name="tb_add_header" property="classname=header" icon="icons/header.gif" tooltip="Create new header" action="addComponent(this)"/>
|
|
77 |
<button name="tb_add_column" property="classname=column" icon="icons/column.gif" tooltip="Create new column" action="addComponent(this)"/>
|
|
78 |
|
|
79 |
<!-- other -->
|
|
80 |
<button name="tb_add_popupmenu" property="classname=popupmenu" icon="icons/popupmenu.gif" tooltip="Create new popupmenu" action="addComponent(this)"/>
|
|
81 |
|
|
82 |
<!-- later -->
|
|
83 |
<!--
|
|
84 |
<button name="tb_add_bean" property="classname=bean" icon="icons/bean.gif" tooltip="Create new bean" action="addComponent(this)" enabled="false"/>
|
|
85 |
-->
|
|
86 |
|
|
87 |
<!-- placeholder in case there are no buttons add all -->
|
|
88 |
<separator height="30" width="1"/>
|
|
89 |
</panel>
|
|
90 |
|
|
91 |
<!-- main workarea -->
|
|
92 |
<panel left="4" right="4" weightx="1" weighty="1">
|
|
93 |
<splitpane orientation="horizontal" divider="200" weightx="1" weighty="1">
|
|
94 |
|
|
95 |
<!-- left splitpane: component tree and properties table -->
|
|
96 |
<splitpane orientation="vertical">
|
|
97 |
<panel columns="1" weightx="1" weighty="1">
|
|
98 |
<tree name="tree" angle="true" line="false" selection="single" weightx="1" weighty="1" action="treeSelectionChanged()"/>
|
|
99 |
<panel top="3" bottom="3" gap="2" scrollable="true">
|
|
100 |
<button name="tb_edit_copy" icon="icons/edit_copy.gif" tooltip="Copy selected component to internal ThinG clipboard and system clipboard" action="menu_edit_copy()"/>
|
|
101 |
<button name="tb_edit_cut" icon="icons/edit_cut.gif" tooltip="Cut selected component to internal ThinG clipboard and system clipboard" action="menu_edit_cut()"/>
|
|
102 |
<button name="tb_edit_paste" icon="icons/edit_paste.gif" tooltip="Paste component from internal ThinG clipboard below selected component" action="menu_edit_paste()"/>
|
|
103 |
<button name="tb_edit_delete" icon="icons/edit_delete.gif" tooltip="Remove selected component" action="menu_edit_delete()"/>
|
|
104 |
<separator/>
|
|
105 |
<button name="tb_edit_moveup" icon="icons/edit_moveup.gif" tooltip="Move selected component up" action="moveComponentUp()"/>
|
|
106 |
<button name="tb_edit_movedown" icon="icons/edit_movedown.gif" tooltip="Move selected component down" action="moveComponentDown()"/>
|
|
107 |
</panel>
|
|
108 |
</panel>
|
|
109 |
<panel columns="1" gap="5">
|
|
110 |
<table name="props" selection="single" weightx="1" weighty="1" action="tableSelectionChanged()">
|
|
111 |
<header>
|
|
112 |
<column name="props_key" text="Property" width="80" sort="ascent"/>
|
|
113 |
<column name="props_value" text="Value"/>
|
|
114 |
</header>
|
|
115 |
</table>
|
|
116 |
<panel name="propedit" columns="3" gap="5" weightx="1" border="true" top="5" left="5" bottom="5" right="5">
|
|
117 |
<label name="propedit_name" text=""/>
|
|
118 |
<panel name="propedit_panel" gap="5" weightx="1"/>
|
|
119 |
<button name="propedit_reset" text="Reset" tooltip="Reset to default value" font="10" valign="center" enabled="false" action="propEditReset()"/>
|
|
120 |
</panel>
|
|
121 |
</panel>
|
|
122 |
</splitpane>
|
|
123 |
|
|
124 |
<!-- right splitpane: preview panel -->
|
|
125 |
<tabbedpane name="tabs" placement="top" selected="1" action="tabSelected(this.selected)">
|
|
126 |
<!-- Attention: because of an obscure bug in Thinlet.getNextFocusable(), -->
|
|
127 |
<!-- the tab "XML" must be the first one! If it is not the first panel, Thinlet -->
|
|
128 |
<!-- runs into an endless loop when the user navigates from the "Preview" tab -->
|
|
129 |
<!-- to the "XML" tab, trying to set the next focusable component. -->
|
|
130 |
<tab text="XML" mnemonic="0">
|
|
131 |
<panel weightx="1" weighty="1">
|
|
132 |
<textarea name="serialize" editable="false" weightx="1" weighty="1"/>
|
|
133 |
</panel>
|
|
134 |
</tab>
|
|
135 |
<tab text="Preview" mnemonic="0">
|
|
136 |
<panel name="preview" border="true" scrollable="true" weightx="1" weighty="1"/>
|
|
137 |
</tab>
|
|
138 |
</tabbedpane>
|
|
139 |
|
|
140 |
</splitpane>
|
|
141 |
</panel>
|
|
142 |
|
|
143 |
<!-- status bar at bottom -->
|
|
144 |
<textfield name="statusbar" editable="false" text="ThinG" weightx="1"/>
|
|
145 |
|
|
146 |
</panel>
|