Changeset 894
- Timestamp:
- 05/23/06 01:40:27 (3 years ago)
- Files:
-
- trunk/gaphor/TODO (modified) (1 diff)
- trunk/gaphor/gaphor/ui/toolbox.py (modified) (3 diffs)
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 1 9 ======= 0.8.0 ======== 2 10 - load uml2.gaphor and open other file or split flows and undo/redo. trunk/gaphor/gaphor/ui/toolbox.py
r529 r894 56 56 content.get_property('visible'), persistent=True) 57 57 58 def make_wrapbox_decorator(self, title, content):58 def old_make_wrapbox_decorator(self, title, content): 59 59 """Create a gtk.VBox with in the top compartment a label that can be 60 60 clicked to show/hide the lower compartment. … … 79 79 80 80 vbox.pack_start(button, False, False, 1) 81 vbox.pack_start(content, False, False, 1) 81 82 82 83 vbox.show_all() … … 94 95 95 96 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 96 120 97 121 def construct(self):
