GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gui_modules.toolbars.MapToolbar Class Reference

Map Display toolbar. More...

Inheritance diagram for gui_modules.toolbars.MapToolbar:
Collaboration diagram for gui_modules.toolbars.MapToolbar:

Public Member Functions

def __init__
 Map Display constructor.
def OnSelectTool
 Select / enable tool available in tools list.
def ExitToolbars
def Enable2D
 Enable/Disable 2D display mode specific tools.
- Public Member Functions inherited from gui_modules.toolbars.AbstractToolbar
def __init__
def InitToolbar
 Initialize toolbar, add tools to the toolbar.
def CreateTool
 Add tool to the toolbar.
def EnableLongHelp
 Enable/disable long help.
def OnTool
 Tool selected.
def GetAction
 Get current action info.
def SelectDefault
 Select default tool.
def FixSize
 Fix toolbar width on Windows.
def Enable
 Enable defined tool.

Data Fields

 mapcontent
 toolId
 combo
 log.WriteCmdLog(_('3D view mode not available')) log.WriteWarning(_('Reason: s') % str(errorMsg)) log.WriteLog(_('Note that the wxGUI\'s 3D view mode is currently disabled ' 'on MS Windows (hopefully this will be fixed soon).
 comboid
 action
 defaultAction
- Data Fields inherited from gui_modules.toolbars.AbstractToolbar
 parent

Detailed Description

Map Display toolbar.

Definition at line 191 of file toolbars.py.


Constructor & Destructor Documentation

def gui_modules.toolbars.MapToolbar.__init__ (   self,
  parent,
  mapcontent 
)

Map Display constructor.

Parameters:
parentreference to MapFrame
mapcontentreference to render.Map (registred by MapFrame)

Definition at line 194 of file toolbars.py.


Member Function Documentation

def gui_modules.toolbars.MapToolbar.Enable2D (   self,
  enabled 
)

Enable/Disable 2D display mode specific tools.

Definition at line 338 of file toolbars.py.

Referenced by gui_modules.toolbars.MapToolbar.OnSelectTool().

def gui_modules.toolbars.MapToolbar.ExitToolbars (   self)

Definition at line 332 of file toolbars.py.

Referenced by gui_modules.toolbars.MapToolbar.OnSelectTool().

def gui_modules.toolbars.MapToolbar.OnSelectTool (   self,
  event 
)

Select / enable tool available in tools list.

Definition at line 312 of file toolbars.py.

References gui_modules.toolbars.MapToolbar.Enable2D(), gui_modules.toolbars.MapToolbar.ExitToolbars(), and gui_modules.toolbars.MapToolbar.toolId.


Field Documentation

gui_modules.toolbars.MapToolbar.action

Reimplemented from gui_modules.toolbars.AbstractToolbar.

Definition at line 257 of file toolbars.py.

gui_modules.toolbars.MapToolbar.combo

log.WriteCmdLog(_('3D view mode not available')) log.WriteWarning(_('Reason: s') % str(errorMsg)) log.WriteLog(_('Note that the wxGUI\'s 3D view mode is currently disabled ' 'on MS Windows (hopefully this will be fixed soon).

' 'Please keep an eye out for updated versions of GRASS. ' 'In the meantime you can use "NVIZ" from the File menu.'), wrap = 60)

Definition at line 242 of file toolbars.py.

gui_modules.toolbars.MapToolbar.comboid

Definition at line 247 of file toolbars.py.

Referenced by gui_modules.toolbars.VDigitToolbar.UpdateListOfLayers().

gui_modules.toolbars.MapToolbar.defaultAction

Definition at line 258 of file toolbars.py.

Referenced by gui_modules.toolbars.AbstractToolbar.SelectDefault().

gui_modules.toolbars.MapToolbar.mapcontent

Definition at line 200 of file toolbars.py.

gui_modules.toolbars.MapToolbar.toolId

Definition at line 207 of file toolbars.py.

Referenced by gui_modules.toolbars.MapToolbar.OnSelectTool().


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