Hi,
2012/7/20 <svn_grass@osgeo.org>:
Author: annakrat
Date: 2012-07-20 07:01:33 -0700 (Fri, 20 Jul 2012)
New Revision: 52423
Modified:
grass/trunk/gui/wxpython/xml/menudata.xml
Log:
wxGUI/menudata: remove command name from menu when using custom dialog (not to confuse the user)
@@ -207,7 +208,6 @@
<help>Converts vector layers into a GRASS vector map using OGR.</help>
<keywords>vector,import</keywords>
<handler>OnImportOgrLayers</handler>
- <command>v.in.ogr</command>
</menuitem>
hm, after this change it will be not possible to find `v.in.ogr` in
Layer Manager's search tab (based on command name). On the other hand
the users probably would expect autogenerated dialog for v.in.ogr not
a real front-end. Anyway I would suggest to keep the `command` tag in
this case to make them searchable via Layer Manager search engine
(key: command).
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
On Fri, Jul 20, 2012 at 4:17 PM, Martin Landa <landa.martin@gmail.com> wrote:
Hi,
2012/7/20 <svn_grass@osgeo.org>:
Author: annakrat
Date: 2012-07-20 07:01:33 -0700 (Fri, 20 Jul 2012)
New Revision: 52423
Modified:
grass/trunk/gui/wxpython/xml/menudata.xml
Log:
wxGUI/menudata: remove command name from menu when using custom dialog (not to confuse the user)
@@ -207,7 +208,6 @@
<help>Converts vector layers into a GRASS vector map using OGR.</help>
<keywords>vector,import</keywords>
<handler>OnImportOgrLayers</handler>
- <command>v.in.ogr</command>
</menuitem>
hm, after this change it will be not possible to find `v.in.ogr` in
Layer Manager's search tab (based on command name). On the other hand
the users probably would expect autogenerated dialog for v.in.ogr not
a real front-end. Anyway I would suggest to keep the `command` tag in
this case to make them searchable via Layer Manager search engine
(key: command).
ok, I wasn't aware of that. I added instead a condition (on handler
name) in the menu.py
Anna
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa