Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
848 files changed
+89305
-100020
No files matched your search
Executable → Regular
+82
-56
@@ -1,95 +1,121 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ltswidgets_export.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QEvent>
|
||||
#include <QObject>
|
||||
#include <QPixmap>
|
||||
#include <QPointer>
|
||||
#include <QWidget>
|
||||
#include <QUrl>
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
class LTSWIDGETS_EXPORT LtsLinkEvent : public QEvent
|
||||
{
|
||||
public:
|
||||
explicit LtsLinkEvent(QUrl url, QWidget *sourceBaseLayoutWidget)
|
||||
: QEvent(eventTypeId())
|
||||
, m_url(std::move(url))
|
||||
, m_sourceBaseLayoutWidget(sourceBaseLayoutWidget)
|
||||
{}
|
||||
public:
|
||||
explicit LtsLinkEvent(QUrl url, QWidget* sourceBaseLayoutWidget)
|
||||
: QEvent(eventTypeId()), m_url(std::move(url)), m_sourceBaseLayoutWidget(sourceBaseLayoutWidget)
|
||||
{
|
||||
}
|
||||
|
||||
static QEvent::Type eventTypeId();
|
||||
QWidget *sourceBaseLayoutWidget() const { return m_sourceBaseLayoutWidget.data(); }
|
||||
QUrl url() const { return m_url; }
|
||||
private:
|
||||
QUrl m_url;
|
||||
QPointer<QWidget> m_sourceBaseLayoutWidget;
|
||||
static QEvent::Type eventTypeId();
|
||||
|
||||
QWidget* sourceBaseLayoutWidget() const
|
||||
{
|
||||
return m_sourceBaseLayoutWidget.data();
|
||||
}
|
||||
|
||||
QUrl url() const
|
||||
{
|
||||
return m_url;
|
||||
}
|
||||
|
||||
private:
|
||||
QUrl m_url;
|
||||
QPointer<QWidget> m_sourceBaseLayoutWidget;
|
||||
};
|
||||
|
||||
class LTSWIDGETS_EXPORT SaveImageEvent : public QEvent
|
||||
{
|
||||
public:
|
||||
SaveImageEvent(QWidget *w, QPixmap &&pm)
|
||||
: QEvent(saveImageEventId()), m_widget(w), m_pix(std::move(pm))
|
||||
{}
|
||||
public:
|
||||
SaveImageEvent(QWidget* w, QPixmap&& pm) : QEvent(saveImageEventId()), m_widget(w), m_pix(std::move(pm)) {}
|
||||
|
||||
const QPixmap &pixmap() const { return m_pix; }
|
||||
QWidget *widget() const { return m_widget.data(); }
|
||||
static QEvent::Type saveImageEventId();
|
||||
private:
|
||||
QPointer<QWidget> m_widget;
|
||||
QPixmap m_pix;
|
||||
const QPixmap& pixmap() const
|
||||
{
|
||||
return m_pix;
|
||||
}
|
||||
|
||||
QWidget* widget() const
|
||||
{
|
||||
return m_widget.data();
|
||||
}
|
||||
|
||||
static QEvent::Type saveImageEventId();
|
||||
|
||||
private:
|
||||
QPointer<QWidget> m_widget;
|
||||
QPixmap m_pix;
|
||||
};
|
||||
|
||||
class LTSWIDGETS_EXPORT AddMarkerEvent : public QEvent
|
||||
{
|
||||
public:
|
||||
AddMarkerEvent()
|
||||
: QEvent(addMarkerEventId())
|
||||
{}
|
||||
static QEvent::Type addMarkerEventId();
|
||||
public:
|
||||
AddMarkerEvent() : QEvent(addMarkerEventId()) {}
|
||||
|
||||
static QEvent::Type addMarkerEventId();
|
||||
};
|
||||
|
||||
class LTSWIDGETS_EXPORT SetMarkerEvent : public QEvent
|
||||
{
|
||||
public:
|
||||
SetMarkerEvent(const QString &description)
|
||||
: QEvent(setMarkerEventId()), m_description(description)
|
||||
{}
|
||||
const QString &getDescription() const { return m_description; }
|
||||
void setDescription(const QString &description) { m_description = description; }
|
||||
static QEvent::Type setMarkerEventId();
|
||||
private:
|
||||
QString m_description;
|
||||
public:
|
||||
SetMarkerEvent(const QString& description) : QEvent(setMarkerEventId()), m_description(description) {}
|
||||
|
||||
const QString& getDescription() const
|
||||
{
|
||||
return m_description;
|
||||
}
|
||||
|
||||
void setDescription(const QString& description)
|
||||
{
|
||||
m_description = description;
|
||||
}
|
||||
|
||||
static QEvent::Type setMarkerEventId();
|
||||
|
||||
private:
|
||||
QString m_description;
|
||||
};
|
||||
|
||||
class LTSWIDGETS_EXPORT AddSnapshotEvent : public QEvent
|
||||
{
|
||||
public:
|
||||
AddSnapshotEvent()
|
||||
: QEvent(addSnapshotEventId())
|
||||
{}
|
||||
static QEvent::Type addSnapshotEventId();
|
||||
public:
|
||||
AddSnapshotEvent() : QEvent(addSnapshotEventId()) {}
|
||||
|
||||
static QEvent::Type addSnapshotEventId();
|
||||
};
|
||||
|
||||
class LTSWIDGETS_EXPORT SaveSnapshotEvent : public QEvent
|
||||
{
|
||||
public:
|
||||
SaveSnapshotEvent(const QString &description)
|
||||
: QEvent(saveSnapshotEventId()), m_description(description)
|
||||
{}
|
||||
const QString &getDescription() const { return m_description; }
|
||||
void setDescription(const QString &description) { m_description = description; }
|
||||
static QEvent::Type saveSnapshotEventId();
|
||||
private:
|
||||
QString m_description;
|
||||
public:
|
||||
SaveSnapshotEvent(const QString& description) : QEvent(saveSnapshotEventId()), m_description(description) {}
|
||||
|
||||
const QString& getDescription() const
|
||||
{
|
||||
return m_description;
|
||||
}
|
||||
|
||||
void setDescription(const QString& description)
|
||||
{
|
||||
m_description = description;
|
||||
}
|
||||
|
||||
static QEvent::Type saveSnapshotEventId();
|
||||
|
||||
private:
|
||||
QString m_description;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
} // namespace LtsWidgets
|
||||
Reference in new issue
Block a user