[Qgis-community-team] Re: Python plugins and C++ plugins: using different terms (was: Re: [Qgis-user] coordinates in both projected and geographic systems)

Tim Sutton tim at linfiniti.com
Thu Aug 7 04:26:41 EDT 2008


Hi

2008/8/7 Agustin Lobo <aloboaleu at gmail.com>:
> Thanks again.
>
> The following suggestion might seem just a minor question of nomenclature
> and apologize if you find it an unnecessary complication,
> but I think it's important for the user not to be confused:
>
> "Within QGis documentation, the term plugin should be restricted to python
> plugins. We should  find a different term for C++ plugins"

Well they are both plugins, they both follow the same same
programmatic interface so it is correct to call them both plugins. In
an ideal world the user should be unaware of differences between
plugins created in python and those created in C++. The real issue is
of course how plugins are distributed. If it were possible to
distribute them in the same way this would be a non issue, but C++
plugins require per platform compilation (and gain some advantages in
speed and ease of inclusion in the core QGIS product). Python plugins
on the other hand are (at the moment anyway) more complicated to ship
with the core QGIS but have the advantage of being OS independent and
needing no precompilation.


>
> I understand this can be odd and unnecessary for developers, but from
> the operational point of view of a user, a plugin is something you install
> using the plugin installer. C++ plugins (i.e., eVIS) require
> a different procedure, we should refer to them with a different
> term and activate/desactivate them using a different tab in the menu. May be
> we could call C++ plugins "extensions"? Perhaps there are better terms, but
> making the distinction is important. Another option is calling both of them
> "extensions" and then "python plugins" and "C++ plugins". We would have a
> "Python Plugin Installer" and an "Extensions Manager" (where we can
> activate/desactivate both types, as currently done).
>

Actually we have a plugin *manager* that lets you enable and disable
selected plugins (C++ or python it doesnt matter which) and a plugin
installer (which downloads plugins and makes them available to the
plugin manager). I fully agree we need to take some effort to make
this distinction clearer. Borys could probably help a little with this
too, and perhaps the documentation folks could include a redacted
version of  my first paragraph above somewhere in the user guide too?

Regards

Tim

> Agus
>
>
> Tim Sutton wrote:
>> Hi
>>
>>
>>
>> 2008/8/6 Agustin Lobo <Agustin.Lobo at ija.csic.es>:
>>> Thanks, this is even more than I was asking for, as the user
>>> can copy the coordinates to the clipboard, which is very useful as well.
>>
>> Good. I combined several other folks requests and trac enhancment
>> requests into it. I'm making a few more tweaks to it still.
>>
>>> If this is in svn trunk I understand that this feature will
>>> be in the core of QGIS, not a plugin. If it's a plugin, should not be
>>> installed through the plugin manager?
>>
>> Its like this:
>>
>> - there are two kinds of plugins C++ and Python
>> - there are two ways to distribute plugins - as part of the core QGIS
>> (will be in each type binary release we make - win/mac/linux /etc), or
>> downloaded via the python plugin installer.
>>
>> The coordinate capture plugin is a C++ plugin which will be
>> distributed with core QGIS code. You will need to enable it from the
>> plugin manager, but there is no need to install it through the plugin
>> installer since it will come preinstalled when you get QGIS 1.0. If
>> you are building from source using SVN trunk, simply open the plugin
>> manager and tick the Coordinate Capture entry in the plugins list.
>> Hope that explanation wasnt too confusing...
>>
>> Regards
>>
>> Tim
>>
>>
>>> Agus
>>>
>>> Tim Sutton wrote:
>>>> Hi
>>>>
>>>> I wrote a little plugin that lets you click on the map and copy the
>>>> coordinates to the clipboard. If you are using on the fly projection
>>>> it will display coordinates both in lat/lon and in the map canvas
>>>> projection.
>>>>
>>>> http://www.flickr.com/photos/timlinux/2738766800/
>>>> http://www.flickr.com/photos/timlinux/2738766796/
>>>>
>>>> Probably doesnt address all the needs expressed in this thread but
>>>> hopefully it will take you some way there. Plugin is in SVN trunk and
>>>> will be in QGIS 1.0.0
>>>>
>>>> Regards
>>>>
>>>> Tim
>
> --
> Dr. Agustin Lobo
> Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
> LLuis Sole Sabaris s/n
> 08028 Barcelona
> Spain
> Tel. 34 934095410
> Fax. 34 934110012
> email: Agustin.Lobo at ija.csic.es
> http://www.ija.csic.es/gt/obster
>



-- 
Tim Sutton
QGIS Project Steering Committee Member - Release Manager
Visit http://qgis.org for a great open source GIS
Blog: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net


More information about the Qgis-community-team mailing list