Changeset 3826
- Timestamp:
- 12/20/07 18:14:36 (1 year ago)
- Files:
-
- trunk/ide/ClassDesignerComponents.py (modified) (1 diff)
- trunk/ide/ClassDesignerControlMixin.py (modified) (2 diffs)
- trunk/ide/ClassDesignerTreeSheet.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ide/ClassDesignerComponents.py
r3770 r3826 1466 1466 pop.appendSeparator() 1467 1467 pop.append(_("Edit Sizer Settings"), OnHit=self.onEditSizer) 1468 self.Controller.addSlotOptions(self, pop, sepBefore=True) 1468 1469 return pop 1469 1470 trunk/ide/ClassDesignerControlMixin.py
r3730 r3826 780 780 "ShowPanelSplitMenu" : {"type" : bool, "readonly" : False}, 781 781 "Split" : {"type" : bool, "readonly" : False}} 782 spinnerProps = {"Max": {"type" : int, "readonly" : False}, 782 spinnerProps = { 783 # "Increment": {"type": float, "readonly": False}, 784 "Max": {"type" : int, "readonly" : False}, 783 785 "Min": {"type" : int, "readonly" : False}, 784 786 "SpinnerWrap": {"type" : bool, "readonly" : False}} … … 1269 1271 main control? (bool)""")) 1270 1272 1273 # Placeholder for the actual RegID property 1271 1274 RegID = property(_getRegID, _setRegID, None, 1272 _(" Placeholder for the actual RegID property (str)"))1275 _("A unique identifier used for referencing by other objects. (str)")) 1273 1276 1274 1277 Selected = property(_getSelected, _setSelected, None, trunk/ide/ClassDesignerTreeSheet.py
r3515 r3826 17 17 from MenuDesignerComponents import SeparatorPanel 18 18 dui = dabo.ui 19 from dabo.ui import makeProxyProperty 19 20 20 21 21 22 class TreeSheet(dui.dPanel): 23 def _initProperties(self): 24 self.tree = None 25 return super(TreeSheet, self)._initProperties() 26 27 28 def _constructed(self): 29 return hasattr(self, "tree") and isinstance(self.tree, dui.dTreeView) 30 31 22 32 def afterInit(self): 23 33 self._slotCaption = _("Empty Sizer Slot") 24 34 self._spacerCaption = _("Spacer") 25 self.tree = dui.dTreeView(self, MultipleSelect=self.MultipleSelect, 26 ShowButtons=True) 35 self.tree = dui.dTreeView(self, ShowButtons=True) 27 36 plat = self.Application.Platform 28 37 if plat == "Mac": … … 412 421 413 422 414 def _getMultipleSelect(self):415 try:416 ret = self._multipleSelect417 except AttributeError:418 ret = self._multipleSelect = True419 return ret420 421 def _setMultipleSelect(self, val):422 if self._constructed():423 self._multipleSelect = val424 try:425 self.tree.MultipleSelect = val426 except AttributeError:427 # tree isn't constructed yet428 dabo.ui.setAfter(self.Tree, "MultipleSelect", val)429 else:430 self._properties["MultipleSelect"] = val423 # def _getMultipleSelect(self): 424 # try: 425 # ret = self._multipleSelect 426 # except AttributeError: 427 # ret = self._multipleSelect = True 428 # return ret 429 # 430 # def _setMultipleSelect(self, val): 431 # if self._constructed(): 432 # self._multipleSelect = val 433 # try: 434 # self.tree.MultipleSelect = val 435 # except AttributeError: 436 # # tree isn't constructed yet 437 # dabo.ui.setAfter(self.tree, "MultipleSelect", val) 438 # else: 439 # self._properties["MultipleSelect"] = val 431 440 432 441 … … 434 443 _("Object to which this one reports events (object (varies))")) 435 444 436 MultipleSelect = property(_getMultipleSelect, _setMultipleSelect, None, 437 _("Determines if the tree supports multiple selection (bool)")) 438 445 # MultipleSelect = property(_getMultipleSelect, _setMultipleSelect, None, 446 # _("Determines if the tree supports multiple selection (bool)")) 447 448 _proxyDict = {} 449 MultipleSelect = makeProxyProperty(_proxyDict, "MultipleSelect", "tree", )
