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.
AppFlow/GUIDialog/GUIMeshDialog/CompBaseBoundary.h

142 lines
3.6 KiB
C

/**
*
* @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