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: refactoring: build display status bar based on wx.StatusBar widget #1646

Conversation

lindakarlovska
Copy link
Contributor

@lindakarlovska lindakarlovska commented Jun 15, 2021

This PR redesigning the form of display map status bar implementation.
It was originally created directly using CreateStatusBar function, which is, however, directly connected to the wx.Frame widget.
For further implementation of the SingleLayout, we need to replace MapFrame widget by MapPanel widget.
MapPanel widget does not support CreateStatusBar function.

Reimplemented status bar in a Map Display for a better context:
Map Display 1_024

Original status bar:
Map Display 1_023

@lindakarlovska lindakarlovska added GUI wxGUI related gsoc Reserved for Google Summer of Code student(s) labels Jun 15, 2021
@lindakarlovska lindakarlovska marked this pull request as draft June 15, 2021 15:42
@lindakarlovska lindakarlovska marked this pull request as ready for review June 15, 2021 16:09
@petrasovaa petrasovaa added this to In progress in Single Window Layout GUI via automation Jun 15, 2021
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.

When you right click on map display and select Hide statusbar, it's not working because the pane itself is not hidden. Currently the hiding/showing is in SbManager, but it may be better to keep SbManager for managing the content and the hiding/showing could be done by the frame directly (it knows about the pane unlike the SbManager). So create ShowStatusbar and IsStatusbarShown functions in MapFrame that show/hide the pane.

gui/wxpython/mapdisp/frame.py Outdated Show resolved Hide resolved
gui/wxpython/mapdisp/frame.py Show resolved Hide resolved
gui/wxpython/mapdisp/frame.py Outdated Show resolved Hide resolved
@lindakarlovska
Copy link
Contributor Author

lindakarlovska commented Jun 16, 2021

@petrasovaa Not sure why there are these slant stripes now:
Výstřižek

I first thought it is something related to the pane resizing but it looks more like related to the whole frame... (it disappears when Map Window is maximized). I noticed we have the same stripes in the bottom of the mainframe window as well. Do you have any suggestion about that?

Otherwise, the appearance is the same as originally was.

gui/wxpython/mapdisp/frame.py Outdated Show resolved Hide resolved
@petrasovaa
Copy link
Contributor

@petrasovaa Not sure why there are these slant stripes now:
Výstřižek

I first thought it is something related to the pane resizing but it looks more like related to the whole frame... (it disappears when Map Window is maximized). I noticed we have the same stripes in the bottom of the mainframe window as well. Do you have any suggestion about that?

I noticed it but I am not sure either. It's probably ok.

@petrasovaa petrasovaa merged commit c48a2dd into OSGeo:master Jun 16, 2021
Single Window Layout GUI automation moved this from In progress to Done Jun 16, 2021
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 16, 2021
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 17, 2021
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 17, 2021
* develop:
  wxGUI/map display: manage wx.StatusBar widget by AUI (OSGeo#1646)
HuidaeCho pushed a commit to HuidaeCho/grass that referenced this pull request Jun 19, 2021
Needed for single layout, map display will not be always a wx.frame
@neteler neteler added this to the 8.0.0 milestone Dec 9, 2021
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
Needed for single layout, map display will not be always a wx.frame
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request May 9, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request May 9, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request May 21, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request May 21, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 3, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 3, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 17, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 17, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 17, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 17, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 27, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jun 27, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 2, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 2, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 10, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 10, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 31, 2024
Needed for single layout, map display will not be always a wx.frame
a0x8o added a commit to a0x8o/grass that referenced this pull request Jul 31, 2024
Needed for single layout, map display will not be always a wx.frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gsoc Reserved for Google Summer of Code student(s) GUI wxGUI related
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants