widgets.toolbars

Functions to make and handle QToolBars.

author:
  1. Savolainen (VTT)
date:

19.1.2018

Module Contents

class widgets.toolbars.ItemToolBar(parent)[source]

Bases: PySide2.QtWidgets.QToolBar

A toolbar to add items using drag and drop actions.

parent

QMainWindow instance

Type:ToolboxUI
remove_all(self, checked=False)[source]

Slot for handling the remove all tool button clicked signal. Calls ToolboxUI remove_all_items() method.

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.

class widgets.toolbars.DraggableWidget(parent, pixmap, text)[source]

Bases: PySide2.QtWidgets.QLabel

A draggable QLabel.

parent

Parent widget

Type:QWidget
pixmap

Picture for the label

Type:QPixMap
text

Item type

Type:str
mousePressEvent(self, event)[source]

Register drag start position

mouseMoveEvent(self, event)[source]

Start dragging action if needed

mouseReleaseEvent(self, event)[source]

Forget drag start position

class widgets.toolbars.ParameterTagToolBar(parent)[source]

Bases: PySide2.QtWidgets.QToolBar

A toolbar to add items using drag and drop actions.

parent

tree or graph view form

Type:DataStoreForm
tag_button_toggled[source]
manage_tags_action_triggered[source]
init_toolbar(self)[source]
add_tag_actions(self, db_map, parameter_tags)[source]
remove_tag_actions(self, db_map, parameter_tag_ids)[source]
update_tag_actions(self, db_map, parameter_tags)[source]