2008/3/14, Jon A. Cruz <jon@...18...>:
On Mar 13, 2008, at 2:25 PM, Aubanel MONNIER wrote:
I agree with many of those remarks. 1/ How do I store many those presets ? 2/ Is there a combo widget with optional icons an rename-able fields ? 3/You are welcome to propose more meaningfull presets ;) 4/About the position in the toolbar, I started with buttons on the right, but they are hardly accessible, while I'm sure if we provide 4 to 7 meaningfull presets those will be use 99% of the time. And it's a bit against the workflow: a/ choose the closest preset b/ adjust the values if needed
Guess what? I've been doing coding to allow for a nice UI for just that sort of thing!
http://codewideopen.blogspot.com/2008/03/new-tablet-config.html
So we will need to coordinate on getting what you're working on playing nice with the tablet stuff I'm working on.
As far as widgets go, there are a few already. I added some based on GTK+ Actions so that they will flow from toolbar to overflow menu, etc. One example to look at is the "mode" on the tweak tool sub toolbar. Another is "Close gaps" on the paint bucket sub toolbar. In toolbox.cpp look for EgeSelectOneAction* act = ege_select_one_action_new( "TweakModeAction", _("Mode"), (""), NULL, GTK_TREE_MODEL(model) ); and EgeSelectOneAction* act2 = ege_select_one_action_new( "AutoGapAction", _("Close gaps"), (""), NULL, GTK_TREE_MODEL(model) );
Look at ege-select-one-action.h and the uses in the codebase of ege_select_one_action(). To flip from a set of side-by-side buttons to a single drop-down, a call to ege_select_one_action_set_appearance() is made feeding it "full, "compact", or "minimal".
As long as the settings are based on named actions, we will be able to use dynamic config and allow users to place things wherever they want on the toolbars and menus. :-)
OK, just committed something using this kind of code and making use of prefs so anyone can add sensible defaults to preferences-skeletton. Two questions I need to solve before going further: 1: Problem on init. Settings are positioned on the change signal. This cause problems on init if re-selecting the already selected profile. Is there some kind of /set/ signal instead of /change/ ? 2: Is there a way to display svg icons in the combo box along side the text ? (I'll read its value from a property /icon_id/ in configuration)