|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
Editable combobox to get/set current map scale. More...


Public Member Functions | |
| def | __init__ |
| def | Update |
| Called when statusbar action is activated (e.g. | |
| def | OnChangeMapScale |
| Map scale changed by user. | |
Data Fields | |
| name | |
| label | |
| widget | |
| lastMapScale | |
Editable combobox to get/set current map scale.
Requires MapFrame.GetMapScale, MapFrame.SetMapScale and MapFrame.GetWindow (and GetWindow().UpdateMap()).
Definition at line 474 of file statusbar.py.
| def statusbar.SbMapScale.__init__ | ( | self, | |
| mapframe, | |||
| statusbar, | |||
position = 0 |
|||
| ) |
| mapframe | instance of class with MapFrame interface |
| statusbar | statusbar instance (wx.Statusbar) |
| position | item position in statusbar |
Reimplemented from statusbar.SbItem.
Definition at line 480 of file statusbar.py.
| def statusbar.SbMapScale.OnChangeMapScale | ( | self, | |
| event | |||
| ) |
Map scale changed by user.
Definition at line 521 of file statusbar.py.
References statusbar.SbItem.GetWidget(), statusbar.SbMapScale.lastMapScale, widgets.FloatSlider.SetValue(), statusbar.SbItem.SetValue(), and model.ModelData.SetValue().
| def statusbar.SbMapScale.Update | ( | self | ) |
Called when statusbar action is activated (e.g.
through wx.Choice).
Reimplemented from statusbar.SbItem.
Definition at line 507 of file statusbar.py.
References statusbar.SbMapScale.lastMapScale, widgets.FloatSlider.SetValue(), statusbar.SbItem.SetValue(), model.ModelData.SetValue(), and statusbar.SbItem.Show().
Referenced by wizard.DatumPage.OnDText(), colorrules.VectorColorTable.OnLayerSelection(), manager.GroupPage.OnMkGroup(), and mapwindow.BufferedWindow.TextBounds().
Definition at line 483 of file statusbar.py.
Referenced by python.task.grassTask.get_description().
Definition at line 505 of file statusbar.py.
Referenced by statusbar.SbMapScale.OnChangeMapScale(), and statusbar.SbMapScale.Update().
Definition at line 482 of file statusbar.py.
Referenced by python.task.grassTask.get_cmd(), and python.task.grassTask.get_name().
Definition at line 485 of file statusbar.py.
Referenced by statusbar.SbItem.GetWidget().