#ifndef P14_ATLASPAGE_H #define P14_ATLASPAGE_H #include #include #include #include namespace Ui { class P14_AtlasPage; } class P14_AtlasPage : public QWidget { Q_OBJECT 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 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