|
|
@ -7,17 +7,7 @@ |
|
|
|
* |
|
|
|
* |
|
|
|
****************************************************************************/ |
|
|
|
****************************************************************************/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once |
|
|
|
/**
|
|
|
|
|
|
|
|
* @file |
|
|
|
|
|
|
|
* @brief Definition of main class |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @author Lorenz Meier <mavteam@student.ethz.ch> |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef QGCAPPLICATION_H |
|
|
|
|
|
|
|
#define QGCAPPLICATION_H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QApplication> |
|
|
|
#include <QApplication> |
|
|
|
#include <QTimer> |
|
|
|
#include <QTimer> |
|
|
@ -45,21 +35,7 @@ class QGCSingleton; |
|
|
|
class QGCToolbox; |
|
|
|
class QGCToolbox; |
|
|
|
class QGCFileDownload; |
|
|
|
class QGCFileDownload; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
class QGCApplication : public QGuiApplication |
|
|
|
* @brief The main application and management class. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* This class is started by the main method and provides |
|
|
|
|
|
|
|
* the central management unit of the groundstation application. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* Needs QApplication base to support QtCharts drawing module and |
|
|
|
|
|
|
|
* avoid application crashing on 5.12. Enforce no widget on mobile |
|
|
|
|
|
|
|
**/ |
|
|
|
|
|
|
|
class QGCApplication : |
|
|
|
|
|
|
|
#if defined(__mobile__) |
|
|
|
|
|
|
|
public QGuiApplication |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
public QApplication |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
Q_OBJECT |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
@ -214,5 +190,3 @@ private: |
|
|
|
|
|
|
|
|
|
|
|
/// @brief Returns the QGCApplication object singleton.
|
|
|
|
/// @brief Returns the QGCApplication object singleton.
|
|
|
|
QGCApplication* qgcApp(void); |
|
|
|
QGCApplication* qgcApp(void); |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|