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/GUIGeometryDialog/GeometryBoolWidget.h

132 lines
3.4 KiB
C

/**
*
* @file GeometryBoolWidget.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*
*/
#ifndef _GeometryBoolWidget_H
#define _GeometryBoolWidget_H
#include "GUIGeometryDialogAPI.h"
#include "GeometryWidgetBase.h"
namespace Ui {
class GeometryBoolWidget;
}
namespace EventOper {
class ParaWidgetInterfaceOperator;
}
namespace GUI
{
/**
* @brief bool
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
enum class BoolType {
GeoBoolNone, ///空
GeoBoolFause, ///求和
GeoBoolCut, ///求差
GeoBoolCommon, ///求交
};
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
class GUIGeometryDialogAPI GeometryBoolWidget : public GeometryWidgetBase
{
Q_OBJECT;
public:
/**
* @brief Construct a new Geometry Bool Widget object
* @param[i] type
* @param[i] oper
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
GeometryBoolWidget(BoolType type, EventOper::ParaWidgetInterfaceOperator* oper);
/**
* @brief Destroy the Geometry Bool Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
~GeometryBoolWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void init();
private slots:
;
/**
* @brief 1
* @param[i] index
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_comboBox_Body1_activated(int index);
/**
* @brief 2
* @param[i] index
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_comboBox_Body2_activated(int index);
/**
* @brief 1
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_pushButton_Body1_clicked();
/**
* @brief 2
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_pushButton_Body2_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void on_pushButton_Apply_clicked();
private:
/**
* @brief
* @return true
* @return false
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
bool checkValue();
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
EventOper::ParaWidgetInterfaceOperator* _oper = nullptr;
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
Ui::GeometryBoolWidget* _ui = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
BoolType _type = BoolType::GeoBoolNone;
};
}
#endif