Hi,

Today we had an interesting discussion on the channel triggered by a bug
making the Perl::Tidy plugin crash (fixed). Being pretty short on time,
I write the ideas down in case someone has the "tuits".

At the moment Padre plugins have their own configuration menu (or none
at all). A downside, from an UI point of view, is that the user has to
cross around unrelated parts of the menu to change settings. To
aggravate things, each plugin has it's own style of dialogs for the
preferences (sorry to say, often ugly). Not good.

So, the idea would be adding the preferences of plugins into the global
preference window (much like other IDEs do). Specifically, I was
thinking in the lines of adding a Plugins entry to the preferences UI
with a subentry for plugins that register their preferences. This is an
example: http://claudio.ulyssis.be/plugins_in_preferences.jpg

The tricky part, is that we need to expand the Plugin API:

Quoting Alias on this:
13:23   Alias   hrm?
13:24           The problem right now is that the entire configuration 
definition
needs to be complete early, before the plugins are loaded
13:24           You can't add extra configuration properties after startup
13:24           And plugins load after startup
13:24           There's other issues with it too

[...]
13:34           you see a way around that?
13:35   Alias   Lazy loading, partial reloading...
13:35           There is one fairly easy way
13:35           Don't integrate into the main configuration subsystem at all
13:35           Hold your own config independantly
13:35   El_Che  just a composite dialog?
13:35   Alias   ya

And further:
13:37   Alias   Plugins do have a few assets to build on
13:38           They have their own private directories
13:38           So if they want to store their own configuration, they have
somewhere to put it
13:38   El_Che  plugin_directory_share
13:38   Alias   right
13:38           So put a configuration file in there, have the plugin supply a
Wx::Panel
13:38   Alias   Which has to support ->save and ->cancel
13:39           plugin_preferences_panel
13:39           Or something


C.

_______________________________________________
Padre-dev mailing list
Padre-dev@perlide.org
http://mail.perlide.org/mailman/listinfo/padre-dev

Reply via email to