OpenMS
TOPPASTreeView Class Reference

Tree view implementation for the list of TOPP tools. More...

#include <OpenMS/VISUAL/TOPPASTreeView.h>

Inheritance diagram for TOPPASTreeView:
[legend]
Collaboration diagram for TOPPASTreeView:
[legend]

Public Member Functions

 TOPPASTreeView (QWidget *parent=nullptr)
 Constructor. More...
 
 ~TOPPASTreeView () override
 Destructor. More...
 
void filter (const QString &must_match)
 
void expandAll ()
 expand all subtrees, i.e. make them visible More...
 
void collapseAll ()
 collapse all subtrees; only show the uppermost level More...
 

Reimplemented Qt events

QPoint drag_start_pos_
 The drag start position. More...
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void leaveEvent (QEvent *e) override
 
void enterEvent (QEvent *e) override
 

Detailed Description

Tree view implementation for the list of TOPP tools.

Constructor & Destructor Documentation

◆ TOPPASTreeView()

TOPPASTreeView ( QWidget parent = nullptr)

Constructor.

◆ ~TOPPASTreeView()

~TOPPASTreeView ( )
override

Destructor.

Member Function Documentation

◆ collapseAll()

void collapseAll ( )

collapse all subtrees; only show the uppermost level

Referenced by TOPPASBase::TOPPASBase().

◆ enterEvent()

void enterEvent ( QEvent *  e)
overrideprotected

◆ expandAll()

void expandAll ( )

expand all subtrees, i.e. make them visible

Referenced by TOPPASBase::TOPPASBase().

◆ filter()

void filter ( const QString &  must_match)

Filter tree elements by name (case insensitive and partial=substring matches are valid) An empty filter shows all elements. If an element in a subtree is matched, all parents up to the root are also shown.

Referenced by TOPPASBase::filterToolTree_().

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent *  e)
overrideprotected

◆ leaveEvent()

void leaveEvent ( QEvent *  e)
overrideprotected

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  e)
overrideprotected

Member Data Documentation

◆ drag_start_pos_

QPoint drag_start_pos_
protected

The drag start position.