Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI/mapdisp: it is also possible to remove the MASK interactively #1176

Merged

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented Dec 14, 2020

It is also possible to remove the MASK interactively (left mouse click on the button MASK widget inside statusbar).

Current behavior:

wxgui_mapdisp_mask_def

Suggested behavior:

wxgui_mapdisp_mask_exp

@tmszi tmszi self-assigned this Dec 14, 2020
@tmszi tmszi added enhancement New feature or request GUI wxGUI related labels Dec 14, 2020
@tmszi tmszi force-pushed the wxgui-mapdisp-remove-mask-interactively branch from af6c4c3 to 653ee28 Compare August 27, 2021 16:49
@tmszi tmszi requested a review from petrasovaa August 27, 2021 17:09
Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not completely sure if making it a button is super intuitive, but probably better than current situation. So I think it is fine, my concern is we may need to change this in the future to better work with single-window layout. But we don't have a clear plan on simplifying the statusbar yet, so this PR may be fine.
I would merge it though after branching GRASS 8 release branch.


def __init__(self, mapframe, statusbar, position=0):
SbItem.__init__(self, mapframe, statusbar, position)
self._mapframe = mapframe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there already self.mapframe in SbItem constructor?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's there (in base class), I removed this redundant line.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are still calling self._mapframe.OnRender...

Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs self._mapframe -> self.mapFrame

@tmszi tmszi force-pushed the wxgui-mapdisp-remove-mask-interactively branch from 1970d81 to 6ca6f70 Compare November 30, 2021 15:40
@tmszi
Copy link
Member Author

tmszi commented Nov 30, 2021

Needs self._mapframe -> self.mapFrame

You are right. I've already fixed it.

@petrasovaa petrasovaa merged commit 596f2b0 into OSGeo:main Dec 7, 2021
@tmszi tmszi deleted the wxgui-mapdisp-remove-mask-interactively branch December 7, 2021 21:20
@neteler neteler added this to the 8.0.1 milestone Dec 9, 2021
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
…SGeo#1176)

With left mouse click on the MASK button widget inside statusbar.
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
…SGeo#1176)

With left mouse click on the MASK button widget inside statusbar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GUI wxGUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants