/** * * @file SolutionWidget.h * @brief 求解器流场解界面 * @author BaGuijun (baguijun@163.com) * @date 2024-08-14 * */ #ifndef _SolutionWidget_H #define _SolutionWidget_H #include "GUICalculateDialogAPI.h" #include "GUICalculateWidgetBase.h" namespace Ui { class SolutionWidget; } namespace Interface { class FITKOFSolution; } namespace EventOper { class ParaWidgetInterfaceOperator; } namespace GUI { /** * @brief 求解器流场解界面 * @author BaGuijun (baguijun@163.com) * @date 2024-08-14 */ class GUICalculateDialogAPI SolutionWidget :public GUICalculateWidgetBase { Q_OBJECT; public: /** * @brief Construct a new Solution Widget object * @param[i] oper 操作器对象 * @param[i] parent 父对象 * @author BaGuijun (baguijun@163.com) * @date 2024-08-14 */ SolutionWidget(EventOper::ParaWidgetInterfaceOperator* oper, QWidget* parent = nullptr); /** * @brief Destroy the Solution Widget object * @author BaGuijun (baguijun@163.com) * @date 2024-08-14 */ ~SolutionWidget(); /** * @brief 初始化 * @author BaGuijun (baguijun@163.com) * @date 2024-08-14 */ void init(); protected: /** * @brief 显示事件重写 * @param[i] event 事件对象 * @author BaGuijun (baguijun@163.com) * @date 2024-08-16 */ void showEvent(QShowEvent *event); /** * @brief 界面大小变化事件重写 * @param[i] event 事件对象 * @author BaGuijun (baguijun@163.com) * @date 2024-08-16 */ void resizeEvent(QResizeEvent *event); private: void updateSlovers(); void updateSlover(); void updateResiduals(); void updateRelaxation(); void updateLimits(); private: /** * @brief ui * @author BaGuijun (baguijun@163.com) * @date 2024-08-14 */ Ui::SolutionWidget* _ui = nullptr; /** * @brief solution对象 * @author BaGuijun (baguijun@163.com) * @date 2024-08-23 */ Interface::FITKOFSolution* _solValue = nullptr; }; } #endif