Extended the recent addition a little bit.

Fri, 23 May 2014 18:26:24 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 23 May 2014 18:26:24 +0200
changeset 3604
919ebd27fa78
parent 3603
cd14023a8ac1
child 3605
646288f2fc19

Extended the recent addition a little bit.

APIs/Python3/eric5.api file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Help/source.qhp file | annotate | diff | comparison | revisions
Documentation/Source/eric5.UI.BrowserModel.html file | annotate | diff | comparison | revisions
UI/BrowserModel.py file | annotate | diff | comparison | revisions
--- a/APIs/Python3/eric5.api	Thu May 22 19:49:41 2014 +0200
+++ b/APIs/Python3/eric5.api	Fri May 23 18:26:24 2014 +0200
@@ -7933,6 +7933,7 @@
 eric5.UI.BrowserModel.BrowserClassAttributesItem.attributes?4()
 eric5.UI.BrowserModel.BrowserClassAttributesItem.isClassAttributes?4()
 eric5.UI.BrowserModel.BrowserClassAttributesItem.lessThan?4(other, column, order)
+eric5.UI.BrowserModel.BrowserClassAttributesItem.name?4()
 eric5.UI.BrowserModel.BrowserClassAttributesItem?1(parent, attributes, text, isClass=False)
 eric5.UI.BrowserModel.BrowserClassItem.boundaries?4()
 eric5.UI.BrowserModel.BrowserClassItem.classObject?4()
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Help/source.qhp	Thu May 22 19:49:41 2014 +0200
+++ b/Documentation/Help/source.qhp	Fri May 23 18:26:24 2014 +0200
@@ -1783,6 +1783,7 @@
       <keyword name="BrowserClassAttributesItem.attributes" id="BrowserClassAttributesItem.attributes" ref="eric5.UI.BrowserModel.html#BrowserClassAttributesItem.attributes" />
       <keyword name="BrowserClassAttributesItem.isClassAttributes" id="BrowserClassAttributesItem.isClassAttributes" ref="eric5.UI.BrowserModel.html#BrowserClassAttributesItem.isClassAttributes" />
       <keyword name="BrowserClassAttributesItem.lessThan" id="BrowserClassAttributesItem.lessThan" ref="eric5.UI.BrowserModel.html#BrowserClassAttributesItem.lessThan" />
+      <keyword name="BrowserClassAttributesItem.name" id="BrowserClassAttributesItem.name" ref="eric5.UI.BrowserModel.html#BrowserClassAttributesItem.name" />
       <keyword name="BrowserClassItem" id="BrowserClassItem" ref="eric5.UI.BrowserModel.html#BrowserClassItem" />
       <keyword name="BrowserClassItem (Constructor)" id="BrowserClassItem (Constructor)" ref="eric5.UI.BrowserModel.html#BrowserClassItem.__init__" />
       <keyword name="BrowserClassItem.boundaries" id="BrowserClassItem.boundaries" ref="eric5.UI.BrowserModel.html#BrowserClassItem.boundaries" />
--- a/Documentation/Source/eric5.UI.BrowserModel.html	Thu May 22 19:49:41 2014 +0200
+++ b/Documentation/Source/eric5.UI.BrowserModel.html	Fri May 23 18:26:24 2014 +0200
@@ -229,6 +229,9 @@
 </tr><tr>
 <td><a href="#BrowserClassAttributesItem.lessThan">lessThan</a></td>
 <td>Public method to check, if the item is less than the other one.</td>
+</tr><tr>
+<td><a href="#BrowserClassAttributesItem.name">name</a></td>
+<td>Public method to return the name of the item.</td>
 </tr>
 </table>
 <h3>Static Methods</h3>
@@ -295,6 +298,16 @@
 <dd>
 true, if this item is less than other (boolean)
 </dd>
+</dl><a NAME="BrowserClassAttributesItem.name" ID="BrowserClassAttributesItem.name"></a>
+<h4>BrowserClassAttributesItem.name</h4>
+<b>name</b>(<i></i>)
+<p>
+        Public method to return the name of the item.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+name of the item (string)
+</dd>
 </dl>
 <div align="right"><a href="#top">Up</a></div>
 <hr /><hr />
--- a/UI/BrowserModel.py	Thu May 22 19:49:41 2014 +0200
+++ b/UI/BrowserModel.py	Fri May 23 18:26:24 2014 +0200
@@ -1580,6 +1580,14 @@
             self.icon = UI.PixmapCache.getIcon("attributes.png")
         self.__isClass = isClass
     
+    def name(self):
+        """
+        Public method to return the name of the item.
+        
+        @return name of the item (string)
+        """
+        return '{0}@@{1}'.format(self.parentItem.name(), self.data(0))
+    
     def attributes(self):
         """
         Public method returning the attribute list.

eric ide

mercurial