GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Base class for statusbar items. More...
Public Member Functions | |
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 | |
mapFrame | |
statusbar | |
position | |
Base class for statusbar items.
Each item represents functionality (or action) controlled by statusbar and related to MapFrame. One item is usually connected with one widget but it is not necessary. Item can represent property (depends on manager). Items are not widgets but can provide interface to them. Items usually has requirements to MapFrame instance (specified as MapFrame.methodname or MapWindow.methodname).
Definition at line 280 of file statusbar.py.
def statusbar.SbItem.__init__ | ( | self, | |
mapframe, | |||
statusbar, | |||
position = 0 |
|||
) |
mapframe | instance of class with MapFrame interface |
statusbar | statusbar instance (wx.Statusbar) |
position | item position in statusbar |
Definition at line 293 of file statusbar.py.
def statusbar.SbItem.GetPosition | ( | self | ) |
Definition at line 323 of file statusbar.py.
References statusbar.SbItem.position.
def statusbar.SbItem.GetValue | ( | self | ) |
Definition at line 320 of file statusbar.py.
Referenced by statusbar.SbGoTo.OnGoTo(), statusbar.SbGoToGCP.OnGoToGCP(), statusbar.SbRender.OnToggleRender(), and statusbar.SbTextItem.Show().
def statusbar.SbItem.GetWidget | ( | self | ) |
Returns underlaying winget.
Definition at line 326 of file statusbar.py.
References statusbar.SbItem.Show(), statusbar.SbRender.widget, statusbar.SbShowRegion.widget, statusbar.SbAlignExtent.widget, statusbar.SbResolution.widget, statusbar.SbMapScale.widget, statusbar.SbGoTo.widget, statusbar.SbProjection.widget, statusbar.SbMask.widget, statusbar.SbProgress.widget, and statusbar.SbGoToGCP.widget.
Referenced by statusbar.SbMapScale.OnChangeMapScale(), and statusbar.SbGoToGCP.OnGoToGCP().
def statusbar.SbItem.Hide | ( | self | ) |
Definition at line 314 of file statusbar.py.
Referenced by dialogs.ModelSearchDialog.OnCancel(), forms.TaskFrame.OnCancel(), preferences.PreferencesBaseDialog.OnCloseWindow(), preferences.PropertiesDialog.OnCloseWindow(), dialogs.DxfImportDialog.OnRun(), and statusbar.SbMask.Update().
def statusbar.SbItem.SetValue | ( | self, | |
value | |||
) |
Definition at line 317 of file statusbar.py.
Referenced by gselect.SubGroupSelect.Insert(), gselect.ColumnSelect.InsertColumns(), gselect.ColumnSelect.InsertTableColumns(), gselect.TableSelect.InsertTables(), statusbar.SbMapScale.OnChangeMapScale(), statusbar.SbGoTo.OnGoTo(), prompt.TextCtrlAutoComplete.OnKeyDown(), gselect.LayerSelect.Reset(), statusbar.SbGoTo.SetCenter(), statusbar.SbDisplayGeometry.Show(), statusbar.SbCoordinates.Show(), statusbar.SbRegionExtent.Show(), statusbar.SbRMSError.Show(), statusbar.SbMapScale.Update(), and gselect.ProjSelect.UpdateItems().
def statusbar.SbItem.Show | ( | self | ) |
Invokes showing of underlying widget.
In derived classes it can do what is appropriate for it, e.g. showing text on statusbar (only).
Definition at line 306 of file statusbar.py.
Referenced by statusbar.SbItem.GetWidget(), statusbar.SbRender.Update(), statusbar.SbMapScale.Update(), statusbar.SbGoTo.Update(), statusbar.SbProjection.Update(), statusbar.SbMask.Update(), and statusbar.SbGoToGCP.Update().
def statusbar.SbItem.Update | ( | self | ) |
Called when statusbar action is activated (e.g.
through wx.Choice).
Definition at line 342 of file statusbar.py.
References statusbar.SbItem._update().
Referenced by wizard.DatumPage.OnDText(), colorrules.VectorColorTable.OnLayerSelection(), manager.GroupPage.OnMkGroup(), and mapwindow.BufferedWindow.TextBounds().
statusbar.SbItem.mapFrame |
Definition at line 302 of file statusbar.py.
statusbar.SbItem.position |
Definition at line 304 of file statusbar.py.
Referenced by statusbar.SbItem.GetPosition(), statusbar.SbTextItem.Hide(), and statusbar.SbTextItem.Show().
statusbar.SbItem.statusbar |
Definition at line 303 of file statusbar.py.