|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @file CompBaseBoundary.h
|
|
|
|
|
* @brief 网格划分区域边界组件
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#ifndef _CompBaseBoundary_H
|
|
|
|
|
#define _CompBaseBoundary_H
|
|
|
|
|
|
|
|
|
|
#include "GUIMeshDialogAPI.h"
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
#include <QComboBox>
|
|
|
|
|
|
|
|
|
|
namespace GUI
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief 网格划分区域边界名称组件
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
class GUIMeshDialogAPI CompBaseBoundaryLabel : public QLabel
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT;
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Construct a new Comp Base Boundary Label object
|
|
|
|
|
* @param[i] parent 父对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
CompBaseBoundaryLabel(QWidget* parent = nullptr);
|
|
|
|
|
/**
|
|
|
|
|
* @brief Destroy the Comp Base Boundary Label object
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
virtual ~CompBaseBoundaryLabel();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 设置当前组件所在位置
|
|
|
|
|
* @param[i] pos 位置索引
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void setPos(int pos);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取当前组件所在的位置索引
|
|
|
|
|
* @return int 位置索引
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
int getPos();
|
|
|
|
|
signals:
|
|
|
|
|
;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 鼠标移动信号
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void sigMouseMove();
|
|
|
|
|
protected:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 鼠标移动事件
|
|
|
|
|
* @param[i] event 事件
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void mouseMoveEvent(QMouseEvent *event) override;
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 位置索引
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
int _pos = -1;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief 网格划分区域边界类型选择组件
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
class GUIMeshDialogAPI CompBaseBoundaryComboBox : public QComboBox
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT;
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Construct a new Comp Base Boundary Combo Box object
|
|
|
|
|
* @param[i] parent 父对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
CompBaseBoundaryComboBox(QWidget* parent = nullptr);
|
|
|
|
|
/**
|
|
|
|
|
* @brief Destroy the Comp Base Boundary Combo Box object
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
virtual ~CompBaseBoundaryComboBox();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 设置组件当前位置
|
|
|
|
|
* @param[i] pos 位置索引
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void setPos(int pos);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取位置索引
|
|
|
|
|
* @return int 位置索引
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
int getPos();
|
|
|
|
|
signals:
|
|
|
|
|
;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 鼠标移动信号
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void sigMouseMove();
|
|
|
|
|
protected:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 鼠标移动事件
|
|
|
|
|
* @param[i] event 事件
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
void mouseMoveEvent(QMouseEvent *event) override;
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 位置索引
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-14
|
|
|
|
|
*/
|
|
|
|
|
int _pos = -1;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|