Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
+60
@@ -0,0 +1,60 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <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);
|
||||
};
|
||||
Reference in new issue
Block a user