dabo Commit
Revision 7142
Date: 2012-04-25 12:50:17 -0700 (Wed, 25 Apr 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7142

Changed:
U   trunk/ide/ClassDesigner.py
U   trunk/ide/ClassDesignerControlMixin.py

Log:
Added 'Precision' to the exposed dColumn properties in the Class Designer.

Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py  2012-04-25 19:50:01 UTC (rev 7141)
+++ trunk/ide/ClassDesigner.py  2012-04-25 19:50:17 UTC (rev 7142)
@@ -625,6 +625,8 @@
                self.openingClassXML = True
                # Clear any existing superclass info
                self._superClassInfo = {}
+               # Make sure that we have the actual path to the file
+               pth = dabo.lib.utils.resolvePathAndUpdate(pth)
                # Add to the MRU list
                self.addMRUPath(pth)
                # Translate the file path into a class dictionary.
@@ -1755,7 +1757,8 @@
                                        obj = cls(frm)
                        for prop in obj.DesignerProps:
                                ret[prop] = getattr(obj, prop)
-#                              ret[prop] = eval("obj.%s" % prop)
+                       if issubclass(cls, dui.dColumn):
+                               print "PREC", ret["Caption"], ret["Precision"]
                        self._classDefaultVals[cls] = ret
                        if cleanup:
                                exec cleanup in locals()

Modified: trunk/ide/ClassDesignerControlMixin.py
===================================================================
--- trunk/ide/ClassDesignerControlMixin.py      2012-04-25 19:50:01 UTC (rev 
7141)
+++ trunk/ide/ClassDesignerControlMixin.py      2012-04-25 19:50:17 UTC (rev 
7142)
@@ -957,6 +957,7 @@
                        ret = columnProps
                        ret.update(captionProps)
                        ret.update(fontProps)
+                       ret["Precision"] = {"type": int, "readonly": False}
                        ret["Visible"] = {"type": bool, "readonly": False}
                elif isinstance(self, dui.dComboBox):
                        ret.update(colorProps)



_______________________________________________
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]

Reply via email to