Lts/Common: drop the 17 submodules excluded from the RELEASE_BUILD branch of Lts/Common/CMakeLists.txt (CodeGen, LtsAppManager, LtsBotan, LtsCoordinate, LtsElevation, LtsLogin, LtsMultiMonitor, LtsPluginManager, LtsPrinting, LtsProjectionWorkstation, LtsScriptTimeline, LtsSession, LtsTimeline, LtsTimelineClassic, LtsVirtualKeyboard, LtsWidgets, TopicEditorBase). Only the 13 subdirectories actually built remain. TrainingAreaBase: drop sources of targets excluded by IF(NOT RELEASE_BUILD) / IF(BUILD_RTI) (svcTabClient, svcTabServer, svcTrainingAreaBase exe, RecordReplayPlugin customization) and the 7 plugin directories not added in the release path (AdlerJson, ApacheHlaJson, DebugJsonDir, HlaJson, Nmea, UAS, WlsTetra). Only tabTelegrams, svcTabCommon and the TetraJson plugin are compiled. Cross-checked: no kept compiled source includes headers from the removed modules (GuiPluginInterface - the only LtsWidgets consumer - is itself NOT RELEASE_BUILD-guarded).
100 lines
2.3 KiB
C++
100 lines
2.3 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* Events provided by LtsWidgets
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "lts_widgets_export.h"
|
|
|
|
#include <QtCore/QEvent>
|
|
#include <QtGui/QPixmap>
|
|
#include <QtCore/QPointer>
|
|
#include <QtWidgets/QWidget>
|
|
#include <QtCore/QUrl>
|
|
|
|
|
|
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)
|
|
{}
|
|
|
|
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))
|
|
{}
|
|
|
|
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();
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
class LTSWIDGETS_EXPORT AddSnapshotEvent : public QEvent
|
|
{
|
|
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;
|
|
};
|
|
|
|
|
|
} // namespace LtsWidgets
|