spinetoolbox.widgets.toolbars

Functions to make and handle QToolBars.

author
  1. Savolainen (VTT)

date

19.1.2018

Module Contents

Classes

PluginToolBar

A plugin toolbar.

MainToolBar

The main application toolbar: Items | Execute

PaddingLabel

class spinetoolbox.widgets.toolbars.PluginToolBar(name, parent)[source]

Bases: PySide2.QtWidgets.QToolBar

A plugin toolbar.

Parameters

parent (ToolboxUI) – QMainWindow instance

setup(self, plugin_specs)[source]
set_color(self, color)[source]
class spinetoolbox.widgets.toolbars.MainToolBar(parent)[source]

Bases: PySide2.QtWidgets.QToolBar

The main application toolbar: Items | Execute

Parameters

parent (ToolboxUI) – QMainWindow instance

_SEPARATOR = ;;[source]
set_color(self, color)[source]
setup(self)[source]
add_project_item_buttons(self)[source]
_add_project_item_button(self, item_type, factory, colored)[source]
set_colored_icons(self, colored)[source]
_add_tool_button(self, icon, tip, slot)[source]
add_execute_buttons(self)[source]
execute_project(self, checked=False)[source]

Slot for handling the Execute project tool button clicked signal.

execute_selected(self, checked=False)[source]

Slot for handling the Execute selected tool button clicked signal.

stop_execution(self, checked=False)[source]

Slot for handling the Stop execution tool button clicked signal.

dragLeaveEvent(self, event)[source]
dragEnterEvent(self, event)[source]
dragMoveEvent(self, event)[source]
dropEvent(self, event)[source]
_update_drop_actions(self, event)[source]

Updates source and target actions for drop operation:

Parameters

event (QDragMoveEvent) –

paintEvent(self, ev)[source]

Draw a line as drop indicator.

_drop_line(self)[source]
icon_ordering(self)[source]
class spinetoolbox.widgets.toolbars.PaddingLabel(*args, **kwargs)[source]

Bases: PySide2.QtWidgets.QLabel