Changeset 1347

Show
Ignore:
Timestamp:
06/07/07 06:53:22 (1 year ago)
Author:
arj..@yirdis.nl
Message:

added more properties to property editor.
Someone should have a look at the property editor GUI.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/adapters/propertypages.py

    r1341 r1347  
    400400        (_('Dependency'), UML.Dependency), 
    401401        (_('Usage'), UML.Usage), 
    402         (_('Realization'), UML.Realization)) 
     402        (_('Realization'), UML.Realization), 
     403        (_('Implementation'), UML.Implementation)) 
    403404 
    404405    def __init__(self, context): 
     
    520521            return page 
    521522 
     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 
    522540        hbox = self.construct_end(_('Head'), self.context.head_end) 
    523541        page.pack_start(hbox, expand=False) 
     
    534552    def update(self): 
    535553        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() 
    536560 
    537561    def _on_end_name_change(self, entry, end):