GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
statusbar.SbItem Class Reference

Base class for statusbar items. More...

Inheritance diagram for statusbar.SbItem:

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
 

Detailed Description

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).

Todo:
consider externalizing position (see SbProgress use in SbManager)

Definition at line 280 of file statusbar.py.

Constructor & Destructor Documentation

def statusbar.SbItem.__init__ (   self,
  mapframe,
  statusbar,
  position = 0 
)
Parameters
mapframeinstance of class with MapFrame interface
statusbarstatusbar instance (wx.Statusbar)
positionitem position in statusbar
Todo:
rewrite Update also in derived classes to take in account item position

Definition at line 293 of file statusbar.py.

Member Function Documentation

def statusbar.SbItem.GetPosition (   self)

Definition at line 323 of file statusbar.py.

References statusbar.SbItem.position.

def statusbar.SbItem.GetValue (   self)
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().

Field Documentation

statusbar.SbItem.mapFrame

Definition at line 302 of file statusbar.py.

statusbar.SbItem.position
statusbar.SbItem.statusbar

Definition at line 303 of file statusbar.py.


The documentation for this class was generated from the following file: