Re: 2 very minor gui suggestions

"Jerad Clark" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
Patches for the tree sorting, based on the latest source, included.

In case anyone was interested.

Jerad

On 6/9/06, Jerad Clark <[email protected]> wrote:
> 1) I would like to make the small suggestion of sorting the menu tree
> in BitPim, alphabetically.
>
> To these files:
>
>   call_history.py
>   media_root.py
>   sms_tab.py
>
> add the following to the end of the OnInit() method for each widget class:
>
>   self._tree.SortChildren(self.id)
>
> Lines 279, 127, and 183 respectively. Finally add the following to
> line 355 (or there about) in phone_root.py:
>
>   self.tree.SortChildren(self.phone_id)
>
> 2) The nodes for images, ringers, and sounds should be capitalized for
> consistency across the menu tree.
>
> Thanks,
> Jerad
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
BitPim-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
call_history_patch.txt (text/plain, 706 B)
Index: C:/PROJECTS2/BitPim/src/call_history.py
===================================================================
--- C:/PROJECTS2/BitPim/src/call_history.py	(revision 3349)
+++ C:/PROJECTS2/BitPim/src/call_history.py	(working copy)
@@ -276,7 +276,8 @@
     def OnInit(self):
         for stat in self.stat_list:
             self.call_history_tree_nodes[stat]=self.AddSubPage(self.list_widget, stat, self._tree.calls)
-
+        self._tree.SortChildren(self.id)
+            
     def GetRightClickMenuItems(self, node):
         result=[]
         result.append((widgets.BitPimWidget.MENU_NORMAL, guihelper.ID_EXPORT_CSV_CALL_HISTORY, "Export to CSV ...", "Export the call history to a csv file"))
media_root_patch.txt (text/plain, 575 B)
Index: C:/PROJECTS2/BitPim/src/media_root.py
===================================================================
--- C:/PROJECTS2/BitPim/src/media_root.py	(revision 3460)
+++ C:/PROJECTS2/BitPim/src/media_root.py	(working copy)
@@ -124,6 +124,7 @@
         self.ringerwidget.updateprofilevariables(self._main_window.phoneprofile)
         self.wallpaperwidget.updateprofilevariables(self._main_window.phoneprofile)
         self.DoMediaSummary()
+        self._tree.SortChildren(self.id)
 
     def OnPhoneModelChanged(self, msg):
         for name in self.ringernodes:
sms_tab_patch.txt (text/plain, 515 B)
Index: C:/PROJECTS2/BitPim/src/sms_tab.py
===================================================================
--- C:/PROJECTS2/BitPim/src/sms_tab.py	(revision 3298)
+++ C:/PROJECTS2/BitPim/src/sms_tab.py	(working copy)
@@ -180,6 +180,7 @@
     def OnInit(self):
         for stat in self.msg_type_list:
             self.sms_tree_nodes[stat]=self.AddSubPage(self.list_widget, stat, self._tree.message)
+        self._tree.SortChildren(self.id)
 
     def GetRightClickMenuItems(self, node):
         result=[]
phone_root_patch.txt (text/plain, 604 B)
Index: C:/PROJECTS2/BitPim/src/phone_root.py
===================================================================
--- C:/PROJECTS2/BitPim/src/phone_root.py	(revision 3460)
+++ C:/PROJECTS2/BitPim/src/phone_root.py	(working copy)
@@ -353,6 +353,8 @@
         self.playlistwidget=playlist.PlaylistWidget(self, self.parent)
         id=self.tree.AddPage(self.phone_id, self.playlistwidget, 'Play List', self.tree.playlist,id)
 
+        self.tree.SortChildren(self.phone_id)
+        
         # update the the status bar info
         self.mw.SetPhoneModelStatus()
         self.mw.SetVersionsStatus()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.