GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
toolbars.BaseToolbar Class Reference

Abstract toolbar class. More...

Inheritance diagram for toolbars.BaseToolbar:

Public Member Functions

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

 parent
 action

Detailed Description

Abstract toolbar class.

Definition at line 80 of file gui_core/toolbars.py.


Constructor & Destructor Documentation


Member Function Documentation

def toolbars.BaseToolbar.CreateTool (   self,
  label,
  bitmap,
  kind,
  shortHelp,
  longHelp,
  handler,
  pos = -1 
)

Add tool to the toolbar.

Parameters:
posif -1 add tool, if > 0 insert at given pos
Returns:
id of tool

Definition at line 105 of file gui_core/toolbars.py.

Referenced by toolbars.BaseToolbar.InitToolbar(), and toolbars.MapToolbar.InsertTool().

def toolbars.BaseToolbar.Enable (   self,
  tool,
  enable = True 
)

Enable defined tool.

Parameters:
toolname
enableTrue to enable otherwise disable tool

Definition at line 192 of file gui_core/toolbars.py.

References toolbars.BaseToolbar._defineTool().

Referenced by toolbars.VDigitToolbar.StartEditing(), and toolbars.VDigitToolbar.StopEditing().

def toolbars.BaseToolbar.EnableLongHelp (   self,
  enable = True 
)

Enable/disable long help.

Parameters:
enableTrue for enable otherwise disable

Definition at line 131 of file gui_core/toolbars.py.

References toolbars.BaseToolbar._data.

def toolbars.BaseToolbar.FixSize (   self,
  width 
)

Fix toolbar width on Windows.

Todo:
Determine why combobox causes problems here

Definition at line 183 of file gui_core/toolbars.py.

def toolbars.BaseToolbar.GetAction (   self,
  type = 'desc' 
)

Get current action info.

Definition at line 172 of file gui_core/toolbars.py.

Referenced by toolbars.BaseToolbar.OnTool(), and toolbars.VDigitToolbar.OnTool().

def toolbars.BaseToolbar.OnTool (   self,
  event 
)

Tool selected.

Reimplemented in toolbars.VDigitToolbar.

Definition at line 145 of file gui_core/toolbars.py.

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, toolbars.GCPDisplayToolbar.action, toolbars.BaseToolbar.GetAction(), menu.Menu.parent, mapwindow.MapWindow.parent, sqlbuilder.SQLFrame.parent, mapdisp.MapFrameBase.parent, dialogs.ModelDataDialog.parent, dialogs.DisplayAttributesDialog.parent, preferences.PreferencesBaseDialog.parent, manager.Log.parent, frame.ModelFrame.parent, goutput.CmdThread.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, forms.UpdateThread.parent, ghelp.MenuTreeWindow.parent, goutput.GMConsole.parent, dialogs.ModelRelationDialog.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, ghelp.MenuTree.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, prompt.GPrompt.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, ghelp.HelpWindow.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, goutput.GMStdout.parent, dialogs.ItemCheckListCtrl.parent, goutput.GMStderr.parent, frame.ModelCanvas.parent, goutput.GMStc.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.PyStc.parent, dialogs.MapLayersDialog.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, frame.PythonPanel.parent, dialogs.ImportDialog.parent, preferences.CheckListMapset.parent, forms.GUI.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, and manager.LayerBook.parent.


Field Documentation


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