Commit 82d69691 authored by Patrick José Pereira's avatar Patrick José Pereira

ui: Move to pragma once

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent a9a570dd
/****************************************************************************
*
* (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