- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
51 lines
791 B
C++
51 lines
791 B
C++
#pragma once
|
|
|
|
#include "lts_widgets_export.h"
|
|
#include <QtWidgets/QWidget>
|
|
#include <QPainterPath>
|
|
|
|
|
|
class QPaintEvent;
|
|
class QResizeEvent;
|
|
|
|
|
|
namespace Ui
|
|
{
|
|
class NotiBox;
|
|
}
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
class LTSWIDGETS_EXPORT LtsNotificationBox : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
enum class MessageType
|
|
{
|
|
Success,
|
|
Error,
|
|
Warning,
|
|
Info,
|
|
};
|
|
|
|
explicit LtsNotificationBox(QWidget *parent = nullptr);
|
|
|
|
void message(const QString &title, const QString &text, MessageType type = MessageType::Error);
|
|
|
|
signals:
|
|
void signalClose();
|
|
void signalAck();
|
|
void signalLinkClicked(const QString &link);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *) override;
|
|
|
|
private:
|
|
Ui::NotiBox *m_ui;
|
|
QPainterPath roundRectPath;
|
|
const static int margin;
|
|
};
|
|
} // namespace LtsWidgets
|
|
|