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/GUIWidget/CompTreeItem.h

98 lines
2.4 KiB
C

/**
*
* @file CompTreeItem.h
* @brief item
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*
*/
#ifndef _CompTreeItem_H
#define _CompTreeItem_H
#include "FITK_Kernel/FITKCore/FITKAbstractGUI.h"
#include "GUIWidgetAPI.h"
class QTreeWidgetItem;
namespace Ui {
class CompTreeItem;
}
namespace GUI
{
/**
* @brief item
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
class GUIWIDGETAPI CompTreeItem : public Core::FITKWidget
{
Q_OBJECT;
public:
/**
* @brief Construct a new Comp Tree Item object
* @param[i] itme item
* @param[i] parent
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
CompTreeItem(QTreeWidgetItem* itme, QWidget* parent);
/**
* @brief Destroy the Comp Tree Item object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
~CompTreeItem();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void init();
/**
* @brief
* @param[i] icon
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void setButtonIcon(QIcon icon);
/**
* @brief
* @param[i] text
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void setText(QString text);
/**
* @brief item
* @return QTreeWidgetItem* item
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
QTreeWidgetItem* getTreeItem();
signals:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void sigIconButtonClicked();
private:
/**
* @brief item
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
QTreeWidgetItem* _item = nullptr;
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
Ui::CompTreeItem* _ui = nullptr;
};
}
#endif