Commit 4e5c5905 authored by Fernando Monteiro's avatar Fernando Monteiro
Browse files

Use pragma once for header guards

parent efd225a7
Pipeline #153510 passed with stage
in 6 minutes and 55 seconds
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef SAMPLEPLUGIN_H
#define SAMPLEPLUGIN_H
#pragma once
#include <QObject>
#include <QStringList>
......@@ -23,5 +22,3 @@ public:
QUrl generatedClip(const QString &renderer, const QString &generator, const QUrl &projectFolder, const QStringList &lumaNames, const QStringList &lumaFiles,
const double fps, const int width, const int height);
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef RENDERJOB_H
#define RENDERJOB_H
#pragma once
#ifdef NODBUS
#include <QLocalSocket>
......@@ -78,5 +77,3 @@ private:
signals:
void renderingFinished();
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ABSTRACTTREEMODEL_H
#define ABSTRACTTREEMODEL_H
#pragma once
#include "undohelper.hpp"
#include <QAbstractItemModel>
......@@ -107,5 +106,3 @@ protected:
static int currentTreeId;
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef TREEITEM_H
#define TREEITEM_H
#pragma once
#include "definitions.h"
#include <QList>
......@@ -172,4 +171,3 @@ template <class T, class BinaryOperation> T TreeItem::accumulate_const(T init, B
}
return res;
}
#endif
......@@ -5,7 +5,7 @@ set(kdenlive_SRCS
assets/assetlist/model/assetfilter.cpp
assets/assetlist/model/assettreemodel.cpp
assets/assetpanel.cpp
assets/keyframes/model/rotoscoping/bpoint.cpp
assets/bpoint.cpp
assets/keyframes/model/keyframemonitorhelper.cpp
assets/keyframes/model/rotoscoping/rotohelper.cpp
assets/keyframes/model/corners/cornershelper.cpp
......@@ -41,7 +41,6 @@ set(kdenlive_SRCS
# curves widget
assets/view/widgets/curves/abstractcurvewidget.h
assets/view/widgets/curves/bezier/beziersplineeditor.cpp
assets/view/widgets/curves/bezier/bpoint.cpp
assets/view/widgets/curves/bezier/cubicbezierspline.cpp
assets/view/widgets/curves/cubic/kis_curve_widget.cpp
assets/view/widgets/curves/cubic/kis_cubic_curve.cpp
......
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ASSETSREPOSITORY_H
#define ASSETSREPOSITORY_H
#pragma once
#include "definitions.h"
#include <QSet>
......@@ -103,5 +102,3 @@ protected:
};
#include "abstractassetsrepository.ipp"
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ASSETFILTER_H
#define ASSETFILTER_H
#pragma once
#include <QSortFilterProxyModel>
#include <memory>
......@@ -51,4 +50,3 @@ protected:
bool m_name_enabled{false};
QString m_name_value;
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ASSETTREEMODEL_H
#define ASSETTREEMODEL_H
#pragma once
#include "abstractmodel/abstracttreemodel.hpp"
......@@ -38,5 +37,3 @@ public:
protected:
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ASSETLISTWIDGET_H
#define ASSETLISTWIDGET_H
#pragma once
#include "effects/effectsrepository.hpp"
#include <QQuickWidget>
......@@ -69,5 +68,3 @@ protected:
signals:
void activateAsset(const QVariantMap data);
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ASSETICONPROVIDER_H
#define ASSETICONPROVIDER_H
#pragma once
#include <KImageCache>
#include <QCache>
......@@ -27,5 +26,3 @@ private:
bool m_effect;
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ASSETPANEL_H
#define ASSETPANEL_H
#pragma once
#include <QVBoxLayout>
#include <QWidget>
......@@ -112,5 +111,3 @@ signals:
void switchCurrentComposition(int tid, const QString &compoId);
void slotSaveStack();
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef BPOINT_H
#define BPOINT_H
#pragma once
#include <QPointF>
......@@ -54,5 +53,3 @@ public:
/** handles are linked to achieve a natural locking spline => PH1 = -r*PH2 ; a line can be drawn through h1, p, h2 */
bool handlesLinked{true};
};
#endif
......@@ -5,8 +5,7 @@ This file is part of Kdenlive. See www.kdenlive.org.
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef CORNERHELPER_H
#define CORNERHELPER_H
#pragma once
#include "assets/keyframes/model/keyframemonitorhelper.hpp"
......@@ -37,5 +36,3 @@ public:
private slots:
void slotUpdateFromMonitorData(const QVariantList &v) override;
};
#endif
......@@ -8,7 +8,7 @@
#include "doc/docundostack.hpp"
#include "macros.hpp"
#include "profiles/profilemodel.hpp"
#include "rotoscoping/bpoint.h"
#include "../../bpoint.h"
#include "rotoscoping/rotohelper.hpp"
#include <QDebug>
......
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef KEYFRAMELISTMODEL_H
#define KEYFRAMELISTMODEL_H
#pragma once
#include "assets/model/assetparametermodel.hpp"
#include "definitions.h"
......@@ -217,5 +216,3 @@ public:
auto end() -> decltype(m_keyframeList.end()) { return m_keyframeList.end(); }
};
// Q_DECLARE_METATYPE(KeyframeModel *)
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef KEYFRAMELISTMODELLIST_H
#define KEYFRAMELISTMODELLIST_H
#pragma once
#include "definitions.h"
#include "utils/gentime.h"
......@@ -186,5 +185,3 @@ public:
auto begin() -> decltype(m_parameters.begin()->second->begin()) { return m_parameters.begin()->second->begin(); }
auto end() -> decltype(m_parameters.begin()->second->end()) { return m_parameters.begin()->second->end(); }
};
#endif
......@@ -5,8 +5,7 @@ This file is part of Kdenlive. See www.kdenlive.org.
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef KFRMONITORHELPER_H
#define KFRMONITORHELPER_H
#pragma once
#include <QPersistentModelIndex>
......@@ -64,5 +63,3 @@ signals:
*/
void updateKeyframeData(QPersistentModelIndex index, const QVariant &v);
};
#endif
......@@ -5,8 +5,7 @@ This file is part of Kdenlive. See www.kdenlive.org.
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef RECTHELPER_H
#define RECTHELPER_H
#pragma once
#include "assets/keyframes/model/keyframemonitorhelper.hpp"
......@@ -43,5 +42,3 @@ public:
private slots:
void slotUpdateFromMonitorRect(const QRect &rect);
};
#endif
/*
SPDX-FileCopyrightText: 2011 Till Theato <root@ttill.de>
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef BPOINT_H
#define BPOINT_H
#include <QPointF>
/** @class BPoint
* @brief Represents a point in a cubic Bézier spline.
*/
class BPoint
{
public:
enum class PointType { H1 = 0, P = 1, H2 = 2 };
/** @brief Sets the point to -1, -1 to mark it as unusable (until point + handles have proper values) */
BPoint();
/** @brief Sets up according to the params. Linking detecting is done using autoSetLinked(). */
BPoint(const QPointF &handle1, const QPointF &point, const QPointF &handle2);
bool operator==(const BPoint &point) const;
/** @brief Returns h1 if i = 0, p if i = 1, h2 if i = 2. */
QPointF &operator[](int i);
/** @brief Returns h1 if i = 0, p if i = 1, h2 if i = 2. */
const QPointF &operator[](int i) const;
/** @brief Sets p to @param point.
* @param updateHandles (default = true) Whether to make sure the handles keep their position relative to p. */
void setP(const QPointF &point, bool updateHandles = true);
/** @brief Sets h1 to @param handle1.
*
* If handlesLinked is true h2 is updated. */
void setH1(const QPointF &handle1);
/** @brief Sets h2 to @param handle2.
* If handlesLinked is true h1 is updated. */
void setH2(const QPointF &handle2);
/** @brief Sets handlesLinked to true if the handles are in a linked state (line through h1, p, h2) otherwise to false. */
void autoSetLinked();
/** @brief Toggles the link of the handles to @param linked*/
void setHandlesLinked(bool linked);
/** handle 1 */
QPointF h1;
/** point */
QPointF p;
/** handle 2 */
QPointF h2;
/** handles are linked to achieve a natural locking spline => PH1 = -r*PH2 ; a line can be drawn through h1, p, h2 */
bool handlesLinked{true};
};
#endif
Supports Markdown
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