2025-08-20 23:06:28 +08:00
|
|
|
#ifndef P14_ATLASPAGE_H
|
|
|
|
|
#define P14_ATLASPAGE_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2025-09-15 22:28:43 +08:00
|
|
|
#include <QMap>
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
#include <QPoint>
|
2025-08-20 23:06:28 +08:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class P14_AtlasPage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class P14_AtlasPage : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit P14_AtlasPage(QWidget *parent = nullptr);
|
|
|
|
|
~P14_AtlasPage();
|
|
|
|
|
|
2025-09-15 22:28:43 +08:00
|
|
|
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();
|
|
|
|
|
|
2025-08-20 23:06:28 +08:00
|
|
|
private:
|
2025-09-15 22:28:43 +08:00
|
|
|
void WinInit();
|
|
|
|
|
bool eventFilter(QObject *obj, QEvent *ev) override; // 鼠标拖拽
|
|
|
|
|
|
2025-08-20 23:06:28 +08:00
|
|
|
Ui::P14_AtlasPage *ui;
|
2025-09-15 22:28:43 +08:00
|
|
|
|
|
|
|
|
/* 三组图册 */
|
|
|
|
|
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;
|
2025-08-20 23:06:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // P14_ATLASPAGE_H
|