dabo Commit
Revision 5054
Date: 2009-02-10 07:02:50 -0800 (Tue, 10 Feb 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5054
Changed:
U trunk/ide/ClassDesignerComponents.py
Log:
Fixed the missing context menu for spacers.
Diff:
Modified: trunk/ide/ClassDesignerComponents.py
===================================================================
--- trunk/ide/ClassDesignerComponents.py 2009-02-09 23:50:51 UTC (rev
5053)
+++ trunk/ide/ClassDesignerComponents.py 2009-02-10 15:02:50 UTC (rev
5054)
@@ -902,13 +902,14 @@
}})
- def onMouseRightClick(self, evt):
+ def onContextMenu(self, evt):
if isinstance(self.Parent, dabo.ui.dPage):
self.Parent.activePanel = self
pop = dabo.ui.dMenu()
pop.prepend(_("Delete"), OnHit=self.onDelete)
pop.prepend(_("Copy"), OnHit=self.onCopy)
pop.prepend(_("Cut"), OnHit=self.onCut)
+ self.Controller.addSlotOptions(self, pop, sepBefore=True)
# Add the Sizer editing option
pop.appendSeparator()
pop.append(_("Edit Sizer Settings"), OnHit=self.onEditSizer)
@@ -934,6 +935,7 @@
else:
cs.insert(pos, lp, 1, "x")
csi = lp.ControllingSizerItem
+ cs.setItemProps(csi, sizerAtts)
self.Controller.select(lp)
dabo.ui.callAfter(self.Form.updateApp)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]