OpenMS
EnhancedWorkspace.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: Timo Sachsenberg $
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
14 #include <QMdiArea>
15 
16 class QMimeData;
17 class QDragEnterEvent;
18 class QDragMoveEvent;
19 class QDropEvent;
20 
21 namespace OpenMS
22 {
23  class EnhancedTabBarWidgetInterface;
24 
25  class OPENMS_GUI_DLLAPI EnhancedWorkspace :
26  public QMdiArea
27  {
28  Q_OBJECT
29 
30 public:
33 
35  ~EnhancedWorkspace() override;
36 
43  QMdiSubWindow* addSubWindow(QWidget* widget);
44 
47 
49  void tileVertical();
50 
54 
55 signals:
56 
58  void dropReceived(const QMimeData * data, QWidget * source, int id);
59 
60 protected:
61 
63 
64  void dragEnterEvent(QDragEnterEvent * event) override;
65  void dragMoveEvent(QDragMoveEvent * event) override;
66  void dropEvent(QDropEvent * event) override;
68  };
69 }
70 
Widgets that are placed into an EnhancedTabBar must implement this interface.
Definition: EnhancedTabBarWidgetInterface.h:59
Definition: EnhancedWorkspace.h:27
void dropReceived(const QMimeData *data, QWidget *source, int id)
Signal that is emitted, when a drag-and-drop action ends on this widget.
void dragMoveEvent(QDragMoveEvent *event) override
EnhancedWorkspace(QWidget *parent)
Constructor.
EnhancedTabBarWidgetInterface * getWidget(int id) const
~EnhancedWorkspace() override
Destructor.
void tileVertical()
arrange all windows vertically
void tileHorizontal()
arrange all windows horizontally
void dragEnterEvent(QDragEnterEvent *event) override
QMdiSubWindow * addSubWindow(QWidget *widget)
void dropEvent(QDropEvent *event) override
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19