[GRASS-user] Changing menudata.xml to include an direct processing

Greetings

I’m making some addaptions in menudata.xml in order to have a few functions available more rapidly (for me). I wanted to have a menu-item (I know how to add it) that runs directly without opening any panel. This would mean that all parameterization would be in the xml. Is this possible?

Greetings

I’m making some addaptions in menudata.xml in order to have a few functions available more rapidly (for me). I wanted to have a menu-item (I know how to add it) that runs directly without opening any panel. This would mean that all parameterization would be in the xml. Is this possible?

Thank you
Franz

Hi,

2010/6/9 Franz Schiller <franzschiller1975@gmail.com>:

Greetings

I'm making some addaptions in menudata.xml in order to have a few functions
available more rapidly (for me). I wanted to have a menu-item (I know how to
add it) that runs directly without opening any panel. This would mean that
all parameterization would be in the xml. Is this possible?

yes, it's possible in 6.5+. In 6.4 it will be probably not working.

      <menuitem>
        <label>Info elevation map</label>
        <help>Show menudata of elevation raster map</help>
              <handler>OnMenuCmd</handler>
        <command>r.info map=elevation</command>
      </menuitem>

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

Hi Martin
the OnMenuCmd it doesn’t exist so I used self.OnMenuCMD and the r.info frame module appeared with inserted parameters but it was not possible to avoid the appearence of frames module. Has anyone has a suggestion regarding this?

Thanks
Franz

On Fri, Jun 18, 2010 at 1:35 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2010/6/9 Franz Schiller <franzschiller1975@gmail.com>:

Greetings

I’m making some addaptions in menudata.xml in order to have a few functions
available more rapidly (for me). I wanted to have a menu-item (I know how to
add it) that runs directly without opening any panel. This would mean that
all parameterization would be in the xml. Is this possible?

yes, it’s possible in 6.5+. In 6.4 it will be probably not working.

Info elevation map Show menudata of elevation raster map OnMenuCmd [r.info](http://r.info) map=elevation

Martin


Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

Hi
Martin, it’s not possible in GRASS6.4.0RC6. It still opens the module-panel and parameterizes it. has anyone ever tried to have a module that runs, from the menu, without opening module-panel?

Thanks

Best regards,
Franz

On Fri, Jun 18, 2010 at 1:35 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2010/6/9 Franz Schiller <franzschiller1975@gmail.com>:

Greetings

I’m making some addaptions in menudata.xml in order to have a few functions
available more rapidly (for me). I wanted to have a menu-item (I know how to
add it) that runs directly without opening any panel. This would mean that
all parameterization would be in the xml. Is this possible?

yes, it’s possible in 6.5+. In 6.4 it will be probably not working.

Info elevation map Show menudata of elevation raster map OnMenuCmd [r.info](http://r.info) map=elevation

Martin


Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa