GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Abstract toolbar class. More...
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 | |
Abstract toolbar class.
Definition at line 80 of file gui_core/toolbars.py.
def toolbars.BaseToolbar.__init__ | ( | self, | |
parent | |||
) |
Definition at line 82 of file gui_core/toolbars.py.
def toolbars.BaseToolbar.CreateTool | ( | self, | |
label, | |||
bitmap, | |||
kind, | |||
shortHelp, | |||
longHelp, | |||
handler, | |||
pos = -1 |
|||
) |
Add tool to the toolbar.
pos | if -1 add tool, if > 0 insert at given pos |
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.
tool | name |
enable | True 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.
enable | True 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.
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.InitToolbar | ( | self, | |
toolData | |||
) |
Initialize toolbar, add tools to the toolbar.
Definition at line 92 of file gui_core/toolbars.py.
References toolbars.BaseToolbar._data, and toolbars.BaseToolbar.CreateTool().
Referenced by toolbars.PsMapToolbar.__init__(), toolbars.ModelerToolbar.__init__(), toolbars.GCPManToolbar.__init__(), toolbars.LMWorkspaceToolbar.__init__(), toolbars.LMDataToolbar.__init__(), toolbars.GCPDisplayToolbar.__init__(), toolbars.LMToolsToolbar.__init__(), toolbars.LMMiscToolbar.__init__(), toolbars.LMVectorToolbar.__init__(), profile.ProfileToolbar.__init__(), and histogram.HistogramToolbar.__init__().
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.
def toolbars.BaseToolbar.SelectDefault | ( | self, | |
event | |||
) |
Select default tool.
Definition at line 174 of file gui_core/toolbars.py.
References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, toolbars.GCPDisplayToolbar.action, toolbars.PsMapToolbar.defaultAction, toolbars.GCPDisplayToolbar.defaultAction, and toolbars.MapToolbar.defaultAction.
toolbars.BaseToolbar.action |
Definition at line 86 of file gui_core/toolbars.py.
Referenced by toolbars.VDigitToolbar.OnAddArea(), toolbars.VDigitToolbar.OnAddBoundary(), toolbars.VDigitToolbar.OnAddCentroid(), toolbars.VDigitToolbar.OnAdditionalToolMenu(), toolbars.VDigitToolbar.OnAddLine(), toolbars.VDigitToolbar.OnAddPoint(), toolbars.VDigitToolbar.OnAddVertex(), toolbars.VDigitToolbar.OnBreak(), toolbars.VDigitToolbar.OnConnect(), toolbars.VDigitToolbar.OnCopy(), toolbars.VDigitToolbar.OnCopyAttrb(), toolbars.VDigitToolbar.OnCopyCats(), toolbars.VDigitToolbar.OnDeleteLine(), toolbars.VDigitToolbar.OnDisplayAttr(), toolbars.VDigitToolbar.OnDisplayCats(), toolbars.VDigitToolbar.OnEditLine(), toolbars.VDigitToolbar.OnFlip(), toolbars.VDigitToolbar.OnMerge(), toolbars.VDigitToolbar.OnMoveLine(), toolbars.VDigitToolbar.OnMoveVertex(), toolbars.VDigitToolbar.OnQuery(), toolbars.VDigitToolbar.OnRemoveVertex(), toolbars.VDigitToolbar.OnSnap(), toolbars.VDigitToolbar.OnSplitLine(), toolbars.BaseToolbar.OnTool(), toolbars.VDigitToolbar.OnTool(), toolbars.VDigitToolbar.OnTypeConversion(), toolbars.VDigitToolbar.OnZBulk(), and toolbars.BaseToolbar.SelectDefault().
toolbars.BaseToolbar.parent |
Definition at line 83 of file gui_core/toolbars.py.
Referenced by wxdigit.VDigitError.Database(), wxdigit.VDigitError.DbExecute(), wxdigit.VDigitError.DbLink(), wxdigit.VDigitError.DeadLine(), wxdigit.VDigitError.Driver(), wxdigit.VDigitError.FeatureType(), colorrules.RulesPanel.LoadRules(), wxdigit.VDigitError.NoMap(), frame.PsMapBufferedWindow.OnLeftUp(), toolbars.VDigitToolbar.OnSelectMap(), toolbars.LMNvizToolbar.OnSettings(), toolbars.VDigitToolbar.OnSettings(), toolbars.BaseToolbar.OnTool(), toolbars.VDigitToolbar.OnZBulk(), wxdigit.VDigitError.ReadLine(), toolbars.VDigitToolbar.StopEditing(), colorrules.VectorColorTable.UpdateColorColumn(), and wxdigit.VDigitError.WriteLine().