添加OpenCv
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
#define P14_ATLASPAGE_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QMap>
|
||||
#include <QStringList>
|
||||
#include <QPoint>
|
||||
|
||||
namespace Ui {
|
||||
class P14_AtlasPage;
|
||||
@@ -15,8 +18,33 @@ public:
|
||||
explicit P14_AtlasPage(QWidget *parent = nullptr);
|
||||
~P14_AtlasPage();
|
||||
|
||||
private slots:
|
||||
void on_LV_FileList_currentTextChanged(const QString ¤tText);
|
||||
void on_But_Atlas_1_clicked();
|
||||
void on_But_Atlas_2_clicked();
|
||||
void on_But_Atlas_3_clicked();
|
||||
void on_But_Magnify_clicked();
|
||||
void on_But_Reduce_clicked();
|
||||
|
||||
private:
|
||||
void WinInit();
|
||||
bool eventFilter(QObject *obj, QEvent *ev) override; // 鼠标拖拽
|
||||
|
||||
Ui::P14_AtlasPage *ui;
|
||||
|
||||
/* 三组图册 */
|
||||
QMap<QString, QString> Atlas1, Atlas2, Atlas3;
|
||||
QStringList AtStr1, AtStr2, AtStr3;
|
||||
uint8_t CurrentAtlas = 0;
|
||||
|
||||
/* 当前显示尺寸 & 缩放 */
|
||||
uint32_t Img_W = 0;
|
||||
uint32_t Img_H = 0;
|
||||
float Img_Zoom = 1.0f;
|
||||
|
||||
/* 拖拽用 */
|
||||
QPoint dragStart;
|
||||
bool dragging = false;
|
||||
};
|
||||
|
||||
#endif // P14_ATLASPAGE_H
|
||||
|
||||
Reference in New Issue
Block a user