Changeset 894

Show
Ignore:
Timestamp:
05/23/06 01:40:27 (3 years ago)
Author:
arjanmol
Message:

updated TODO

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gaphor/TODO

    r893 r894  
     1 
     2 
     3!!! Create some example diagrams, 
     4 
     5 - using stereotypes 
     6 - associations 
     7 - components and stuff 
     8 
    19======= 0.8.0 ======== 
    210- load uml2.gaphor and open other file or split flows and undo/redo. 
  • trunk/gaphor/gaphor/ui/toolbox.py

    r529 r894  
    5656                     content.get_property('visible'), persistent=True) 
    5757 
    58     def make_wrapbox_decorator(self, title, content): 
     58    def old_make_wrapbox_decorator(self, title, content): 
    5959        """Create a gtk.VBox with in the top compartment a label that can be 
    6060        clicked to show/hide the lower compartment. 
     
    7979 
    8080        vbox.pack_start(button, False, False, 1) 
     81        vbox.pack_start(content, False, False, 1) 
    8182 
    8283        vbox.show_all() 
     
    9495 
    9596        return vbox 
     97 
     98    def make_wrapbox_decorator(self, title, content): 
     99        """Create a gtk.VBox with in the top compartment a label that can be 
     100        clicked to show/hide the lower compartment. 
     101        """ 
     102        expander = gtk.Expander() 
     103        hbox = gtk.HBox() 
     104        expander.set_label_widget(hbox) 
     105 
     106        label = gtk.Label(title) 
     107        hbox.pack_start(label, expand=False, fill=False) 
     108 
     109        sep = gtk.HSeparator() 
     110        hbox.pack_start(sep, expand=True, fill=True) 
     111        hbox.set_spacing(3) 
     112 
     113        expander.add(content) 
     114         
     115        expanded = resource('ui.toolbox.%s' % title.replace(' ', '-').lower(), False) 
     116        expander.set_expanded(expanded) 
     117 
     118        expander.show_all() 
     119        return expander 
    96120 
    97121    def construct(self):