[GRASS-dev] [GRASS GIS] #2749: Integrate 'Change mapset' dialog in manager toolbar

#2749: Integrate 'Change mapset' dialog in manager toolbar
---------------------------------------------+-------------------------
Reporter: mwortmann | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Keywords: mapset, toolbars, layer manager | CPU: Unspecified
Platform: Unspecified |
---------------------------------------------+-------------------------
Wouldn't the simple (Settings > GRASS working environment > ) Change
mapset dialog be a lot more useful in the Layer Manager toolbar? I'm not
sure how many people are actually using the dialog, but I'm sure most use
the commandline to do this simple change. I always thought typing
'g.mapset xyz' (plus maybe g.mapset -l) or going to the dialog, seems too
much for such a simple thing. The simple dropdown without the Ok button
would be quick and easy. Plus it could show the current mapset which is
somewhat missing in the Layer Manager.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749&gt;
GRASS GIS <https://grass.osgeo.org>

#2749: Integrate 'Change mapset' dialog in manager toolbar
--------------------------+---------------------------------------------
  Reporter: mwortmann | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: mapset, toolbars, layer manager
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------------

Comment (by annakrat):

Replying to [ticket:2749 mwortmann]:
> Wouldn't the simple (Settings > GRASS working environment > ) Change
mapset dialog be a lot more useful in the Layer Manager toolbar? I'm not
sure how many people are actually using the dialog, but I'm sure most use
the commandline to do this simple change. I

I use the dialog quite often when I don't remember the mapset names.

>always thought typing 'g.mapset xyz' (plus maybe g.mapset -l) or going to
the dialog, seems too much for such a simple thing. The simple dropdown
without the Ok button would be quick and easy. Plus it could show the
current mapset which is somewhat missing in the Layer Manager.

I mostly agree but I am not sure where to put it, there is already a lot
of things in the toolbar, so we would have to start a new row of toolbars?
Maybe the data catalog tab would be an option?

BTW, on Ubuntu, you can type Alt and then 'Change ...' and launch the
dialog in this way, too.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2749: Integrate 'Change mapset' dialog in manager toolbar
--------------------------+---------------------------------------------
  Reporter: mwortmann | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: mapset, toolbars, layer manager
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------------

Comment (by mwortmann):

I had a little fiddle and copying the approach from the mapdisplay
toolbox, adding the following lines to the LMWorkspaceToolbar __init_
method gives you an impression how it would look like:

{{{
         # add mapset selector
         self.combo = MapsetSelect(parent = self, id = wx.ID_ANY, size =
(150, -1))
         self.comboid = self.AddControl(self.combo)
         self.parent.Bind(wx.EVT_COMBOBOX, self.OnChangeMapset,
self.comboid)
}}}

I havent found a working way to for the self.OnChangeMapset method though.
Regarding the size, I have two rows and neither of them is filled. Adding
the 150px select combo fills out the top row nicely. I'm running the g.gui
from a remote machine, so the Ubuntu shortcut doesnt work for me:$

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

On 18-09-15 14:47, GRASS GIS wrote:

#2749: Integrate 'Change mapset' dialog in manager toolbar
--------------------------+---------------------------------------------
   Reporter: mwortmann | Owner: grass-dev@…
       Type: enhancement | Status: new
   Priority: normal | Milestone: 7.1.0
  Component: wxGUI | Version: unspecified
Resolution: | Keywords: mapset, toolbars, layer manager
        CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------------

Comment (by annakrat):

  Replying to [ticket:2749 mwortmann]:
  > Wouldn't the simple (Settings > GRASS working environment > ) Change
  mapset dialog be a lot more useful in the Layer Manager toolbar? I'm not
  sure how many people are actually using the dialog, but I'm sure most use
  the commandline to do this simple change. I

  I use the dialog quite often when I don't remember the mapset names.

+1 I use it a lot as well

  >always thought typing 'g.mapset xyz' (plus maybe g.mapset -l) or going to
  the dialog, seems too much for such a simple thing. The simple dropdown
  without the Ok button would be quick and easy. Plus it could show the
  current mapset which is somewhat missing in the Layer Manager.

  I mostly agree but I am not sure where to put it, there is already a lot
  of things in the toolbar, so we would have to start a new row of toolbars?
  Maybe the data catalog tab would be an option?

I think the number of buttons is fairly limited, one more wouldn't be a problem i.m.h.o. But a context menu when right clicking on a map set in the data catalog, with the option to change to that map set may even be better,

  BTW, on Ubuntu, you can type Alt and then 'Change ...' and launch the
  dialog in this way, too.

I totally forgot about that, thanks for the reminder :slight_smile:

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

#2749: Integrate 'Change mapset' dialog in manager toolbar
--------------------------+---------------------------------------------
  Reporter: mwortmann | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: mapset, toolbars, layer manager
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------------

Comment (by wenzeslaus):

Now I see what you mean. These combos in the toolbars mostly work but in
general are best avoided, so I wouldn't add another one if not necessary.
The Mapset name is in the Map Display window title, although in a cryptic
way.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#2749: Integrate 'Change mapset' dialog in manager toolbar
--------------------------+---------------------------------------------
  Reporter: mwortmann | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: mapset, toolbars, layer manager
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------------

Comment (by mwortmann):

I agree that in the map display toolbox the combo box is a bit awkward,
but I think for a potentially long list of mapsets this would be the most
convenient way to change them. Putting a mapset changer a bit more
prominent into the gui would also help newbies come to terms with the
mapset idea and give them an incentive to use them. I know far too many
people starting with grass that just dump all their maps into PERMANENT.

Re displaying the current mapset: The Map Display title doesnt update when
you actually change the mapset, which makes it more confusing than helpful
sometimes. I tweak my commandline prompter in my .grass.bashrc two have a
constant reminder of where I am, which also updates. But there is nothing
like that in the gui.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#2749: Integrate 'Change mapset' dialog in manager toolbar
--------------------------+---------------------------------------------
  Reporter: mwortmann | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: mapset, toolbars, layer manager
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------------

Comment (by wenzeslaus):

Replying to [comment:4 mwortmann]:

> Re displaying the current mapset: The Map Display title doesnt update
when you actually change the mapset, which makes it more confusing than
helpful sometimes.

This is a clear bug or imperfection, please open another report for that.
You can add your suggestion of formatting as well, unless you thing that
the current one is ok.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>