#pragma once #include #include #include #include "mGuiJob_global.h" #define s_Image_Deploy "Deploy" #define s_Image_Fold "Fold" //主要是为了切换图片 class M_GUI_JOB_EXPORT ZxImage { public: ZxImage() { m_sName = s_Image_Deploy; } void loadImage(); public: QImage m_pImage; QString m_sName; }; //对话框左下角添加按钮响应 class M_GUI_JOB_EXPORT iWxParam : public QWidget { Q_OBJECT public: explicit iWxParam(bool bNovelQss, QWidget *parent = 0); ~iWxParam(); float getBtWidth(); float getBtHight(); protected: virtual void paintEvent(QPaintEvent *); virtual void resizeEvent(QResizeEvent *); virtual void mouseMoveEvent(QMouseEvent *mouseEvent); virtual void mousePressEvent(QMouseEvent *mouseEvent); virtual void leaveEvent(QEvent *e); signals: void sigShowParam(bool IsShow); private slots: void slotWxImageInit(); void slotIsAddBt(bool IsAdd); protected: //矩形框大小 QRect m_BtRect; //矩形框的宽和高 float m_fWidth; float m_fHight; //是否选中 bool m_bSelect; ZxImage m_pZxImage; //是否添加按钮 bool m_bAddBt; };