OpenMS
TOPPASTreeView.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, 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 
39 protected:
41 
42  void mousePressEvent(QMouseEvent * e) override;
43  void mouseMoveEvent(QMouseEvent * e) override;
44  void keyPressEvent(QKeyEvent * e) override;
45  void leaveEvent(QEvent * e) override;
46  void enterEvent(QEvent * e) override;
48 
51  };
52 
53 }
Tree view implementation for the list of TOPP tools.
Definition: TOPPASTreeView.h:30
void enterEvent(QEvent *e) override
void mousePressEvent(QMouseEvent *e) override
void mouseMoveEvent(QMouseEvent *e) override
void leaveEvent(QEvent *e) override
void keyPressEvent(QKeyEvent *e) override
QPoint drag_start_pos_
The drag start position.
Definition: TOPPASTreeView.h:50
TOPPASTreeView(QWidget *parent=nullptr)
Constructor.
~TOPPASTreeView() override
Destructor.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22