Mercurial > MadButterfly
comparison pyink/FSM_window.glade @ 1478:6fe773e62b2a
Add state to FSM.
- Add a state if user left-click on the background of FSM window.
- pop a dialog that user can specify name and radius of the new state.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 25 Apr 2011 17:52:51 +0800 |
parents | e217c7743905 |
children | 92a8497d0361 |
comparison
equal
deleted
inserted
replaced
1477:e217c7743905 | 1478:6fe773e62b2a |
---|---|
128 <property name="visible">True</property> | 128 <property name="visible">True</property> |
129 <property name="tooltip_text" translatable="yes">Add state</property> | 129 <property name="tooltip_text" translatable="yes">Add state</property> |
130 <property name="label" translatable="yes">Add State</property> | 130 <property name="label" translatable="yes">Add State</property> |
131 <property name="use_underline">True</property> | 131 <property name="use_underline">True</property> |
132 <property name="stock_id">gtk-add</property> | 132 <property name="stock_id">gtk-add</property> |
133 <signal name="toggled" handler="on_add_state_toggled"/> | |
133 </object> | 134 </object> |
134 <packing> | 135 <packing> |
135 <property name="expand">False</property> | 136 <property name="expand">False</property> |
136 <property name="homogeneous">True</property> | 137 <property name="homogeneous">True</property> |
137 </packing> | 138 </packing> |
142 <property name="tooltip_text" translatable="yes">Move or select a state</property> | 143 <property name="tooltip_text" translatable="yes">Move or select a state</property> |
143 <property name="label" translatable="yes">select & move</property> | 144 <property name="label" translatable="yes">select & move</property> |
144 <property name="use_underline">True</property> | 145 <property name="use_underline">True</property> |
145 <property name="icon_name">widget-gtk-alignment</property> | 146 <property name="icon_name">widget-gtk-alignment</property> |
146 <property name="group">add_state</property> | 147 <property name="group">add_state</property> |
148 <signal name="toggled" handler="on_move_state_toggled"/> | |
147 </object> | 149 </object> |
148 <packing> | 150 <packing> |
149 <property name="expand">False</property> | 151 <property name="expand">False</property> |
150 <property name="homogeneous">True</property> | 152 <property name="homogeneous">True</property> |
151 </packing> | 153 </packing> |
287 <property name="use_underline">True</property> | 289 <property name="use_underline">True</property> |
288 <signal name="activate" handler="on_start_state_activate"/> | 290 <signal name="activate" handler="on_start_state_activate"/> |
289 </object> | 291 </object> |
290 </child> | 292 </child> |
291 </object> | 293 </object> |
294 <object class="GtkDialog" id="state_editor"> | |
295 <property name="border_width">5</property> | |
296 <property name="title" translatable="yes">State Editor</property> | |
297 <property name="modal">True</property> | |
298 <property name="window_position">center-on-parent</property> | |
299 <property name="default_height">200</property> | |
300 <property name="type_hint">normal</property> | |
301 <property name="transient_for">FSM_main_win</property> | |
302 <signal name="delete_event" handler="gtk_widget_hide"/> | |
303 <child internal-child="vbox"> | |
304 <object class="GtkVBox" id="dialog-vbox1"> | |
305 <property name="visible">True</property> | |
306 <property name="orientation">vertical</property> | |
307 <property name="spacing">2</property> | |
308 <child> | |
309 <object class="GtkTable" id="table1"> | |
310 <property name="visible">True</property> | |
311 <property name="n_rows">3</property> | |
312 <property name="n_columns">2</property> | |
313 <child> | |
314 <object class="GtkLabel" id="label2"> | |
315 <property name="visible">True</property> | |
316 <property name="label" translatable="yes">Name:</property> | |
317 </object> | |
318 </child> | |
319 <child> | |
320 <object class="GtkLabel" id="label3"> | |
321 <property name="visible">True</property> | |
322 <property name="label" translatable="yes">Radius:</property> | |
323 </object> | |
324 <packing> | |
325 <property name="top_attach">1</property> | |
326 <property name="bottom_attach">2</property> | |
327 </packing> | |
328 </child> | |
329 <child> | |
330 <object class="GtkEntry" id="state_name"> | |
331 <property name="visible">True</property> | |
332 <property name="can_focus">True</property> | |
333 <property name="invisible_char">●</property> | |
334 </object> | |
335 <packing> | |
336 <property name="left_attach">1</property> | |
337 <property name="right_attach">2</property> | |
338 </packing> | |
339 </child> | |
340 <child> | |
341 <object class="GtkEntry" id="state_radius"> | |
342 <property name="visible">True</property> | |
343 <property name="can_focus">True</property> | |
344 <property name="invisible_char">●</property> | |
345 </object> | |
346 <packing> | |
347 <property name="left_attach">1</property> | |
348 <property name="right_attach">2</property> | |
349 <property name="top_attach">1</property> | |
350 <property name="bottom_attach">2</property> | |
351 </packing> | |
352 </child> | |
353 <child> | |
354 <placeholder/> | |
355 </child> | |
356 <child> | |
357 <placeholder/> | |
358 </child> | |
359 </object> | |
360 <packing> | |
361 <property name="expand">False</property> | |
362 <property name="position">1</property> | |
363 </packing> | |
364 </child> | |
365 <child internal-child="action_area"> | |
366 <object class="GtkHButtonBox" id="dialog-action_area1"> | |
367 <property name="visible">True</property> | |
368 <property name="layout_style">end</property> | |
369 <child> | |
370 <object class="GtkButton" id="state_apply"> | |
371 <property name="label">gtk-apply</property> | |
372 <property name="visible">True</property> | |
373 <property name="can_focus">True</property> | |
374 <property name="receives_default">True</property> | |
375 <property name="use_stock">True</property> | |
376 <signal name="clicked" handler="on_state_apply_clicked"/> | |
377 </object> | |
378 <packing> | |
379 <property name="expand">False</property> | |
380 <property name="fill">False</property> | |
381 <property name="position">0</property> | |
382 </packing> | |
383 </child> | |
384 <child> | |
385 <object class="GtkButton" id="state_cancel"> | |
386 <property name="label">gtk-cancel</property> | |
387 <property name="visible">True</property> | |
388 <property name="can_focus">True</property> | |
389 <property name="receives_default">True</property> | |
390 <property name="use_stock">True</property> | |
391 <signal name="clicked" handler="on_state_cancel_clicked"/> | |
392 </object> | |
393 <packing> | |
394 <property name="expand">False</property> | |
395 <property name="fill">False</property> | |
396 <property name="position">1</property> | |
397 </packing> | |
398 </child> | |
399 </object> | |
400 <packing> | |
401 <property name="expand">False</property> | |
402 <property name="pack_type">end</property> | |
403 <property name="position">0</property> | |
404 </packing> | |
405 </child> | |
406 </object> | |
407 </child> | |
408 <action-widgets> | |
409 <action-widget response="0">state_apply</action-widget> | |
410 <action-widget response="0">state_cancel</action-widget> | |
411 </action-widgets> | |
412 </object> | |
413 <object class="GtkDialog" id="error_dialog"> | |
414 <property name="width_request">200</property> | |
415 <property name="height_request">200</property> | |
416 <property name="border_width">5</property> | |
417 <property name="title" translatable="yes">Error</property> | |
418 <property name="resizable">False</property> | |
419 <property name="modal">True</property> | |
420 <property name="type_hint">normal</property> | |
421 <property name="transient_for">state_editor</property> | |
422 <signal name="delete_event" handler="gtk_widget_hide"/> | |
423 <child internal-child="vbox"> | |
424 <object class="GtkVBox" id="dialog-vbox2"> | |
425 <property name="visible">True</property> | |
426 <property name="orientation">vertical</property> | |
427 <property name="spacing">2</property> | |
428 <child> | |
429 <object class="GtkVBox" id="vbox3"> | |
430 <property name="visible">True</property> | |
431 <property name="orientation">vertical</property> | |
432 <child> | |
433 <object class="GtkLabel" id="error_dialog_label"> | |
434 <property name="visible">True</property> | |
435 <property name="label" translatable="yes">Invalid state name. It is a existing state name or invalid in format!</property> | |
436 <property name="wrap">True</property> | |
437 </object> | |
438 <packing> | |
439 <property name="position">0</property> | |
440 </packing> | |
441 </child> | |
442 </object> | |
443 <packing> | |
444 <property name="position">1</property> | |
445 </packing> | |
446 </child> | |
447 <child internal-child="action_area"> | |
448 <object class="GtkHButtonBox" id="dialog-action_area2"> | |
449 <property name="visible">True</property> | |
450 <property name="layout_style">end</property> | |
451 <child> | |
452 <placeholder/> | |
453 </child> | |
454 <child> | |
455 <object class="GtkButton" id="error_dialog_ok"> | |
456 <property name="label">gtk-ok</property> | |
457 <property name="visible">True</property> | |
458 <property name="can_focus">True</property> | |
459 <property name="receives_default">True</property> | |
460 <property name="use_stock">True</property> | |
461 <signal name="clicked" handler="on_error_dialog_ok_clicked"/> | |
462 </object> | |
463 <packing> | |
464 <property name="expand">False</property> | |
465 <property name="fill">False</property> | |
466 <property name="position">1</property> | |
467 </packing> | |
468 </child> | |
469 </object> | |
470 <packing> | |
471 <property name="expand">False</property> | |
472 <property name="pack_type">end</property> | |
473 <property name="position">0</property> | |
474 </packing> | |
475 </child> | |
476 </object> | |
477 </child> | |
478 <action-widgets> | |
479 <action-widget response="0">error_dialog_ok</action-widget> | |
480 </action-widgets> | |
481 </object> | |
292 </interface> | 482 </interface> |