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.3 KiB
C

/**********************************************************************
* @file GlyphDialog.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
********************************************************************
*/
#ifndef _GlyphDialog_H
#define _GlyphDialog_H
#include "GUIDialogAPI.h"
#include "GUIDialogBase.h"
#include "FITK_Interface/FITKInterfaceCFDPost/FITKAbstractCFDPostData.h"
namespace Ui {
class GlyphDialog;
}
namespace Interface {
class FITKCFDPostGlyph;
}
namespace GUI
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
class GUIDialogAPI GlyphDialog : public GUIDialogBase
{
Q_OBJECT;
public:
/**
* @brief
* @param[i] dataID id
* @param[i] oper
* @param[i] isCreate
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
GlyphDialog(int dataID, EventOper::ParaWidgetInterfaceOperator* oper, bool isCreate);
/**
* @brief
* @return void
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
~GlyphDialog();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void init();
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
void showEvent(QShowEvent* event);
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-24
*/
void closeEvent(QCloseEvent* event);
private slots:
;
/**
* @brief OK
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void on_pushButton_OK_clicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
void on_pushButton_Cancel_clicked();
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::FITKCFDPostGlyph* glyphData);
/**
* @brief
* @param[i] glyphData
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-26
*/
void setDataToWidget(Interface::FITKCFDPostGlyph* glyphData);
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-18
*/
Ui::GlyphDialog* _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