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

Abstract toolbar class. More...

Inheritance diagram for toolbars.BaseToolbar:
Collaboration diagram for toolbars.BaseToolbar:

Public Member Functions

def __init__
 
def InitToolbar
 Initialize toolbar, add tools to the toolbar. More...
 
def CreateTool
 Add tool to the toolbar. More...
 
def EnableLongHelp
 Enable/disable long help. More...
 
def OnTool
 Tool selected. More...
 
def GetAction
 Get current action info. More...
 
def SelectDefault
 Select default tool. More...
 
def FixSize
 Fix toolbar width on Windows. More...
 
def Enable
 Enable defined tool. More...
 

Data Fields

 parent
 
 action
 

Detailed Description

Abstract toolbar class.

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

Constructor & Destructor Documentation

def toolbars.BaseToolbar.__init__ (   self,
  parent 
)

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

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 190 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 181 of file gui_core/toolbars.py.

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

Get current action info.

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

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

def toolbars.BaseToolbar.OnTool (   self,
  event 
)

Tool selected.

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

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, toolbars.GCPDisplayToolbar.action, toolbars.BaseToolbar.GetAction(), mapwindow.MapWindow.parent, menu.Menu.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.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, menu.MenuTreeWindow.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, dialogs.ModelRelationDialog.parent, menu.MenuTree.parent, manager.LocationPage.parent, forms.UpdateQThread.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, ghelp.HelpWindow.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, goutput.GMStdout.parent, goutput.GMStderr.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.GMStc.parent, dialogs.MapLayersDialog.parent, goutput.PyStc.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, dialogs.ImportDialog.parent, frame.PythonPanel.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: