/** * @RDE_HEADER@ * small extension to QApplication for window handling * $Id$ * $HeadURL$ * $Author$ */ #pragma once #include #include "nglloggerhandler.h" #ifndef NGLAPPLICATION_EXPORT # ifdef BUILD_STATIC_LIBRARIES # define NGLAPPLICATION_EXPORT # else # ifdef MAKE_NGLAPPLICATION_LIB # define NGLAPPLICATION_EXPORT Q_DECL_EXPORT # else # define NGLAPPLICATION_EXPORT Q_DECL_IMPORT # endif # endif #endif namespace NGL { class INGLLogger; } class NGLAPPLICATION_EXPORT NGLApplication : public QApplication, public NGL::LoggerHandler { Q_OBJECT public: NGLApplication(int &argc, char **argv); protected: bool notify(QObject *o, QEvent *e) override; }; #define nglApp static_cast(NGLApplication::instance())