dabo Commit
Revision 4471
Date: 2008-08-27 13:51:27 -0700 (Wed, 27 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4471

Changed:
U   trunk/dabo/ui/uiwx/dEditor.py

Log:
Added a new property to the dEditor widget which exposes the ability to show 
indentation guides.  The property is called ShowIndentationGuides.

Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py       2008-08-27 20:14:02 UTC (rev 4470)
+++ trunk/dabo/ui/uiwx/dEditor.py       2008-08-27 20:51:27 UTC (rev 4471)
@@ -247,6 +247,7 @@
                self._codeFolding = True
                self._showLineNumbers = True
                self._showEOL = False
+               self._showIndentationGuides = False
                self._showWhiteSpace = False
                self._useStyleTimer = False
                self._tabWidth = 4
@@ -2177,6 +2178,17 @@
                        self._properties["ShowEOL"] = val
 
 
+       def _getShowIndentationGuides(self):
+               return self._showIndentationGuides
+
+       def _setShowIndentationGuides(self, val):
+               if self._constructed():
+                       self._showLineNumbers = val
+                       self.SetIndentationGuides(val)
+               else:
+                       self._properties["ShowIndentationGuides"] = val
+
+
        def _getShowLineNumbers(self):
                return self._showLineNumbers
 
@@ -2419,6 +2431,10 @@
                        _("""Determines if end-of-line markers are visible 
                        (default=False)  (bool)"""))
        
+       ShowIndentationGuides = property(_getShowIndentationGuides, 
_setShowIndentationGuides, None,
+                       _("""Deterimnes if indentation guides are displayed
+                       (default=False)  (bool)"""))
+       
        ShowLineNumbers = property(_getShowLineNumbers, _setShowLineNumbers, 
None,
                        _("""Determines if line numbers are shown in the left 
                        margin (default=True)  (bool)"""))




_______________________________________________
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