Home ⌂Doc Index ◂Up ▴

eric6.E5Gui.E5ToolBarDialog

Module implementing a toolbar configuration dialog.

Global Attributes

None

Classes

E5ToolBarDialog Class implementing a toolbar configuration dialog.
E5ToolBarItem Class storing data belonging to a toolbar entry of the toolbar dialog.

Functions

None


E5ToolBarDialog

Class implementing a toolbar configuration dialog.

Derived from

QDialog, Ui_E5ToolBarDialog

Class Attributes

ActionIdRole
WidgetActionRole

Class Methods

None

Methods

E5ToolBarDialog Constructor
__resetCurrentToolbar Private method to revert all changes made to the current toolbar.
__restoreCurrentToolbar Private methdo to restore the current toolbar to the given list of actions.
__restoreCurrentToolbarToDefault Private method to set the current toolbar to its default configuration.
__saveToolBars Private method to save the configured toolbars.
__setupButtons Private slot to set the buttons state.
__toolbarComboBox_currentIndexChanged Private slot called upon a selection of the current toolbar.
on_actionsTree_currentItemChanged Private slot called, when the currently selected action changes.
on_buttonBox_clicked Private slot called, when a button of the button box was clicked.
on_downButton_clicked Private slot used to move an action down in the list.
on_leftButton_clicked Private slot to delete an action from the list.
on_newButton_clicked Private slot to create a new toolbar.
on_removeButton_clicked Private slot to remove a custom toolbar.
on_renameButton_clicked Private slot to rename a custom toolbar.
on_rightButton_clicked Private slot to add an action to the list.
on_toolbarActionsList_currentItemChanged Private slot to handle a change of the current item.
on_upButton_clicked Private slot used to move an action up in the list.

Static Methods

None

E5ToolBarDialog (Constructor)

E5ToolBarDialog(toolBarManager, parent=None)

Constructor

toolBarManager
reference to a toolbar manager object (E5ToolBarManager)
parent
reference to the parent widget (QWidget)

E5ToolBarDialog.__resetCurrentToolbar

__resetCurrentToolbar()

Private method to revert all changes made to the current toolbar.

E5ToolBarDialog.__restoreCurrentToolbar

__restoreCurrentToolbar(actions)

Private methdo to restore the current toolbar to the given list of actions.

actions
list of actions to set for the current toolbar (list of QAction)

E5ToolBarDialog.__restoreCurrentToolbarToDefault

__restoreCurrentToolbarToDefault()

Private method to set the current toolbar to its default configuration.

E5ToolBarDialog.__saveToolBars

__saveToolBars()

Private method to save the configured toolbars.

Raises RuntimeError:
raised to indicate an invalid action

E5ToolBarDialog.__setupButtons

__setupButtons()

Private slot to set the buttons state.

E5ToolBarDialog.__toolbarComboBox_currentIndexChanged

__toolbarComboBox_currentIndexChanged(index)

Private slot called upon a selection of the current toolbar.

index
index of the new current toolbar (integer)

E5ToolBarDialog.on_actionsTree_currentItemChanged

on_actionsTree_currentItemChanged(current, previous)

Private slot called, when the currently selected action changes.

current
reference to the current item (QTreeWidgetItem)
previous
reference to the previous current item (QTreeWidgetItem)

E5ToolBarDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called, when a button of the button box was clicked.

button
reference to the button clicked (QAbstractButton)

E5ToolBarDialog.on_downButton_clicked

on_downButton_clicked()

Private slot used to move an action down in the list.

E5ToolBarDialog.on_leftButton_clicked

on_leftButton_clicked()

Private slot to delete an action from the list.

E5ToolBarDialog.on_newButton_clicked

on_newButton_clicked()

Private slot to create a new toolbar.

E5ToolBarDialog.on_removeButton_clicked

on_removeButton_clicked()

Private slot to remove a custom toolbar.

E5ToolBarDialog.on_renameButton_clicked

on_renameButton_clicked()

Private slot to rename a custom toolbar.

E5ToolBarDialog.on_rightButton_clicked

on_rightButton_clicked()

Private slot to add an action to the list.

E5ToolBarDialog.on_toolbarActionsList_currentItemChanged

on_toolbarActionsList_currentItemChanged(current, previous)

Private slot to handle a change of the current item.

current
reference to the current item (QListWidgetItem)
previous
reference to the previous current item (QListWidgetItem)

E5ToolBarDialog.on_upButton_clicked

on_upButton_clicked()

Private slot used to move an action up in the list.

Up


E5ToolBarItem

Class storing data belonging to a toolbar entry of the toolbar dialog.

Derived from

object

Class Attributes

None

Class Methods

None

Methods

E5ToolBarItem Constructor

Static Methods

None

E5ToolBarItem (Constructor)

E5ToolBarItem(toolBarId, actionIDs, default)

Constructor

toolBarId
id of the toolbar object (integer)
actionIDs
list of action IDs belonging to the toolbar (list of integer)
default
flag indicating a default toolbar (boolean)
Up



Home ⌂Doc Index ◂Up ▴