Unverified Commit 7962c8d5 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6958 from patrickelectric/move_pragma_once

Move to pragma once
parents 9468fca3 42c7bc77
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_ITEM_H
#define VIDEO_ITEM_H
#pragma once
#include <QtQuick/QQuickItem>
#include "VideoSurface.h"
......@@ -46,4 +45,3 @@ private:
#endif
};
#endif // VIDEO_ITEM_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEORECEIVER_H
#define VIDEORECEIVER_H
#pragma once
#include "QGCLoggingCategory.h"
#include <QObject>
......@@ -150,4 +149,3 @@ protected:
VideoSettings* _videoSettings;
};
#endif // VIDEORECEIVER_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,10 +14,8 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_STREAMING_H
#define VIDEO_STREAMING_H
#pragma once
extern void initializeVideoStreaming (int &argc, char *argv[], char* filename, char* debuglevel);
extern void shutdownVideoStreaming ();
#endif // VIDEO_STREAMING_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_SURFACE_H
#define VIDEO_SURFACE_H
#pragma once
#include <QtCore/QObject>
......@@ -62,4 +61,3 @@ private:
Q_DECLARE_METATYPE(VideoSurface*)
#endif // VIDEO_SURFACE_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_SURFACE_P_H
#define VIDEO_SURFACE_P_H
#pragma once
#include "VideoSurface.h"
#include "VideoItem.h"
......@@ -31,4 +30,3 @@ public:
GstElement* videoSink;
};
#endif // VIDEO_SURFACE_P_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef BASEDELEGATE_H
#define BASEDELEGATE_H
#pragma once
#include <gst/gst.h>
......@@ -152,4 +151,3 @@ protected:
GstElement * const m_sink;
};
#endif // BASEDELEGATE_H
......@@ -20,8 +20,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef QTQUICK2VIDEOSINKDELEGATE_H
#define QTQUICK2VIDEOSINKDELEGATE_H
#pragma once
#include "basedelegate.h"
#include <QtQuick/QSGNode>
......@@ -35,4 +34,3 @@ public:
QSGNode *updateNode(QSGNode *node, const QRectF & targetArea);
};
#endif // QTQUICK2VIDEOSINKDELEGATE_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef QT_VIDEO_SINK_DELEGATE_H
#define QT_VIDEO_SINK_DELEGATE_H
#pragma once
#include "basedelegate.h"
#include "../painters/abstractsurfacepainter.h"
......@@ -72,4 +71,3 @@ private:
Q_DECLARE_OPERATORS_FOR_FLAGS(QtVideoSinkDelegate::PainterTypes)
#endif // QT_VIDEO_SINK_DELEGATE_H
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef QWIDGET_VIDEO_SINK_DELEGATE_H
#define QWIDGET_VIDEO_SINK_DELEGATE_H
#pragma once
#include "qtvideosinkdelegate.h"
#include <QEvent>
......@@ -53,4 +52,3 @@ private:
bool m_opaquePaintEventAttribute;
};
#endif // QWIDGET_VIDEO_SINK_DELEGATE_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_GL_VIDEO_SINK_H
#define GST_QT_GL_VIDEO_SINK_H
#pragma once
#include "gstqtglvideosinkbase.h"
......@@ -75,4 +74,3 @@ struct GstQtGLVideoSinkClass
};
#endif // GST_QT_VIDEO_SINK_NO_OPENGL
#endif // GST_QT_GL_VIDEO_SINK_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_GL_VIDEO_SINK_BASE_H
#define GST_QT_GL_VIDEO_SINK_BASE_H
#pragma once
#include "gstqtvideosinkbase.h"
#include <gst/video/colorbalance.h>
......@@ -97,4 +96,3 @@ struct GstQtGLVideoSinkBaseClass
};
#endif // GST_QT_VIDEO_SINK_NO_OPENGL
#endif // GST_QT_GL_VIDEO_SINK_BASE_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef __GST_QT_QUICK2_VIDEO_SINK_H__
#define __GST_QT_QUICK2_VIDEO_SINK_H__
#pragma once
#include <gst/video/gstvideosink.h>
#include <QtGlobal>
......@@ -60,4 +59,3 @@ struct _GstQtQuick2VideoSinkClass
GType gst_qt_quick2_video_sink_get_type (void);
#endif /* __GST_QT_QUICK2_VIDEO_SINK_H__ */
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_VIDEO_SINK_H
#define GST_QT_VIDEO_SINK_H
#pragma once
#include "gstqtvideosinkbase.h"
......@@ -64,4 +63,3 @@ struct GstQtVideoSinkClass
qreal x, qreal y, qreal width, qreal height);
};
#endif
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_VIDEO_SINK_BASE_H
#define GST_QT_VIDEO_SINK_BASE_H
#pragma once
#include "gstqtvideosinkplugin.h"
#include <gst/video/gstvideosink.h>
......@@ -81,4 +80,3 @@ struct GstQtVideoSinkBaseClass
GstVideoSinkClass parent_class;
};
#endif
#ifndef __g_cclosure_user_marshal_MARSHAL_H__
#define __g_cclosure_user_marshal_MARSHAL_H__
#pragma once
#include <glib-object.h>
......@@ -40,5 +39,4 @@ extern void g_cclosure_user_marshal_POINTER__POINTER_DOUBLE_DOUBLE_DOUBLE_DOUBLE
G_END_DECLS
#endif /* __g_cclosure_user_marshal_MARSHAL_H__ */
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_VIDEO_SINK_PLUGIN_H
#define GST_QT_VIDEO_SINK_PLUGIN_H
#pragma once
#include <gst/gst.h>
#include <QtGlobal>
......@@ -74,4 +73,3 @@ inline bool qRealIsDouble() { return sizeof(qreal) == sizeof(double); }
#define G_TYPE_QREAL qRealIsDouble() ? G_TYPE_DOUBLE : G_TYPE_FLOAT
#endif
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QWIDGET_VIDEO_SINK_H
#define GST_QWIDGET_VIDEO_SINK_H
#pragma once
#include "gstqtvideosinkbase.h"
......@@ -58,4 +57,3 @@ struct GstQWidgetVideoSinkClass
GstQtVideoSinkBaseClass parent_class;
};
#endif
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef ABSTRACTSURFACEPAINTER_H
#define ABSTRACTSURFACEPAINTER_H
#pragma once
#include "../utils/bufferformat.h"
#include <QRectF>
......@@ -46,4 +45,3 @@ public:
virtual void updateColors(int brightness, int contrast, int hue, int saturation) = 0;
};
#endif
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GENERICSURFACEPAINTER_H
#define GENERICSURFACEPAINTER_H
#pragma once
#include "abstractsurfacepainter.h"
#include <QSet>
......@@ -55,4 +54,3 @@ private:
QImage::Format m_imageFormat;
};
#endif // GENERICSURFACEPAINTER_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef OPENGLSURFACEPAINTER_H
#define OPENGLSURFACEPAINTER_H
#pragma once
#ifndef GST_QT_VIDEO_SINK_NO_OPENGL
......@@ -138,5 +137,3 @@ private:
};
#endif // GST_QT_VIDEO_SINK_NO_OPENGL
#endif // OPENGLSURFACEPAINTER_H
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEOMATERIAL_H
#define VIDEOMATERIAL_H
#pragma once
#include "../utils/bufferformat.h"
#include <QSize>
......@@ -80,4 +79,3 @@ private:
friend class VideoMaterialShader;
};
#endif // VIDEOMATERIAL_H
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEONODE_H
#define VIDEONODE_H
#pragma once
#include "../utils/bufferformat.h"
......@@ -53,4 +52,3 @@ private:
MaterialType m_materialType;
};
#endif // VIDEONODE_H
......@@ -14,8 +14,7 @@
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef BUFFERFORMAT_H
#define BUFFERFORMAT_H
#pragma once
#include "utils.h"
#include <QSharedData>
......@@ -67,4 +66,3 @@ Q_DECLARE_METATYPE(GstVideoFormat)
Q_DECLARE_METATYPE(GstVideoColorMatrix)
Q_DECLARE_METATYPE(BufferFormat)
#endif // BUFFERFORMAT_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GLUTILS_H
#define GLUTILS_H
#pragma once
#if defined(__mobile__) && !defined(Q_OS_MAC)
#include <QOpenGLFunctions>
......@@ -34,5 +33,3 @@
#define getQOpenGLFunctions() QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_2_0>()
#define QOpenGLFunctionsDef QOpenGLFunctions_2_0
#endif
#endif
......@@ -13,8 +13,7 @@
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UTILS_H
#define UTILS_H
#pragma once
#include <QRectF>
#include <QSize>
......@@ -75,4 +74,3 @@ struct PaintAreas
Q_DECLARE_METATYPE(Fraction)
Q_DECLARE_METATYPE(PaintAreas)
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -11,8 +11,7 @@
/// @file
/// @author Don Gagne <don@thegagnes.com>
#ifndef CustomCommandWidget_H
#define CustomCommandWidget_H
#pragma once
#include "QGCQmlWidgetHolder.h"
......@@ -24,4 +23,3 @@ public:
CustomCommandWidget(const QString& title, QAction* action, QWidget *parent = 0);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef CustomCommandWidgetController_H
#define CustomCommandWidgetController_H
#pragma once
#include <QObject>
......@@ -38,4 +37,3 @@ private:
static const char* _settingsKey;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef VIEWWIDGETCONTROLLER_H
#define VIEWWIDGETCONTROLLER_H
#pragma once
#include <QObject>
......@@ -38,4 +37,3 @@ private:
UASInterface* _uas;
};
#endif
\ No newline at end of file
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
*
*/
#ifndef BTLINK_H
#define BTLINK_H
#pragma once
#include <QString>
#include <QList>
......@@ -194,4 +193,3 @@ private:
};
#endif // BTLINK_H
#ifndef _CALLCONV_H_
#define _CALLCONV_H_
#pragma once
#ifdef Q_OS_WIN
#define CALLTYPEXBEE __stdcall
#else // Q_OS_WIN
#define CALLTYPEXBEE
#endif // Q_OS_WIN
#endif // _CALLCONV_H_
\ No newline at end of file
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef LINKCONFIGURATION_H
#define LINKCONFIGURATION_H
#pragma once
#include <QSettings>
......@@ -208,4 +207,3 @@ private:
typedef QSharedPointer<LinkConfiguration> SharedLinkConfigurationPointer;
#endif // LINKCONFIGURATION_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef _LINKINTERFACE_H_
#define _LINKINTERFACE_H_
#pragma once
#include <QThread>
#include <QDateTime>
......@@ -308,4 +307,3 @@ private:
typedef QSharedPointer<LinkInterface> SharedLinkInterfacePointer;
#endif // _LINKINTERFACE_H_
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -11,8 +11,7 @@
/// @file
/// @author Lorenz Meier <mavteam@student.ethz.ch>
#ifndef _LINKMANAGER_H_
#define _LINKMANAGER_H_
#pragma once
#include <QList>
#include <QMultiMap>
......@@ -244,4 +243,3 @@ private:
#endif
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef LogReplayLink_H
#define LogReplayLink_H
#pragma once
#include "LinkInterface.h"
#include "LinkConfiguration.h"
......@@ -155,4 +154,3 @@ private:
static const int cbTimestamp = sizeof(quint64);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef MAVLINKPROTOCOL_H_
#define MAVLINKPROTOCOL_H_
#pragma once
#include <QObject>
#include <QMutex>
......@@ -171,4 +170,3 @@ private:
MultiVehicleManager* _multiVehicleManager;
};
#endif // MAVLINKPROTOCOL_H_
......@@ -7,8 +7,7 @@
*
****************************************************************************/
#ifndef _MAVLINKMESSAGESTIMER_H_
#define _MAVLINKMESSAGESTIMER_H_
#pragma once
#include <QTimer>
#include <QObject>
......@@ -103,4 +102,3 @@ private:
static const int _messageReceivedTimeoutMSecs = 3500; // Signal connection lost after 3.5 seconds of no messages
};
#endif // _MAVLINKMESSAGESTIMER_H_
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MOCKLINK_H
#define MOCKLINK_H
#pragma once
#include <QMap>
#include <QLoggingCategory>
......@@ -259,4 +258,3 @@ private:
static const char* _failParam;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -11,8 +11,7 @@
/// @file
/// @author Don Gagne <don@thegagnes.com>
#ifndef MockLinkFileServer_H
#define MockLinkFileServer_H
#pragma once
#include "FileManager.h"
......@@ -110,4 +109,3 @@ private:
bool _randomDropsEnabled;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MockLinkMissionItemHandler_H
#define MockLinkMissionItemHandler_H
#pragma once
#include <QObject>
#include <QMap>
......@@ -115,4 +114,3 @@ private:
bool _failWriteMissionCountFirstResponse;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
*
*/
#ifndef QGCFLIGHTGEARLINK_H
#define QGCFLIGHTGEARLINK_H
#pragma once
#include <QString>
#include <QList>
......@@ -160,4 +159,3 @@ private:
float barometerOffsetkPa;
};
#endif // QGCFLIGHTGEARLINK_H
#ifndef QGCHILLINK_H
#define QGCHILLINK_H
#pragma once
#include <QThread>
#include <QProcess>
......@@ -148,4 +147,3 @@ signals:
void _invokeWriteBytes(QByteArray);
};
#endif // QGCHILLINK_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
*
*/
#ifndef QGCJSBSIMLINK_H
#define QGCJSBSIMLINK_H
#pragma once
#include <QString>
#include <QList>
......@@ -147,4 +146,3 @@ private:
void setName(QString name);
};
#endif // QGCJSBSimLink_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Lorenz Meier <pixhawk@switched.com>
*/
#ifndef QGCMAVLINK_H
#define QGCMAVLINK_H
#pragma once
#define MAVLINK_USE_MESSAGE_INFO
#define MAVLINK_EXTERNAL_RX_STATUS // Single m_mavlink_status instance is in QGCApplication.cc
......@@ -33,5 +32,4 @@ public:
static bool isVTOL(MAV_TYPE mavType);
};
#endif // QGCMAVLINK_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef QGCSerialPortInfo_H
#define QGCSerialPortInfo_H
#pragma once
#ifdef __android__
#include "qserialportinfo.h"
......@@ -91,4 +90,3 @@ private:
static QList<BoardFallback_t> _boardFallbackList;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
*
*/
#ifndef QGCXPLANESIMULATIONLINK_H
#define QGCXPLANESIMULATIONLINK_H
#pragma once
#include <QString>
#include <QList>
......@@ -235,4 +234,3 @@ protected:
void sendDataRef(QString ref, float value);
};
#endif // QGCXPLANESIMULATIONLINK_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -16,8 +16,7 @@
*
*/
#ifndef SERIALINTERFACE_H
#define SERIALINTERFACE_H
#pragma once
#include <QIODevice>
#include <QtSerialPort/QSerialPort>
......@@ -201,6 +200,5 @@ public:
}
};
#endif // SERIALINTERFACE_H
// vim:ts=4:sw=4:tw=78:expandtab:
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -16,8 +16,7 @@
*
*/
#ifndef SERIALLINK_H
#define SERIALLINK_H
#pragma once
class LinkInterface;
class SerialConfiguration;
......@@ -194,4 +193,3 @@ signals:
};
#endif // SERIALLINK_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef TCPLINK_H
#define TCPLINK_H
#pragma once
#include <QString>
#include <QList>
......@@ -188,4 +187,3 @@ private:
QMutex _statisticsMutex;
};
#endif // TCPLINK_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
*
*/
#ifndef UDPLINK_H
#define UDPLINK_H
#pragma once
#include <QString>
#include <QList>
......@@ -204,4 +203,3 @@ private:
};
#endif // UDPLINK_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef FILEDIALOGTEST_H
#define FILEDIALOGTEST_H
#pragma once
#include "UnitTest.h"
......@@ -33,4 +32,3 @@ private slots:
void _fileDialogExpectedIncorrect_test(void);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef FileManagerTEST_H
#define FileManagerTEST_H
#pragma once
#include <QObject>
#include <QtTest/QtTest>
......@@ -77,4 +76,3 @@ private:
QStringList _fileListReceived;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef FLIGHTGEARTEST_H
#define FLIGHTGEARTEST_H
#pragma once
#include "UnitTest.h"
#include "TCPLink.h"
......@@ -31,4 +30,3 @@ private slots:
void _parseUIArguments_test(void);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -13,8 +13,7 @@
///
/// @author David Goodman <dagoodma@gmail.com>
#ifndef GEOTEST_H
#define GEOTEST_H
#pragma once
#include <QGeoCoordinate>
......@@ -38,4 +37,3 @@ private:
QGeoCoordinate _origin;
};
#endif // GEOTEST_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef LINKMANAGERTEST_H
#define LINKMANAGERTEST_H
#pragma once
#include "UnitTest.h"
#include "LinkManager.h"
......@@ -54,4 +53,3 @@ private:
const char* _rgSignals[_cSignals];
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef MAINWINDOWTEST_H
#define MAINWINDOWTEST_H
#pragma once
#include "UnitTest.h"
#include "MainWindow.h"
......@@ -31,4 +30,3 @@ private:
void _connectWindowClose_test(MAV_AUTOPILOT autopilot);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef MAVLINKLOGTEST_H
#define MAVLINKLOGTEST_H
#pragma once
#include "UnitTest.h"
......@@ -48,4 +47,3 @@ private:
static const char* _saveLogFilename; ///< Filename to save log files to
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef MESSAGEBOXTEST_H
#define MESSAGEBOXTEST_H
#pragma once
#include "UnitTest.h"
......@@ -33,4 +32,3 @@ private slots:
void _badResponseButton_test(void);
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MULTISIGNALSPY_H
#define MULTISIGNALSPY_H
#pragma once
#include <QObject>
#include <QSignalSpy>
......@@ -80,4 +79,3 @@ private:
bool _timeout;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef RadioConfigTest_H
#define RadioConfigTest_H
#pragma once
#include "UnitTest.h"
#include "MockLink.h"
......@@ -116,4 +115,3 @@ private:
RadioComponentController* _controller;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef TCPLINKTEST_H
#define TCPLINKTEST_H
#pragma once
#include "UnitTest.h"
#include "TCPLink.h"
......@@ -67,4 +66,3 @@ private:
const char* _rgSignals[_cSignals];
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef TCPLOOPBACKSERVER_H
#define TCPLOOPBACKSERVER_H
#pragma once
#include <QThread>
#include <QTcpServer>
......@@ -44,4 +43,3 @@ private:
QTcpSocket* _tcpSocket;
};
#endif
\ No newline at end of file
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -13,9 +13,8 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef UNITTEST_H
#define UNITTEST_H
#ifndef __mobile__
#pragma once
#include <QObject>
#include <QtTest>
......@@ -43,15 +42,15 @@ class UnitTest : public QObject
public:
UnitTest(void);
virtual ~UnitTest(void);
/// @brief Called to run all the registered unit tests
/// @param singleTest Name of test to just run a single test
static int run(QString& singleTest);
/// @brief Sets up for an expected QGCMessageBox
/// @param response Response to take on message box
void setExpectedMessageBox(QMessageBox::StandardButton response);
/// @brief Types for UnitTest::setExpectedFileDialog
enum FileDialogType {
getExistingDirectory,
......@@ -59,30 +58,30 @@ public:
getOpenFileNames,
getSaveFileName
};
/// @brief Sets up for an expected QGCQFileDialog
/// @param type Type of expected file dialog
/// @param response Files to return from call. Multiple files only supported by getOpenFileNames
void setExpectedFileDialog(enum FileDialogType type, QStringList response);
enum {
expectFailNoFailure = 1 << 0, ///< not expecting any failures
expectFailNoDialog = 1 << 1, ///< expecting a failure due to no dialog displayed
expectFailBadResponseButton = 1 << 2, ///< expecting a failure due to bad button response (QGCMessageBox only)
expectFailWrongFileDialog = 1 << 3 ///< expecting one dialog type, got the wrong type (QGCQFileDialog ony)
};
/// @brief Check whether a message box was displayed and correctly responded to
// @param Expected failure response flags
void checkExpectedMessageBox(int expectFailFlags = expectFailNoFailure);
/// Checks that the specified number of message boxes where shown. Do not call setExpectedMessageBox when using this method.
void checkMultipleExpectedMessageBox(int messageCount);
/// @brief Check whether a message box was displayed and correctly responded to
// @param Expected failure response flags
void checkExpectedFileDialog(int expectFailFlags = expectFailNoFailure);
/// @brief Adds a unit test to the list. Should only be called by UnitTestWrapper.
static void _addTest(QObject* test);
......@@ -107,18 +106,18 @@ public:
static bool fuzzyCompareLatLon(const QGeoCoordinate& coord1, const QGeoCoordinate& coord2);
protected slots:
// These are all pure virtuals to force the derived class to implement each one and in turn
// call the UnitTest private implementation.
/// @brief Called before each test.
/// Make sure to call UnitTest::init first in your derived class.
virtual void init(void);
/// @brief Called after each test.
/// Make sure to call UnitTest::cleanup last in your derived class.
virtual void cleanup(void);
protected:
void _connectMockLink(MAV_AUTOPILOT autopilot = MAV_AUTOPILOT_PX4);
void _disconnectMockLink(void);
......@@ -139,38 +138,38 @@ private slots:
private:
// When the app is running in unit test mode the QGCMessageBox methods are re-routed here.
static QMessageBox::StandardButton _messageBox(QMessageBox::Icon icon,
const QString& title,
const QString& text,
QMessageBox::StandardButtons buttons,
QMessageBox::StandardButton defaultButton);
// This allows the private call to _messageBox
friend class QGCMessageBox;
// When the app is running in unit test mode the QGCQFileDialog methods are re-routed here.
static QString _getExistingDirectory(
QWidget* parent,
const QString& caption,
const QString& dir,
QFileDialog::Options options);
static QString _getOpenFileName(
QWidget* parent,
const QString& caption,
const QString& dir,
const QString& filter,
QFileDialog::Options options);
static QStringList _getOpenFileNames(
QWidget* parent,
const QString& caption,
const QString& dir,
const QString& filter,
QFileDialog::Options options);
static QString _getSaveFileName(
QWidget* parent,
const QString& caption,
......@@ -192,14 +191,14 @@ private:
static bool _badResponseButton; ///< Attempt to repond to expected message box with button not being displayed
static QMessageBox::StandardButton _messageBoxResponseButton; ///< Response to next message box
static int _missedMessageBoxCount; ///< Count of message box not checked with call to messageBoxWasDisplayed
// Catch QGCQFileDialog calls
static bool _fileDialogRespondedTo; ///< File dialog was responded to
static bool _fileDialogResponseSet; ///< true: _fileDialogResponse was set by a call to UnitTest::setExpectedFileDialog
static QStringList _fileDialogResponse; ///< Response to next file dialog
static enum FileDialogType _fileDialogExpectedType; ///< type of file dialog expected to show
static int _missedFileDialogCount; ///< Count of file dialogs not checked with call to UnitTest::fileDialogWasDisplayed
bool _unitTestRun; ///< true: Unit Test was run
bool _initCalled; ///< true: UnitTest::_init was called
bool _cleanupCalled; ///< true: UnitTest::_cleanup was called
......@@ -219,5 +218,4 @@ private:
QSharedPointer<T> _unitTest;
};
#endif // Android
#endif
#ifndef STABLE_HEADERS_H
#define STABLE_HEADERS_H
#pragma once
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
#endif // STABLE_HEADERS_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef FILEMANAGER_H
#define FILEMANAGER_H
#pragma once
#include <QObject>
#include <QDir>
......@@ -248,4 +247,3 @@ private:
friend class MockLinkFileServer;
};
#endif // FileManager_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -11,8 +11,7 @@
// UASInterface, UAS.h/cc are deprecated. All new functionality should go into Vehicle.h/cc
//
#ifndef _UAS_H_
#define _UAS_H_
#pragma once
#include "UASInterface.h"
#include <MAVLinkProtocol.h>
......@@ -328,4 +327,3 @@ private:
};
#endif // _UAS_H_
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -11,8 +11,7 @@
// UASInterface, UAS.h/cc are deprecated. All new functionality should go into Vehicle.h/cc
//
#ifndef _UASINTERFACE_H_
#define _UASINTERFACE_H_
#pragma once
#include <QObject>
#include <QList>
......@@ -192,4 +191,3 @@ signals:
Q_DECLARE_INTERFACE(UASInterface, "org.qgroundcontrol/1.0")
#endif // _UASINTERFACE_H_
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef QGCMESSAGEHANDLER_H
#define QGCMESSAGEHANDLER_H
#pragma once
#include <QObject>
#include <QVector>
......@@ -158,4 +157,3 @@ private:
MultiVehicleManager* _multiVehicleManager;
};
#endif // QGCMESSAGEHANDLER_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef HILDockWidget_H
#define HILDockWidget_H
#pragma once
#include "MultiVehicleDockWidget.h"
......@@ -26,4 +25,3 @@ protected:
virtual QWidget* _newVehicleWidget(Vehicle* vehicle, QWidget* parent);
};
#endif
#ifndef MAVLINKDECODER_H
#define MAVLINKDECODER_H
#pragma once
#include <QObject>
#include <QHash>
......@@ -53,4 +52,3 @@ protected:
QThread* creationThread; ///< QThread on which the object is created
};
#endif // MAVLINKDECODER_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
*
*/
#ifndef _MAINWINDOW_H_
#define _MAINWINDOW_H_
#pragma once
#ifdef __mobile__
#error Should not be include in mobile build
......@@ -181,4 +180,3 @@ private:
QString _getWindowGeometryKey();
};
#endif /* _MAINWINDOW_H_ */
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MultiVehicleDockWidget_H
#define MultiVehicleDockWidget_H
#pragma once
#include <QMap>
......@@ -51,4 +50,3 @@ private:
Ui::MultiVehicleDockWidget* _ui;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef QGCHILCONFIGURATION_H
#define QGCHILCONFIGURATION_H
#pragma once
#include <QWidget>
......@@ -41,4 +40,3 @@ private:
Ui::QGCHilConfiguration *ui;
};
#endif // QGCHILCONFIGURATION_H
#ifndef QGCHILFLIGHTGEARCONFIGURATION_H
#define QGCHILFLIGHTGEARCONFIGURATION_H
#pragma once
#include <QWidget>
......@@ -53,4 +52,3 @@ signals:
void barometerOffsetChanged(float barometerOffsetkPa);
};
#endif // QGCHILFLIGHTGEARCONFIGURATION_H
#ifndef QGCHILJSBSIMCONFIGURATION_H
#define QGCHILJSBSIMCONFIGURATION_H
#pragma once
#include <QWidget>
......@@ -29,4 +28,3 @@ private:
Ui::QGCHilJSBSimConfiguration *ui;
};
#endif // QGCHILJSBSIMCONFIGURATION_H
#ifndef QGCHILXPLANECONFIGURATION_H
#define QGCHILXPLANECONFIGURATION_H
#pragma once
#include <QWidget>
......@@ -31,4 +30,3 @@ private:
Ui::QGCHilXPlaneConfiguration *ui;
};
#endif // QGCHILXPLANECONFIGURATION_H
#ifndef QGCMAVLINKINSPECTOR_H
#define QGCMAVLINKINSPECTOR_H
#pragma once
#include <QMap>
#include <QTimer>
......@@ -72,4 +71,3 @@ private:
Ui::QGCMAVLinkInspector *ui;
};
#endif // QGCMAVLINKINSPECTOR_H
#ifndef QGCMAVLINKLOGPLAYER_H
#define QGCMAVLINKLOGPLAYER_H
#pragma once
#include <QWidget>
#include <QFile>
......@@ -56,4 +55,3 @@ private:
Ui::QGCMAVLinkLogPlayer* _ui;
};
#endif
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -12,8 +12,7 @@
/// @brief Dialog to configure RC to parameter mapping
/// @author Thomas Gubler <thomasgubler@gmail.com>
#ifndef QGCMAPRCTOPARAMDIALOG_H
#define QGCMAPRCTOPARAMDIALOG_H
#pragma once
#include <QDialog>
#include <QThread>
......@@ -57,4 +56,3 @@ private:
Ui::QGCMapRCToParamDialog* ui;
};
#endif // QGCMAPRCTOPARAMDIALOG_H
#ifndef QGCPLUGINHOST_H
#define QGCPLUGINHOST_H
#pragma once
#include <QWidget>
......@@ -19,4 +18,3 @@ private:
Ui::QGCPluginHost *ui;
};
#endif // QGCPLUGINHOST_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -8,8 +8,7 @@
****************************************************************************/
#ifndef QGCUASFILEVIEW_H
#define QGCUASFILEVIEW_H
#pragma once
#include <QWidget>
#include <QTreeWidgetItem>
......@@ -64,4 +63,3 @@ private:
CommandState _currentCommand; ///< Current active command
};
#endif // QGCUASFILEVIEW_H
#ifndef QGCUASFILEVIEWMULTI_H
#define QGCUASFILEVIEWMULTI_H
#pragma once
#include <QMap>
......@@ -33,4 +32,3 @@ private:
Ui::QGCUASFileViewMulti *ui;
};
#endif // QGCUASFILEVIEWMULTI_H
#ifndef CHARTPLOT_H
#define CHARTPLOT_H
#pragma once
#include <qwt_plot.h>
#include <qwt_plot_grid.h>
......@@ -42,4 +41,3 @@ protected:
float _gridWidth; ///< Width of gridlines in pixels
};
#endif // CHARTPLOT_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
*
*/
#ifndef INCREMENTALPLOT_H
#define INCREMENTALPLOT_H
#pragma once
#include <QTimer>
#include <qwt_plot.h>
......@@ -117,4 +116,3 @@ private:
void updateStyle(QwtPlotCurve *curve);
};
#endif /* INCREMENTALPLOT_H */
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -16,8 +16,7 @@
*
*/
#ifndef _LINECHARTPLOT_H_
#define _LINECHARTPLOT_H_
#pragma once
#define QUINT64_MIN Q_UINT64_C(0)
#define QUINT64_MAX Q_UINT64_C(18446744073709551615)
......@@ -296,4 +295,3 @@ signals:
void windowPositionChanged(quint64 position);
};
#endif // _LINECHARTPLOT_H_
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -15,8 +15,7 @@
* @author Lorenz Meier <mavteam@student.ethz.ch>
* @author Thomas Gubler <thomasgubler@student.ethz.ch>
*/
#ifndef LINECHARTWIDGET_H
#define LINECHARTWIDGET_H
#pragma once
#include <QGridLayout>
#include <QWidget>
......@@ -202,4 +201,3 @@ private:
QTimer _filterTimer;
};
#endif // LINECHARTWIDGET_H
#ifndef LINECHARTS_H
#define LINECHARTS_H
#pragma once
#include <QStackedWidget>
#include <QMap>
......@@ -29,4 +28,3 @@ private:
MAVLinkDecoder* _mavlinkDecoder;
};
#endif // LINECHARTS_H
#ifndef _SCROLLZOOMER_H
#define _SCROLLZOOMER_H
#pragma once
#include <qglobal.h>
#if QT_VERSION < 0x040000
......@@ -73,4 +72,3 @@ private:
bool d_inZoom;
};
#endif
#ifndef _SCROLLBAR_H
#define _SCROLLBAR_H 1
#pragma once
#include <qscrollbar.h>
......@@ -49,5 +48,3 @@ private:
double d_maxBase;
int d_baseTicks;
};
#endif
#ifndef QGCUNCONNECTEDINFOWIDGET_H
#define QGCUNCONNECTEDINFOWIDGET_H
#pragma once
#include <QWidget>
......@@ -35,4 +34,3 @@ public slots:
void addLink();
};
#endif // QGCUNCONNECTEDINFOWIDGET_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment