Changeset 1210
- Timestamp:
- 04/11/07 06:41:08 (2 years ago)
- Files:
-
- gaphor/trunk/gaphor/actions/itemactions.py (modified) (2 diffs)
- gaphor/trunk/gaphor/diagram/classifier.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/gaphor/actions/itemactions.py
r1201 r1210 306 306 item = get_parent_focus_item(self._window) 307 307 item.show_attributes = self.active 308 item.request_update() 308 309 309 310 register_action(ShowAttributesAction, 'ItemFocus') … … 331 332 item = get_parent_focus_item(self._window) 332 333 item.show_operations = self.active 334 item.request_update() 333 335 334 336 register_action(ShowOperationsAction, 'ItemFocus') gaphor/trunk/gaphor/diagram/classifier.py
r1201 r1210 15 15 16 16 class Compartment(list): 17 """Specify a compartment in a class item. 17 """ 18 Specify a compartment in a class item. 18 19 A compartment has a line on top and a list of FeatureItems. 19 20 """ … … 32 33 33 34 def has_item(self, item): 34 """Check if the compartment already contains an item with the 35 """ 36 Check if the compartment already contains an item with the 35 37 same subject as item. 36 38 """ … … 40 42 41 43 def get_size(self): 42 """Get width, height of the compartment. pre_update should have 44 """ 45 Get width, height of the compartment. pre_update should have 43 46 been called so widthand height have been calculated. 44 47 """ 45 return self.width, self.height 48 if self.visible: 49 return self.width, self.height 50 else: 51 return 0, 0 46 52 47 53 def pre_update(self, context): … … 378 384 # draw compartments 379 385 for comp in self._compartments: 386 if not comp.visible: 387 continue 380 388 cr.save() 381 389 cr.move_to(0, 0)
