GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
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.
def Hide
def SetValue
def GetValue
def GetPosition
def GetWidget
 Returns underlaying winget.
def Update
 Called when statusbar action is activated (e.g.

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

Reimplemented in statusbar.SbRMSError, statusbar.SbGoToGCP, statusbar.SbProgress, statusbar.SbCompRegionExtent, statusbar.SbRegionExtent, statusbar.SbCoordinates, statusbar.SbDisplayGeometry, statusbar.SbTextItem, statusbar.SbMask, statusbar.SbProjection, statusbar.SbGoTo, statusbar.SbMapScale, statusbar.SbResolution, statusbar.SbAlignExtent, statusbar.SbShowRegion, and statusbar.SbRender.

Definition at line 293 of file statusbar.py.


Member Function Documentation

Definition at line 323 of file statusbar.py.

References statusbar.SbItem.position.

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

Reimplemented in statusbar.SbRMSError, statusbar.SbRegionExtent, statusbar.SbCoordinates, statusbar.SbDisplayGeometry, and statusbar.SbTextItem.

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


Field Documentation

Definition at line 302 of file statusbar.py.

Definition at line 303 of file statusbar.py.


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