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 FITKWidgetHBox.h
|
|
|
|
|
* @brief 水平布局组件界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*********************************************************************/
|
|
|
|
|
#ifndef _FITKWidgetHBox_H
|
|
|
|
|
#define _FITKWidgetHBox_H
|
|
|
|
|
|
|
|
|
|
#include "FITKEasyParamAPI.h"
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class FITKWidgetHBox;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class QRadioButton;
|
|
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief 水平布局组件界面
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
class FITKEasyParamAPI FITKWidgetHBox :public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT;
|
|
|
|
|
public:
|
|
|
|
|
FITKWidgetHBox(QList<QWidget*> widgetList, QWidget* parent = nullptr);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 析构函数
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-08-22
|
|
|
|
|
*/
|
|
|
|
|
~FITKWidgetHBox();
|
|
|
|
|
/**
|
|
|
|
|
* @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::FITKWidgetHBox* _ui = nullptr;
|
|
|
|
|
|
|
|
|
|
QList<QWidget*> _subWidgets = {};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // !_FITKWidgetHBox_H
|