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.

154 lines
4.2 KiB
C

/**********************************************************************
* @file SliceDialog.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*********************************************************************/
#ifndef _SliceDialog_H
#define _SliceDialog_H
#include "GUIDialogBase.h"
#include "GUIDialogAPI.h"
namespace Ui {
class SliceDialog;
}
namespace Interface {
class FITKAbstractCFDPostData;
class PostGraphWidgetPlane;
}
namespace EventOper {
class ParaWidgetInterfaceOperator;
}
namespace GUI
{
class ClipSliceWidgetBase;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
class GUIDialogAPI SliceDialog :public GUIDialogBase
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] oper
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
SliceDialog(int dataID, EventOper::ParaWidgetInterfaceOperator* oper, bool isCreate);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
~SliceDialog();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void init();
private slots:
;
/**
* @brief OK
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void on_pushButton_OK_clicked();
/**
* @brief Cancel
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void on_pushButton_Cancel_clicked();
/**
* @brief
* @param[i] index
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
void on_comboBox_SliceType_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] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void getDataFromWidget(Interface::FITKAbstractCFDPostData* glyphData);
/**
* @brief
* @param[i] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void setDataToWidget(Interface::FITKAbstractCFDPostData* glyphData);
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
Ui::SliceDialog* _ui = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-08
*/
ClipSliceWidgetBase* _clipWidget = 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