OpenMS
QApplicationTOPP.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: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
14 //Qt
15 #include <QtWidgets/QApplication>
16 
17 namespace OpenMS
18 {
24  class OPENMS_GUI_DLLAPI QApplicationTOPP :
25  public QApplication
26  {
27 
28  Q_OBJECT
29 
30 public:
32  QApplicationTOPP(int& argc, char** argv);
33 
35  ~QApplicationTOPP() override;
36 
43  bool notify(QObject* rec, QEvent* ev) override;
44 
48  bool event(QEvent*) override;
49 
56  static void showAboutDialog(QWidget* parent, const QString& toolname);
57 
58 
59 signals:
60  void fileOpen(QString file);
61 
62  };
63 
64 }
65 
Extension to the QApplication for running TOPPs GUI tools.
Definition: QApplicationTOPP.h:26
~QApplicationTOPP() override
Destructor.
void fileOpen(QString file)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22