- 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>
67 lines
1.2 KiB
C++
67 lines
1.2 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* Crop pictures
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Raphael Becker
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QtWidgets/QMainWindow>
|
|
|
|
namespace Ui
|
|
{
|
|
class PictureEditing;
|
|
}
|
|
|
|
namespace LtsWidgets{
|
|
class LtsPictureView;
|
|
}
|
|
|
|
|
|
class LtsPictureEditing : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LtsPictureEditing(QWidget *parent = nullptr);
|
|
~LtsPictureEditing();
|
|
|
|
private:
|
|
QImage m_grayImage;
|
|
QImage m_image;
|
|
|
|
LtsWidgets::LtsPictureView *m_gvPicture;
|
|
|
|
Ui::PictureEditing *m_ui;
|
|
|
|
private:
|
|
void setSpinboxLimits(const QSize &picSize, bool setValues = true);
|
|
void clear();
|
|
void addViewToFrame();
|
|
void initRatio();
|
|
|
|
private slots:
|
|
void onOpenImage();
|
|
void onSetSize();
|
|
void setSpinboxValues(const QRect &picRect);
|
|
void onRatioChanged();
|
|
void onRatioClicked();
|
|
void onSavePicture();
|
|
void onLeftChanged(int left);
|
|
void onRightChanged(int right);
|
|
void onTopChanged(int top);
|
|
void onBottomChanged(int bottom);
|
|
|
|
signals:
|
|
void setPicture(const QImage &, const QPoint &, const bool flag);
|
|
void setAspectRatio(double ratio);
|
|
void ratioClicked(bool enabled);
|
|
int leftChanged(int left);
|
|
int rightChanged(int right);
|
|
int topChanged(int top);
|
|
int bottomChanged(int bottom);
|
|
};
|