You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/mGui/mGuiJob/iWxParam.h

67 lines
1.1 KiB
C++

#pragma once
#include <QWidget>
#include <QRect>
#include <QMouseEvent>
#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();
double getBtWidth();
double 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;
//矩形框的宽和高
double m_fWidth;
double m_fHight;
//是否选中
bool m_bSelect;
ZxImage m_pZxImage;
//是否添加按钮
bool m_bAddBt;
};