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/GUICalculateDialog/SolutionWidget.h

95 lines
2.3 KiB
C

/**
*
* @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