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.

124 lines
3.6 KiB
C

/**********************************************************************
* @file ThresholdDialog.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-19
*********************************************************************/
#ifndef _ThresholdDialog_H
#define _ThresholdDialog_H
#include "GUIDialogAPI.h"
#include "GUIDialogBase.h"
#include "FITK_Interface/FITKInterfaceCFDPost/FITKCFDPostEnum.h"
namespace Ui {
class ThresholdDialog;
}
namespace Interface {
class FITKCFDPostThreshold;
}
namespace GUI
{
class GUIDialogAPI ThresholdDialog : public GUIDialogBase
{
Q_OBJECT;
public:
ThresholdDialog(int dataID, EventOper::ParaWidgetInterfaceOperator* oper, bool isCreate);
~ThresholdDialog();
void init();
private slots:
;
void on_pushButton_OK_clicked();
void on_pushButton_Cancel_clicked();
void on_comboBox_Type_currentIndexChanged(int index);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
void InitCreate();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
void InitEdit();
/**
* @brief
* @return bool
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
bool OKCreate();
/**
* @brief
* @return bool
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
bool OKEdit();
/**
* @brief
* @param[i] data
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void getDataFromWidget(Interface::FITKCFDPostThreshold* data);
/**
* @brief
* @param[i] data
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void setDataToWidget(Interface::FITKCFDPostThreshold* data);
/**
* @brief
* @param[i] fieldType
* @param[i] fieldName
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
void getCurrentField(Interface::FITKPostFieldType& fieldType, QString& fieldName);
/**
* @brief
* @param[i] fieldType
* @param[i] fieldName
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
void setCurrentField(Interface::FITKPostFieldType fieldType, QString fieldName);
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-27
*/
Ui::ThresholdDialog* _ui = nullptr;
/**
* @brief id
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
int _currentDataID = -1;
/**
* @brief ID
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
int _parentDataID = -1;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
bool _isCreate = true;
};
}
#endif