OpenMS
TOPPASTreeView.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Johannes Veit $
6 // $Authors: Johannes Junker $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
14 //QT
15 #include <QtWidgets/QTreeWidget>
16 #include <QMouseEvent>
17 #include <QtCore/QPoint>
18 
19 namespace OpenMS
20 {
21  class String;
22 
28  class OPENMS_GUI_DLLAPI TOPPASTreeView :
29  public QTreeWidget
30  {
31  Q_OBJECT
32 
33 public:
35  TOPPASTreeView(QWidget * parent = nullptr);
37  ~TOPPASTreeView() override;
38 
42  void filter(const QString& must_match);
43 
45  void expandAll();
46 
48  void collapseAll();
49 
50 protected:
52 
53  void mousePressEvent(QMouseEvent * e) override;
54  void mouseMoveEvent(QMouseEvent * e) override;
55  void keyPressEvent(QKeyEvent * e) override;
56  void leaveEvent(QEvent * e) override;
57  void enterEvent(QEnterEvent* e) override;
59 
62  };
63 
64 }
Tree view implementation for the list of TOPP tools.
Definition: TOPPASTreeView.h:30
void mousePressEvent(QMouseEvent *e) override
void filter(const QString &must_match)
void mouseMoveEvent(QMouseEvent *e) override
void leaveEvent(QEvent *e) override
void collapseAll()
collapse all subtrees; only show the uppermost level
void keyPressEvent(QKeyEvent *e) override
QPoint drag_start_pos_
The drag start position.
Definition: TOPPASTreeView.h:61
TOPPASTreeView(QWidget *parent=nullptr)
Constructor.
~TOPPASTreeView() override
Destructor.
void expandAll()
expand all subtrees, i.e. make them visible
void enterEvent(QEnterEvent *e) override
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19