Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Signals | Public Member Functions | Protected Attributes

TOPPASWidget Class Reference
[TOPPAS]

Widget visualizing and allowing to edit TOPP pipelines. More...

#include <OpenMS/VISUAL/TOPPASWidget.h>

Inheritance diagram for TOPPASWidget:
QGraphicsView EnhancedTabBarWidgetInterface

List of all members.

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.
void sendCursorStatus (double x=0.0, double y=0.0)
 Emitted when the cursor position changes (for displaying e.g. in status bar).
void aboutToBeDestroyed (int w_id)
 Message about the destruction of this widget.
void toolDroppedOnWidget (double x=0.0, double y=0.0)
 Emitted when a drop event occurs.
void pipelineDroppedOnWidget (const String &filename, bool new_window)
 Emitted when a drop event occurs.

Public Member Functions

 TOPPASWidget (const Param &preferences, QWidget *parent=0, const String &tmp_path="")
 Default constructor.
virtual ~TOPPASWidget ()
 Destructor.
virtual void setWindowId (Int id)
 setter from EnhancedTabBarWidgetInterface
virtual Int getWindowId ()
 getter from EnhancedTabBarWidgetInterface
TOPPASScenegetScene ()
 Returns the scene.
void zoom (bool zoom_in)
 Zooms in or out, depending on zoom_in.

Protected Member Functions

reimplemented QT events

void wheelEvent (QWheelEvent *event)
void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
void leaveEvent (QEvent *e)
void enterEvent (QEvent *e)
void dragEnterEvent (QDragEnterEvent *event)
void dragMoveEvent (QDragMoveEvent *event)
void dropEvent (QDropEvent *event)
void resizeEvent (QResizeEvent *event)
void closeEvent (QCloseEvent *e)

Protected Attributes

TOPPASScenescene_
 The scene visualized by this widget.
Int window_id_
 Widget id used as identifier.

Detailed Description

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.


Constructor & Destructor Documentation

TOPPASWidget ( const Param preferences,
QWidget parent = 0,
const String tmp_path = "" 
)

Default constructor.

virtual ~TOPPASWidget (  )  [virtual]

Destructor.


Member Function Documentation

void aboutToBeDestroyed ( int  w_id  )  [signal]

Message about the destruction of this widget.

void closeEvent ( QCloseEvent *  e  )  [protected]
void dragEnterEvent ( QDragEnterEvent *  event  )  [protected]
void dragMoveEvent ( QDragMoveEvent *  event  )  [protected]
void dropEvent ( QDropEvent *  event  )  [protected]
void enterEvent ( QEvent *  e  )  [protected]
virtual Int getWindowId (  )  [virtual]
void keyPressEvent ( QKeyEvent *  e  )  [protected]
void keyReleaseEvent ( QKeyEvent *  e  )  [protected]
void leaveEvent ( QEvent *  e  )  [protected]
void pipelineDroppedOnWidget ( const String filename,
bool  new_window 
) [signal]

Emitted when a drop event occurs.

void resizeEvent ( QResizeEvent *  event  )  [protected]
void sendCursorStatus ( double  x = 0.0,
double  y = 0.0 
) [signal]

Emitted when the cursor position changes (for displaying e.g. in status bar).

void sendStatusMessage ( std::string  message,
OpenMS::UInt  time 
) [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.

virtual void setWindowId ( Int  id  )  [virtual]
void toolDroppedOnWidget ( double  x = 0.0,
double  y = 0.0 
) [signal]

Emitted when a drop event occurs.

void wheelEvent ( QWheelEvent *  event  )  [protected]
void zoom ( bool  zoom_in  ) 

Zooms in or out, depending on zoom_in.


Member Data Documentation

TOPPASScene* scene_ [protected]

The scene visualized by this widget.

Int window_id_ [protected]

Widget id used as identifier.


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1