Re: [Amsn-devel] preferences windows
NoWhereMan wrote: tabs coul be mapped to the categories and frames (fieldsets) could be mapped to subsections; frame and tab procs might be rewritten (and with rewritten I mean doing a tk rename) in this sense, handling the transition transparently. I don't know if such a widget exist in tk, though notice this is also in GNOME HIG http://developer.gnome.org/projects/gup/hig/2.0/controls-notebooks.html#controls-too-many-tabs bye :) - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
Re: [Amsn-devel] preferences windows
I like the idea of something like the old Firefox preferences dialog (with controls on the side). Another thing on user interface, is I sometimes find it hard to find what I am looking for with the menus. I don't know of a way that could improve it, but I would like to see the Preferences moved up in the Account menu (I am not even sure whether it should really belong in the Account menu, but I can't seem to see a better place for it). Just my 2 cents. - Josh On 1/4/07, NoWhereMan [EMAIL PROTECTED] wrote: NoWhereMan wrote: tabs coul be mapped to the categories and frames (fieldsets) could be mapped to subsections; frame and tab procs might be rewritten (and with rewritten I mean doing a tk rename) in this sense, handling the transition transparently. I don't know if such a widget exist in tk, though notice this is also in GNOME HIG http://developer.gnome.org/projects/gup/hig/2.0/controls-notebooks.html#controls-too-many-tabs bye :) - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel -- Hendo - 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.phpp=sourceforgeCID=DEVDEV___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
Re: [Amsn-devel] preferences windows
- Original Message - From: Joshua Henderson To: Mailing list for developers and everyone helping AMSN Sent: Thursday, January 04, 2007 9:48 AM Subject: Re: [Amsn-devel] preferences windows I like the idea of something like the old Firefox preferences dialog (with controls on the side). Another thing on user interface, is I sometimes find it hard to find what I am looking for with the menus. I don't know of a way that could improve it, but I would like to see the Preferences moved up in the Account menu (I am not even sure whether it should really belong in the Account menu, but I can't seem to see a better place for it). OS X, vista, (soon Gnome I think) have find-as-you-type boxes on their dialogs, but it would be a pain to implement in tcl :/ - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
Re: [Amsn-devel] preferences windows
Hi, The thing you describe here is a little implemented somewhere in the file preferences.tcl : it's a job that Alvaro began before his idleness :p I you want to contribute you can look at that ;) Phil Le Thursday 04 January 2007 10:03, NoWhereMan a écrit : - Original Message - From: Joshua Henderson To: Mailing list for developers and everyone helping AMSN Sent: Thursday, January 04, 2007 9:48 AM Subject: Re: [Amsn-devel] preferences windows I like the idea of something like the old Firefox preferences dialog (with controls on the side). Another thing on user interface, is I sometimes find it hard to find what I am looking for with the menus. I don't know of a way that could improve it, but I would like to see the Preferences moved up in the Account menu (I am not even sure whether it should really belong in the Account menu, but I can't seem to see a better place for it). OS X, vista, (soon Gnome I think) have find-as-you-type boxes on their dialogs, but it would be a pain to implement in tcl :/ - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
Re: [Amsn-devel] preferences windows
Philippe Valembois - Phil wrote: Hi, The thing you describe here is a little implemented somewhere in the file preferences.tcl : it's a job that Alvaro began before his idleness :p I you want to contribute you can look at that ;) uh. well, maybe, once I'm done with my exams (or when I do a pause between a book and another ;)) bye - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
Re: [Amsn-devel] preferences windows
I don't remember If i wrote something in the WIki... I don't think so. The idea was to make a generic preferences window, with a selector or list at the left (a simple text list for now, we could add nice icons later). Then, you had PreferenceSection and PreferenceOption. Preference sections are containers for options. There were some basic types for options (Text, choice, checbox, etc), configurable, with an icon, the config variable they change, etc. You could create your own or customized types of options. I stopped developing it because I found strange and nosense error messages from snit that I couldn't debug. Maybe they are fixed now! Greets. On 1/4/07, Youness Alaoui [EMAIL PROTECTED] wrote: I think you can start it with the command ::Preferences::Show but it's incomplete work, so maybe just look at it to understand how it works and see what it lacks. you can also create an empty prefs window with Preferenceswindow .prefs ; .prefs show .prefs.. anyways, just look at it, you'll probably understand. they're all snit widgets to make our life easier and easy to maintain. p.s: If Alvaro could remember what was missing and what needed to be done in his personal TODO before we could state that the new prefs is 'complete', that would help finish this once and for all. have fun! thx KKRT On Thu, Jan 04, 2007 at 01:51:40PM +0100, NoWhereMan wrote: Philippe Valembois - Phil wrote: Hi, The thing you describe here is a little implemented somewhere in the file preferences.tcl : it's a job that Alvaro began before his idleness :p I you want to contribute you can look at that ;) uh. well, maybe, once I'm done with my exams (or when I do a pause between a book and another ;)) bye - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel -- (:===:) Alvaro J. Iradier Muro - [EMAIL PROTECTED] - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
[Amsn-devel] [FEATURE] Custom Display Pictures
Hi, I've just finished implementing custom display pictures, and I thought that, as is a new feature, it was better to post it here. This implementation of custom DP relies on the dpbrowser snit object, that was almost complete (I just addded some bits here and there) and that was already used in the contact properties screen. --- What's Done --- * Replaced all the calls to pictureBrowser with equivalent calls to dpBrowser * Added to the display picture's popup menu (in the chat window) the options to change/remove custom display pictures * Added ability to select image in dpbrowser * Generalized dpBrowser and related functions to work also with other contacts, not just with self user * Added controls in contact properties screen (settings tab) to change/remove custom display pictures * Marked with TODOs all the procedures related to picturebrowser for eventual removal --- What's Still To Do --- * Translate dpBrowser labels and buttons * Translate label in the properties screen * Translate new entries in display picture's popup menu Please comment my work, and make me know if you liked it. Index: automsg.tcl === --- automsg.tcl (revisione 7718) +++ automsg.tcl (copia locale) @@ -219,7 +219,7 @@ $path add separator $path add command -label [trans changenick]... -command cmsn_change_name - $path add command -label [trans changedisplaypic]... -command pictureBrowser + $path add command -label [trans changedisplaypic]... -command dpBrowser $path add command -label [trans editmyprofile]... -command ::hotmail::hotmail_profile Index: gui.tcl === --- gui.tcl (revisione 7718) +++ gui.tcl (copia locale) @@ -1764,8 +1764,26 @@ } #Load Change Display Picture window $win.picmenu add separator - $win.picmenu add command -label [trans changedisplaypic]... -command pictureBrowser + $win.picmenu add command -label [trans changedisplaypic]... -command dpBrowser + foreach user $users { + $win.picmenu add command -label [trans changecustomuserpic $user] \ +-command autoChangeCustomDp $user + } + #Section to remove custom display pictures + set first_one 0 + foreach user $users { + if {[::abook::getContactData $user customdp ] != } { +# The separator is added only if the section is really going to be draw +if {$first_one == 0} { + $win.picmenu add separator + set first_one 1 +} +$win.picmenu add command -label [trans removecustomuserpic $user] \ + -command autoRemoveCustomDp $user + } + } + set user [$win.f.bottom.pic.image cget -image] if { $user != displaypicture_std_none $user != displaypicture_std_self } { #made easy for if we would change the image names @@ -3245,7 +3263,7 @@ #change nick $accnt add command -label [trans changenick]... -command cmsn_change_name -state disabled #change dp - $accnt add command -label [trans changedisplaypic]... -command pictureBrowser -state disabled + $accnt add command -label [trans changedisplaypic]... -command dpBrowser -state disabled #--- $accnt add separator #go to inbox @@ -7094,8 +7112,8 @@ } -proc dpBrowser {} { - global selected_path +proc dpBrowser { {target_user self } } { + global selected_path selected_image HOME package require dpbrowser @@ -7121,6 +7139,16 @@ #Sorts contacts set contactlist [lsort -dictionary $contact_list] + # Select current DP (custom or not) for target user + if { $target_user != self } { + if { [::abook::getContactData $target_user customdp] != } { + set image_name [::abook::getContactData $target_user customdp ] + } else { + set image_name [::abook::getContactData $target_user displaypicfile ] + } + set selected_path [file join $HOME displaypic cache [filenoext $image_name].png] + set selected_image [filenoext $selected_path].png + } # First column # @@ -7135,33 +7163,48 @@ #combobox to choose user which configures the widget with -user $user set combo $w.moredpstitle.combo - combobox::combobox $combo -highlightthickness 0 -width 22 -font splainf -exportselection true -command configuredpbrowser -editable false -bg #FF + combobox::combobox $combo -highlightthickness 0 -width 22 -font splainf -exportselection true -command configuredpbrowser $target_user -editable false -bg #FF $combo list delete 0 end $combo list insert end Select a contact: + foreach contact $contactlist { #put the name of the device in the widget $combo list insert end $contact + if {$contact == $target_user} { + set selection [expr [$combo list index end] - 1] + } } - catch {$combo select 0} + + # If we are choosing a custom DP for a contact, show his cache in the lower pane + if {$target_user == self} { + catch {$combo select 0} + set selected_user + } else { + catch {$combo select $selection} + set selected_user $target_user + } pack
Re: [Amsn-devel] [FEATURE] Custom Display Pictures
Cristofaro Del Prete wrote: Hi, I've just finished implementing custom display pictures, and I thought that, as is a new feature, it was better to post it here. This implementation of custom DP relies on the dpbrowser snit object, that was almost complete (I just addded some bits here and there) and that was already used in the contact properties screen. [...] BLING! I guess then _you_ could work at the preferences thingie :D lol bye ;) - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
Re: [Amsn-devel] [FEATURE] Custom Display Pictures
I'm very sorry... but, as according with Murphy's Law, the last bug is found always *after* the release... Here's a new patch including a little fix for a case I forgot. Cristofaro Del Prete ha scritto: Hi, I've just finished implementing custom display pictures, and I thought that, as is a new feature, it was better to post it here. This implementation of custom DP relies on the dpbrowser snit object, that was almost complete (I just addded some bits here and there) and that was already used in the contact properties screen. --- What's Done --- * Replaced all the calls to pictureBrowser with equivalent calls to dpBrowser * Added to the display picture's popup menu (in the chat window) the options to change/remove custom display pictures * Added ability to select image in dpbrowser * Generalized dpBrowser and related functions to work also with other contacts, not just with self user * Added controls in contact properties screen (settings tab) to change/remove custom display pictures * Marked with TODOs all the procedures related to picturebrowser for eventual removal --- What's Still To Do --- * Translate dpBrowser labels and buttons * Translate label in the properties screen * Translate new entries in display picture's popup menu Please comment my work, and make me know if you liked it. Index: automsg.tcl === --- automsg.tcl (revisione 7718) +++ automsg.tcl (copia locale) @@ -219,7 +219,7 @@ $path add separator $path add command -label [trans changenick]... -command cmsn_change_name - $path add command -label [trans changedisplaypic]... -command pictureBrowser + $path add command -label [trans changedisplaypic]... -command dpBrowser $path add command -label [trans editmyprofile]... -command ::hotmail::hotmail_profile Index: gui.tcl === --- gui.tcl (revisione 7718) +++ gui.tcl (copia locale) @@ -1764,8 +1764,26 @@ } #Load Change Display Picture window $win.picmenu add separator - $win.picmenu add command -label [trans changedisplaypic]... -command pictureBrowser + $win.picmenu add command -label [trans changedisplaypic]... -command dpBrowser + foreach user $users { + $win.picmenu add command -label [trans changecustomuserpic $user] \ +-command autoChangeCustomDp $user + } + #Section to remove custom display pictures + set first_one 0 + foreach user $users { + if {[::abook::getContactData $user customdp ] != } { +# The separator is added only if the section is really going to be draw +if {$first_one == 0} { + $win.picmenu add separator + set first_one 1 +} +$win.picmenu add command -label [trans removecustomuserpic $user] \ + -command autoRemoveCustomDp $user + } + } + set user [$win.f.bottom.pic.image cget -image] if { $user != displaypicture_std_none $user != displaypicture_std_self } { #made easy for if we would change the image names @@ -3245,7 +3263,7 @@ #change nick $accnt add command -label [trans changenick]... -command cmsn_change_name -state disabled #change dp - $accnt add command -label [trans changedisplaypic]... -command pictureBrowser -state disabled + $accnt add command -label [trans changedisplaypic]... -command dpBrowser -state disabled #--- $accnt add separator #go to inbox @@ -7094,8 +7112,8 @@ } -proc dpBrowser {} { - global selected_path +proc dpBrowser { {target_user self } } { + global selected_path selected_image HOME package require dpbrowser @@ -7121,6 +7139,18 @@ #Sorts contacts set contactlist [lsort -dictionary $contact_list] + # Select current DP (custom or not) for target user + if { $target_user != self } { + if { [::abook::getContactData $target_user customdp] != } { + set image_name [::abook::getContactData $target_user customdp ] + } else { + set image_name [::abook::getContactData $target_user displaypicfile ] + } + if {$image_name != } { + set selected_path [file join $HOME displaypic cache [filenoext $image_name].png] + set selected_image [filenoext $selected_path].png + } + } # First column # @@ -7135,33 +7165,52 @@ #combobox to choose user which configures the widget with -user $user set combo $w.moredpstitle.combo - combobox::combobox $combo -highlightthickness 0 -width 22 -font splainf -exportselection true -command configuredpbrowser -editable false -bg #FF + combobox::combobox $combo -highlightthickness 0 -width 22 -font splainf -exportselection true -command configuredpbrowser $target_user -editable false -bg #FF $combo list delete 0 end $combo list insert end Select a contact: + foreach contact $contactlist { #put the name of the device in the widget $combo list insert end $contact + if {$contact == $target_user} { + set selection [expr [$combo list index end] - 1] + } } - catch {$combo select 0}
Re: [Amsn-devel] [FEATURE] Custom Display Pictures
Heya :) I've been testing your patch and I've only got one issue with it. Even with the second patch when I choose the Change Display picture... option from the chatwindow, it doesn't default to my pictures.. I can choose my user without problem it would just be better to default to my pictures without asking the user. Any way off to bed. Thanks! On 4 Jan 2007, at 20:37, Cristofaro Del Prete wrote: I'm very sorry... but, as according with Murphy's Law, the last bug is found always *after* the release... Here's a new patch including a little fix for a case I forgot. Cristofaro Del Prete ha scritto: Hi, I've just finished implementing custom display pictures, and I thought that, as is a new feature, it was better to post it here. This implementation of custom DP relies on the dpbrowser snit object, that was almost complete (I just addded some bits here and there) and that was already used in the contact properties screen. --- What's Done --- * Replaced all the calls to pictureBrowser with equivalent calls to dpBrowser * Added to the display picture's popup menu (in the chat window) the options to change/remove custom display pictures * Added ability to select image in dpbrowser * Generalized dpBrowser and related functions to work also with other contacts, not just with self user * Added controls in contact properties screen (settings tab) to change/remove custom display pictures * Marked with TODOs all the procedures related to picturebrowser for eventual removal --- What's Still To Do --- * Translate dpBrowser labels and buttons * Translate label in the properties screen * Translate new entries in display picture's popup menu Please comment my work, and make me know if you liked it. Index: automsg.tcl === --- automsg.tcl (revisione 7718) +++ automsg.tcl (copia locale) @@ -219,7 +219,7 @@ $path add separator $path add command -label [trans changenick]... -command cmsn_change_name - $path add command -label [trans changedisplaypic]... -command pictureBrowser + $path add command -label [trans changedisplaypic]... -command dpBrowser $path add command -label [trans editmyprofile]... -command ::hotmail::hotmail_profile Index: gui.tcl === --- gui.tcl (revisione 7718) +++ gui.tcl (copia locale) @@ -1764,8 +1764,26 @@ } #Load Change Display Picture window $win.picmenu add separator - $win.picmenu add command -label [trans changedisplaypic]... - command pictureBrowser + $win.picmenu add command -label [trans changedisplaypic]... - command dpBrowser + foreach user $users { + $win.picmenu add command -label [trans changecustomuserpic $user] \ + -command autoChangeCustomDp $user + } + #Section to remove custom display pictures + set first_one 0 + foreach user $users { + if {[::abook::getContactData $user customdp ] != } { + # The separator is added only if the section is really going to be draw + if {$first_one == 0} { + $win.picmenu add separator + set first_one 1 + } + $win.picmenu add command -label [trans removecustomuserpic $user] \ + -command autoRemoveCustomDp $user + } + } + set user [$win.f.bottom.pic.image cget -image] if { $user != displaypicture_std_none $user != displaypicture_std_self } { #made easy for if we would change the image names @@ -3245,7 +3263,7 @@ #change nick $accnt add command -label [trans changenick]... -command cmsn_change_name -state disabled #change dp - $accnt add command -label [trans changedisplaypic]... -command pictureBrowser -state disabled + $accnt add command -label [trans changedisplaypic]... -command dpBrowser -state disabled #--- $accnt add separator #go to inbox @@ -7094,8 +7112,8 @@ } -proc dpBrowser {} { - global selected_path +proc dpBrowser { {target_user self } } { + global selected_path selected_image HOME package require dpbrowser @@ -7121,6 +7139,18 @@ #Sorts contacts set contactlist [lsort -dictionary $contact_list] + # Select current DP (custom or not) for target user + if { $target_user != self } { + if { [::abook::getContactData $target_user customdp] != } { + set image_name
Re: [Amsn-devel] [FEATURE] Custom Display Pictures
I can't properly understand your issue. From your message appears that you have to select your user in the lower pane to access your display pictures; but your display pictures should appear in the upper pane, as the lower one is for the cached display pictures of the other contacts. Maybe you have your own account between your contacts? This could explain it. P.S.: I forgot adding the default display pictures in the upper pane; I'll send a third patch ASAP. Tom Hennigan ha scritto: Heya :) I've been testing your patch and I've only got one issue with it. Even with the second patch when I choose the Change Display picture... option from the chatwindow, it doesn't default to my pictures.. I can choose my user without problem it would just be better to default to my pictures without asking the user. Any way off to bed. Thanks! - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel
Re: [Amsn-devel] [FEATURE] Custom Display Pictures
Sorry this was my mistake not yours I was tired. I didn't realize that the testing profile I was using didn't have any display pictures set for it, it only had the cache.. Sorry my fault!! I can't find any other issues (apart from the default dps are missing, but you know about this one :-) ).. On 5 Jan 2007, at 01:13, Cristofaro Del Prete wrote: I can't properly understand your issue. From your message appears that you have to select your user in the lower pane to access your display pictures; but your display pictures should appear in the upper pane, as the lower one is for the cached display pictures of the other contacts. Maybe you have your own account between your contacts? This could explain it. P.S.: I forgot adding the default display pictures in the upper pane; I'll send a third patch ASAP. Tom Hennigan ha scritto: Heya :) I've been testing your patch and I've only got one issue with it. Even with the second patch when I choose the Change Display picture... option from the chatwindow, it doesn't default to my pictures.. I can choose my user without problem it would just be better to default to my pictures without asking the user. Any way off to bed. Thanks! -- --- 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel - 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.phpp=sourceforgeCID=DEVDEV ___ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel