comparison pyink/FSM_window.glade @ 1456:894a4bf35fe6

Start implement FSM editor window
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 16 Apr 2011 19:41:12 +0800
parents
children 416a18409603
comparison
equal deleted inserted replaced
1455:8ea0d32a1864 1456:894a4bf35fe6
1 <?xml version="1.0"?>
2 <interface>
3 <requires lib="gtk+" version="2.16"/>
4 <!-- interface-naming-policy project-wide -->
5 <object class="GtkWindow" id="FSM_main_win">
6 <property name="width_request">500</property>
7 <property name="height_request">400</property>
8 <property name="title" translatable="yes">FSM</property>
9 <property name="modal">True</property>
10 <signal name="destroy_event" handler="on_FSM_main_win_destroy_event"/>
11 <signal name="delete_event" handler="on_FSM_main_win_delete_event"/>
12 <child>
13 <object class="GtkVBox" id="vbox1">
14 <property name="visible">True</property>
15 <property name="orientation">vertical</property>
16 <child>
17 <object class="GtkMenuBar" id="menubar1">
18 <property name="visible">True</property>
19 <child>
20 <object class="GtkMenuItem" id="menuitem1">
21 <property name="visible">True</property>
22 <property name="label" translatable="yes">_File</property>
23 <property name="use_underline">True</property>
24 <child type="submenu">
25 <object class="GtkMenu" id="menu1">
26 <property name="visible">True</property>
27 <child>
28 <object class="GtkImageMenuItem" id="close_window">
29 <property name="label">gtk-close</property>
30 <property name="visible">True</property>
31 <property name="use_underline">True</property>
32 <property name="use_stock">True</property>
33 <signal name="activate" handler="on_close_window_activate"/>
34 </object>
35 </child>
36 </object>
37 </child>
38 </object>
39 </child>
40 <child>
41 <object class="GtkMenuItem" id="menuitem2">
42 <property name="visible">True</property>
43 <property name="label" translatable="yes">_Edit</property>
44 <property name="use_underline">True</property>
45 <child type="submenu">
46 <object class="GtkMenu" id="menu2">
47 <property name="visible">True</property>
48 <child>
49 <object class="GtkImageMenuItem" id="imagemenuitem6">
50 <property name="label">gtk-cut</property>
51 <property name="visible">True</property>
52 <property name="use_underline">True</property>
53 <property name="use_stock">True</property>
54 </object>
55 </child>
56 <child>
57 <object class="GtkImageMenuItem" id="imagemenuitem7">
58 <property name="label">gtk-copy</property>
59 <property name="visible">True</property>
60 <property name="use_underline">True</property>
61 <property name="use_stock">True</property>
62 </object>
63 </child>
64 <child>
65 <object class="GtkImageMenuItem" id="imagemenuitem8">
66 <property name="label">gtk-paste</property>
67 <property name="visible">True</property>
68 <property name="use_underline">True</property>
69 <property name="use_stock">True</property>
70 </object>
71 </child>
72 <child>
73 <object class="GtkImageMenuItem" id="imagemenuitem9">
74 <property name="label">gtk-delete</property>
75 <property name="visible">True</property>
76 <property name="use_underline">True</property>
77 <property name="use_stock">True</property>
78 </object>
79 </child>
80 </object>
81 </child>
82 </object>
83 </child>
84 <child>
85 <object class="GtkMenuItem" id="menuitem3">
86 <property name="visible">True</property>
87 <property name="label" translatable="yes">_View</property>
88 <property name="use_underline">True</property>
89 </object>
90 </child>
91 <child>
92 <object class="GtkMenuItem" id="menuitem4">
93 <property name="visible">True</property>
94 <property name="label" translatable="yes">_Help</property>
95 <property name="use_underline">True</property>
96 <child type="submenu">
97 <object class="GtkMenu" id="menu3">
98 <property name="visible">True</property>
99 <child>
100 <object class="GtkImageMenuItem" id="imagemenuitem10">
101 <property name="label">gtk-about</property>
102 <property name="visible">True</property>
103 <property name="use_underline">True</property>
104 <property name="use_stock">True</property>
105 </object>
106 </child>
107 </object>
108 </child>
109 </object>
110 </child>
111 </object>
112 <packing>
113 <property name="expand">False</property>
114 <property name="position">0</property>
115 </packing>
116 </child>
117 <child>
118 <object class="GtkHandleBox" id="handlebox1">
119 <property name="visible">True</property>
120 <child>
121 <object class="GtkToolbar" id="toolbar1">
122 <property name="visible">True</property>
123 <property name="toolbar_style">icons</property>
124 <property name="icon_size">1</property>
125 <property name="icon_size_set">True</property>
126 <child>
127 <object class="GtkToggleToolButton" id="add_state">
128 <property name="visible">True</property>
129 <property name="tooltip_text" translatable="yes">Add state</property>
130 <property name="label" translatable="yes">Add State</property>
131 <property name="use_underline">True</property>
132 <property name="stock_id">gtk-add</property>
133 <signal name="toggled" handler="on_add_state_toggled"/>
134 </object>
135 <packing>
136 <property name="expand">False</property>
137 <property name="homogeneous">True</property>
138 </packing>
139 </child>
140 <child>
141 <object class="GtkToggleToolButton" id="move_state">
142 <property name="visible">True</property>
143 <property name="tooltip_text" translatable="yes">Move or select a state</property>
144 <property name="label" translatable="yes">select &amp; move</property>
145 <property name="use_underline">True</property>
146 <property name="icon_name">widget-gtk-alignment</property>
147 <signal name="toggled" handler="on_move_state_toggled"/>
148 </object>
149 <packing>
150 <property name="expand">False</property>
151 <property name="homogeneous">True</property>
152 </packing>
153 </child>
154 <child>
155 <object class="GtkSeparatorToolItem" id="toolbutton1">
156 <property name="visible">True</property>
157 </object>
158 <packing>
159 <property name="expand">False</property>
160 <property name="homogeneous">True</property>
161 </packing>
162 </child>
163 <child>
164 <object class="GtkToolButton" id="zoom_in">
165 <property name="visible">True</property>
166 <property name="tooltip_text" translatable="yes">Zoom-in</property>
167 <property name="label" translatable="yes">Zoom-in</property>
168 <property name="use_underline">True</property>
169 <property name="stock_id">gtk-zoom-in</property>
170 <signal name="clicked" handler="on_zoom_in_clicked"/>
171 </object>
172 <packing>
173 <property name="expand">False</property>
174 <property name="homogeneous">True</property>
175 </packing>
176 </child>
177 <child>
178 <object class="GtkToolButton" id="zoom_out">
179 <property name="visible">True</property>
180 <property name="tooltip_text" translatable="yes">Zoom-out</property>
181 <property name="label" translatable="yes">Zoom-out</property>
182 <property name="use_underline">True</property>
183 <property name="stock_id">gtk-zoom-out</property>
184 <signal name="clicked" handler="on_zoom_out_clicked"/>
185 </object>
186 <packing>
187 <property name="expand">False</property>
188 <property name="homogeneous">True</property>
189 </packing>
190 </child>
191 </object>
192 </child>
193 </object>
194 <packing>
195 <property name="expand">False</property>
196 <property name="position">1</property>
197 </packing>
198 </child>
199 <child>
200 <object class="GtkScrolledWindow" id="svg_scroll">
201 <property name="visible">True</property>
202 <property name="can_focus">True</property>
203 <property name="hscrollbar_policy">automatic</property>
204 <property name="vscrollbar_policy">automatic</property>
205 <child>
206 <object class="GtkViewport" id="svg_box">
207 <property name="visible">True</property>
208 <property name="resize_mode">queue</property>
209 <child>
210 <placeholder/>
211 </child>
212 </object>
213 </child>
214 </object>
215 <packing>
216 <property name="position">2</property>
217 </packing>
218 </child>
219 <child>
220 <object class="GtkStatusbar" id="statusbar1">
221 <property name="visible">True</property>
222 <property name="spacing">5</property>
223 <child>
224 <object class="GtkHBox" id="hbox1">
225 <property name="visible">True</property>
226 <child>
227 <object class="GtkLabel" id="label1">
228 <property name="visible">True</property>
229 <property name="xalign">0.10000000149011612</property>
230 <property name="label" translatable="yes">Compnent:</property>
231 </object>
232 <packing>
233 <property name="expand">False</property>
234 <property name="position">0</property>
235 </packing>
236 </child>
237 <child>
238 <object class="GtkLabel" id="comp_name">
239 <property name="visible">True</property>
240 <property name="xpad">5</property>
241 <property name="label" translatable="yes">component1</property>
242 </object>
243 <packing>
244 <property name="expand">False</property>
245 <property name="position">1</property>
246 </packing>
247 </child>
248 </object>
249 <packing>
250 <property name="expand">False</property>
251 <property name="position">0</property>
252 </packing>
253 </child>
254 </object>
255 <packing>
256 <property name="expand">False</property>
257 <property name="position">3</property>
258 </packing>
259 </child>
260 </object>
261 </child>
262 </object>
263 <object class="GtkMenu" id="fsm_context">
264 <property name="visible">True</property>
265 <child>
266 <object class="GtkMenuItem" id="remove_state">
267 <property name="visible">True</property>
268 <property name="tooltip_text" translatable="yes">Remove selected state or transition.</property>
269 <property name="label" translatable="yes">Remove</property>
270 <property name="use_underline">True</property>
271 <signal name="activate" handler="on_remove_state_activate"/>
272 </object>
273 </child>
274 <child>
275 <object class="GtkMenuItem" id="rename_state">
276 <property name="visible">True</property>
277 <property name="tooltip_text" translatable="yes">Change state name</property>
278 <property name="label" translatable="yes">Rename</property>
279 <property name="use_underline">True</property>
280 <signal name="activate" handler="on_rename_state_activate"/>
281 </object>
282 </child>
283 <child>
284 <object class="GtkMenuItem" id="start_state">
285 <property name="visible">True</property>
286 <property name="tooltip_text" translatable="yes">Make the selected state as start state.</property>
287 <property name="label" translatable="yes">Start State</property>
288 <property name="use_underline">True</property>
289 <signal name="activate" handler="on_start_state_activate"/>
290 </object>
291 </child>
292 </object>
293 </interface>