Hi Richard,

On Jan 14, 2008 9:20 AM, Richard Duivenvoorde <[EMAIL PROTECTED]> wrote:
> Questions:
> - is there a difference between these two 'modes', in term of names
> (tools vs wizard or so)? How do you call these?

No, there's really no difference between the plugins. Plugins usually
create some menu items in plugins menu and add some icons to toolbar.
Then from menu or from toolbar you can activate some function of it.
And that could be anything - e.g. activation of a tool, showing a
configuration dialog or a wizard

> - I was not able to 'enable' my plugin button, aka: make it a little
> darker so you know that you're still in the xyz-mode. Can somebody point
> me to such an example, or are plugins not supposed to work like this?

I don't get what you mean. Could you explain it?

> Idea:
> Is it an idea for one of the (python)-guru's to make two plugin
> annotated stubbs and add it to the pluginrepository, which can be used
> by 'normal' people to implement their functionality.
> I'm thinking of two plugins: one for this 'wizard'-like plugins and one
> for this 'state'-like plugin.
> This plugins do nothing more then enable certain (click) events in the
> map and do a print out (though these print out lines can't be seen in
> windows?). Actually in line with this wiki article:
> http://wiki.qgis.org/qgiswiki/DevelopingPluginsWithPython, but adding
> some more events, and maybe some simple qt dialogs.

Actually, using plugin installer you can get already to some very
simple plugins. Copyright plugin is an example of plugin which shows
you a dialog for settings, Aaron's recent Raster info plugin is an
example which uses map canvas (and its own map tool).

But definitely there could be a simple example plugin in QGIS sources
that would be ready to be used. Volunteers? :)

> A user which knows a few words of python can then copy the plugin stubb,
> and add some simple code for example in the 'mapClick'handler, without
> knowing to much about the Qt-event handling system. If needed this can
> be learned later.

Well, but you still must know Qt to do anything more complicated than
just a hello world plugin.

Martin
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user

Reply via email to