OpenMS
2.7.0
|
Extension to the QApplication for running TOPPs GUI tools. More...
#include <OpenMS/VISUAL/APPLICATIONS/MISC/QApplicationTOPP.h>
Signals | |
void | fileOpen (QString file) |
Public Member Functions | |
QApplicationTOPP (int &argc, char **argv) | |
Constructor (no NOT remove the "&" from argc, since Qt will segfault on some platforms otherwise!) More... | |
~QApplicationTOPP () override | |
Destructor. More... | |
bool | notify (QObject *rec, QEvent *ev) override |
: Catch exceptions in Qt GUI applications, preventing ungraceful exit More... | |
bool | event (QEvent *) override |
Static Public Member Functions | |
static void | showAboutDialog (QWidget *parent, const QString &toolname) |
Show the About-Dialog with License and Citation for all GUI tools. More... | |
Extension to the QApplication for running TOPPs GUI tools.
Basically re-implements notify of QApplication to prevent ungraceful exit.
QApplicationTOPP | ( | int & | argc, |
char ** | argv | ||
) |
Constructor (no NOT remove the "&" from argc, since Qt will segfault on some platforms otherwise!)
References GUIProgressLoggerImpl::create(), File::find(), GUIProgressLoggerImpl::getProductName(), Factory< FactoryProduct >::registerProduct(), and String::toQString().
|
override |
Destructor.
|
override |
Reimplemented from QApplication, to handle QEvent::FileOpen to enable handling of odoc event on MacOSX
References QApplicationTOPP::fileOpen().
|
signal |
Referenced by QApplicationTOPP::event(), and main().
|
override |
: Catch exceptions in Qt GUI applications, preventing ungraceful exit
Re-implementing QApplication::notify() to catch exception thrown in event handlers (which is most likely OpenMS code).
References BaseException::getName(), OPENMS_LOG_ERROR, and String::toQString().
|
static |
Show the About-Dialog with License and Citation for all GUI tools.
parent | Parent widget (usually 'this') |
toolname | name of the tool (used as heading) |
References VersionInfo::getRevision(), and VersionInfo::getVersion().
Referenced by SwathWizardBase::showAboutDialog(), and TOPPASBase::showAboutDialog().