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


| Public Member Functions | |
| def | __init__ | 
| def | Update | 
| def | OnChangeMapScale | 
| Map scale changed by user.  More... | |
|  Public Member Functions inherited from statusbar.SbItem | |
| def | __init__ | 
| def | Show | 
| Invokes showing of underlying widget.  More... | |
| def | Hide | 
| def | SetValue | 
| def | GetValue | 
| def | GetPosition | 
| def | GetWidget | 
| Returns underlaying winget.  More... | |
| def | Update | 
| Called when statusbar action is activated (e.g.  More... | |
| Data Fields | |
| name | |
| label | |
| widget | |
| lastMapScale | |
|  Data Fields inherited from statusbar.SbItem | |
| mapFrame | |
| statusbar | |
| position | |
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 | |||
| ) | 
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(), model.ModelData.SetValue(), and dialogs.TextEntryDialog.SetValue().
| def statusbar.SbMapScale.Update | ( | self | ) | 
Definition at line 507 of file statusbar.py.
References statusbar.SbMapScale.lastMapScale, widgets.FloatSlider.SetValue(), statusbar.SbItem.SetValue(), model.ModelData.SetValue(), dialogs.TextEntryDialog.SetValue(), and statusbar.SbItem.Show().
Referenced by wizard.DatumPage.OnDText(), colorrules.VectorColorTable.OnLayerSelection(), manager.GroupPage.OnMkGroup(), and mapwindow.BufferedWindow.TextBounds().
| statusbar.SbMapScale.label | 
Definition at line 483 of file statusbar.py.
Referenced by python.task.grassTask.get_description().
| statusbar.SbMapScale.lastMapScale | 
Definition at line 505 of file statusbar.py.
Referenced by statusbar.SbMapScale.OnChangeMapScale(), and statusbar.SbMapScale.Update().
| statusbar.SbMapScale.name | 
Definition at line 482 of file statusbar.py.
Referenced by python.task.grassTask.get_cmd(), and python.task.grassTask.get_name().
| statusbar.SbMapScale.widget | 
Definition at line 485 of file statusbar.py.
Referenced by statusbar.SbItem.GetWidget().