- 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>
60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
|
|
|
|
#pragma once
|
|
#include <QMainWindow>
|
|
#include <QObject>
|
|
|
|
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);
|
|
};
|