OpenMS
2.8.0
|
Widget visualizing and allowing to edit TOPP pipelines. More...
#include <OpenMS/VISUAL/TOPPASWidget.h>
Signals | |
void | sendStatusMessage (std::string message, OpenMS::UInt time) |
Emits a status message that should be displayed for time ms. If time is 0 the message should be displayed until the next message is emitted. More... | |
void | sendCursorStatus (double x=0.0, double y=0.0) |
Emitted when the cursor position changes (for displaying e.g. in status bar) More... | |
void | toolDroppedOnWidget (double x=0.0, double y=0.0) |
Emitted when a drop event occurs. More... | |
void | pipelineDroppedOnWidget (const String &filename, bool new_window) |
Emitted when a drop event occurs. More... | |
Public Member Functions | |
TOPPASWidget (const Param &preferences, QWidget *parent=nullptr, const String &tmp_path="") | |
Default constructor. More... | |
~TOPPASWidget () override | |
Destructor. More... | |
TOPPASScene * | getScene () |
Returns the scene. More... | |
void | zoom (bool zoom_in) |
Zooms in or out, depending on zoom_in . More... | |
Public Member Functions inherited from EnhancedTabBarWidgetInterface | |
EnhancedTabBarWidgetInterface () | |
C'tor; creates a new ID;. More... | |
virtual | ~EnhancedTabBarWidgetInterface () |
Destructor (emits SignalProvider::aboutToBeDestroyed) More... | |
void | addToTabBar (EnhancedTabBar *const parent, const String &caption, const bool make_active_tab=true) |
Int | getWindowId () const |
get the EnhancedTabBar unique window id More... | |
Protected Member Functions | |
reimplemented QT events | |
void | wheelEvent (QWheelEvent *event) override |
void | keyPressEvent (QKeyEvent *e) override |
void | keyReleaseEvent (QKeyEvent *e) override |
void | leaveEvent (QEvent *e) override |
void | enterEvent (QEvent *e) override |
void | dragEnterEvent (QDragEnterEvent *event) override |
void | dragMoveEvent (QDragMoveEvent *event) override |
void | dropEvent (QDropEvent *event) override |
void | resizeEvent (QResizeEvent *event) override |
void | closeEvent (QCloseEvent *e) override |
Protected Attributes | |
TOPPASScene * | scene_ |
The scene visualized by this widget. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from EnhancedTabBarWidgetInterface | |
static Int | getFirstWindowID () |
the first object to be created will get this ID More... | |
Widget visualizing and allowing to edit TOPP pipelines.
This class is a subclass of QGraphicsView and visualizes a TOPPASScene. Several TOPPASWidgets can be opened in TOPPAS at the same time, managed by a QWorkspace.
TOPPASWidget | ( | const Param & | preferences, |
QWidget * | parent = nullptr , |
||
const String & | tmp_path = "" |
||
) |
Default constructor.
|
override |
Destructor.
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
TOPPASScene* getScene | ( | ) |
Returns the scene.
Referenced by TOPPASBase::abortPipeline(), TOPPASBase::addTOPPASFile(), TOPPASBase::closeEvent(), TOPPASBase::descriptionUpdated_(), TOPPASBase::exportAsImage(), TOPPASBase::focusByTab(), TOPPASBase::insertNewVertex_(), TOPPASBase::keyPressEvent(), TOPPASBase::loadPipelineResourceFile(), TOPPASBase::refreshPipelineParameters(), TOPPASBase::runPipeline(), TOPPASBase::savePipeline(), TOPPASBase::savePipelineAs(), TOPPASBase::savePipelineResourceFile(), TOPPASBase::showAsWindow_(), and TOPPASBase::updateMenu().
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
signal |
Emitted when a drop event occurs.
|
overrideprotected |
|
signal |
Emitted when the cursor position changes (for displaying e.g. in status bar)
|
signal |
Emits a status message that should be displayed for time
ms. If time
is 0 the message should be displayed until the next message is emitted.
|
signal |
Emitted when a drop event occurs.
|
overrideprotected |
void zoom | ( | bool | zoom_in | ) |
Zooms in or out, depending on zoom_in
.
|
protected |
The scene visualized by this widget.