43 lines
772 B
C
43 lines
772 B
C
|
|
#ifndef FORMBASE_H
|
|||
|
|
#define FORMBASE_H
|
|||
|
|
|
|||
|
|
#include <QWidget>
|
|||
|
|
#include <QPainter>
|
|||
|
|
#include <QPaintEvent>
|
|||
|
|
|
|||
|
|
#include "common.h"
|
|||
|
|
|
|||
|
|
#pragma execution_character_set("utf-8")
|
|||
|
|
|
|||
|
|
class FormWell;
|
|||
|
|
class FormBase : public QWidget
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
explicit FormBase(QWidget *parent = nullptr, QString strSlfName="", QString strWellName="");
|
|||
|
|
~FormBase();
|
|||
|
|
|
|||
|
|
void setBorderFlags(BorderFlags flags);
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
void paintEvent(QPaintEvent *event);
|
|||
|
|
|
|||
|
|
public slots:
|
|||
|
|
public:
|
|||
|
|
QString m_strUuid;
|
|||
|
|
QString m_strSlfName;
|
|||
|
|
QString m_strWellName;
|
|||
|
|
|
|||
|
|
QFont m_Font = QFont("微软雅黑", 14); //显示名称字体
|
|||
|
|
QColor m_Color; //颜色
|
|||
|
|
bool m_press;//判断鼠标是否按下
|
|||
|
|
BorderFlags m_BorderFlags;
|
|||
|
|
FormWell* m_pFormWell = NULL;
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|
|||
|
|
#endif // FORMBASE_H
|