- 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>
62 lines
1.4 KiB
C++
62 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <LtsWidgets/lts_widgets_export.h>
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
namespace Ui
|
|
{
|
|
class LtsTextEditor;
|
|
}
|
|
|
|
class QTextEdit;
|
|
class QTextCharFormat;
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LTSWIDGETS_EXPORT LtsTextEditor : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
LtsTextEditor(QWidget *parent = nullptr);
|
|
~LtsTextEditor();
|
|
void enableBackgroundColor(bool onOff);
|
|
void setInitialBackgroundColor(const QColor &bgColor);
|
|
QTextEdit *textEdit();
|
|
QColor backgroundColor() const;
|
|
|
|
Q_SIGNALS:
|
|
void backgroundColorChanged(const QColor &bgColor);
|
|
|
|
private:
|
|
Ui::LtsTextEditor *m_ui;
|
|
QColor m_backgroundColor{Qt::white};
|
|
QColor m_foregroundColor{Qt::black};
|
|
|
|
private slots:
|
|
void slotCurrentCharFormatChanged(const QTextCharFormat &format);
|
|
void slotFontChanged(const QFont &f);
|
|
void slotTextColorChanged(const QColor &c);
|
|
void slotBackgroundColorChanged(const QColor &bgColor);
|
|
void slotAlignmentChanged();
|
|
void slotMergeFormatOnWordOrSelection(const QTextCharFormat &format);
|
|
void slotClipboardDataChanged();
|
|
void slotTextColor();
|
|
void slotBackgroundColor();
|
|
void slotTextSize(int index);
|
|
void slotTextSizeEditingFinished();
|
|
void slotTextFamily(int index);
|
|
void slotTextItalic();
|
|
void slotTextUnderline();
|
|
void slotTextBold();
|
|
//void slotTextStyle(int styleIndex);
|
|
void slotTextAlign();
|
|
};
|
|
|
|
} // namespace LtsWidgets
|
|
|
|
|