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.
|
|
|
|
/**********************************************************************
|
|
|
|
|
* @file FITKWidgetVBox.h
|
|
|
|
|
* @brief 水平布局组件界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*********************************************************************/
|
|
|
|
|
#ifndef _FITKWidgetVBox_H
|
|
|
|
|
#define _FITKWidgetVBox_H
|
|
|
|
|
|
|
|
|
|
#include "FITKEasyParamAPI.h"
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class FITKWidgetVBox;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class QRadioButton;
|
|
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief 水平布局组件界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
class FITKEasyParamAPI FITKWidgetVBox : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT;
|
|
|
|
|
public:
|
|
|
|
|
FITKWidgetVBox(QList<QWidget*> widgetList, QWidget* parent = nullptr);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 析构函数
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
~FITKWidgetVBox();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 设置子项界面不可显示
|
|
|
|
|
* @param[i] enable 是否显示
|
|
|
|
|
* @param[i] isFirst 首项是否跳过
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
void setSubWidgetEnable(bool enable, bool isFirst = true);
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief ui对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
Ui::FITKWidgetVBox* _ui = nullptr;
|
|
|
|
|
|
|
|
|
|
QList<QWidget*> _subWidgets = {};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // !_FITKWidgetVBox_H
|