Changeset 1347
- Timestamp:
- 06/07/07 06:53:22 (1 year ago)
- Files:
-
- gaphor/trunk/gaphor/adapters/propertypages.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/gaphor/adapters/propertypages.py
r1341 r1347 400 400 (_('Dependency'), UML.Dependency), 401 401 (_('Usage'), UML.Usage), 402 (_('Realization'), UML.Realization)) 402 (_('Realization'), UML.Realization), 403 (_('Implementation'), UML.Implementation)) 403 404 404 405 def __init__(self, context): … … 520 521 return page 521 522 523 hbox = gtk.HBox() 524 label = gtk.Label(_('Show direction')) 525 label.set_justify(gtk.JUSTIFY_LEFT) 526 self.size_group.add_widget(label) 527 hbox.pack_start(label, expand=False) 528 529 button = gtk.CheckButton() 530 button.set_active(self.context.show_direction) 531 button.connect('toggled', self._on_show_direction_change) 532 hbox.pack_start(button) 533 534 button = gtk.Button(_('Invert direction')) 535 button.connect('clicked', self._on_invert_direction_change) 536 hbox.pack_start(button) 537 538 page.pack_start(hbox, expand=False) 539 522 540 hbox = self.construct_end(_('Head'), self.context.head_end) 523 541 page.pack_start(hbox, expand=False) … … 534 552 def update(self): 535 553 pass 554 555 def _on_show_direction_change(self, button): 556 self.context.show_direction = button.get_active() 557 558 def _on_invert_direction_change(self, button): 559 self.context.invert_direction() 536 560 537 561 def _on_end_name_change(self, entry, end):
