|
OpenMS
2.6.0
|
Go to the documentation of this file.
38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
41 #include <QtWidgets/QApplication>
69 bool notify(
QObject* rec, QEvent* ev)
override;
74 bool event(QEvent*)
override;
82 static void showAboutDialog(
QWidget* parent,
const QString& toolname);
86 void fileOpen(QString file);
static void registerProduct(const String &name, const FunctionType creator)
register new concrete FactoryProduct
Definition: Factory.h:139
A more convenient string class.
Definition: String.h:59
void fileOpen(QString file)
Extension to the QApplication for running TOPPs GUI tools.
Definition: QApplicationTOPP.h:50
static const String getProductName()
name of the model (needed by Factory)
bool notify(QObject *rec, QEvent *ev) override
: Catch exceptions in Qt GUI applications, preventing ungraceful exit
Definition: QApplicationTOPP.cpp:99
static String find(const String &filename, StringList directories=StringList())
Looks up the location of the file filename.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool event(QEvent *) override
Definition: QApplicationTOPP.cpp:118
static void showAboutDialog(QWidget *parent, const QString &toolname)
Show the About-Dialog with License and Citation for all GUI tools.
Definition: QApplicationTOPP.cpp:131
static ProgressLogger::ProgressLoggerImpl * create()
create new object (needed by Factory)
Exception base class.
Definition: Exception.h:89
QString toQString() const
Conversion to Qt QString.
static String getVersion()
Return the version number of OpenMS.
const char * getName() const noexcept
Returns the name of the exception.
static String getRevision()
Return the revision number from revision control system, e.g. git.
#define OPENMS_LOG_ERROR
Macro to be used if non-fatal error are reported (processing continues)
Definition: LogStream.h:455
QApplicationTOPP(int &argc, char **argv)
Constructor (no NOT remove the "&" from argc, since Qt will segfault on some platforms otherwise!...
Definition: QApplicationTOPP.cpp:61
const char * getMessage() const noexcept
Returns the message.
~QApplicationTOPP() override
Destructor.
Definition: QApplicationTOPP.cpp:90