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/TreeWidget.h

148 lines
4.3 KiB
C

/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
#ifndef _TreeWidget_H__
#define _TreeWidget_H__
#include <QTreeWidget>
#include "GUIWidgetAPI.h"
class QTreeWidget;
class QTreeWidgetItem;
namespace GUI {
class ModelCaseTree;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
class GUIWIDGETAPI TreeWidget : public QTreeWidget
{
Q_OBJECT;
public:
/**
* @brief Construct a new Tree Widget object
* @param[i] parent My Param doc
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
TreeWidget(QWidget* parent);
/**
* @brief Destroy the Tree Widget object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
~TreeWidget();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void updateTree();
private slots:
;
/**
* @brief
* @param[i] point
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void onModelCustomContextMenu(QPoint point);
/**
* @brief
* @param[i] item
* @param[i] column
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void onItemClicked(QTreeWidgetItem *item, int column);
/**
* @brief
* @param[i] item
* @param[i] column
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void onDoubleClicked(QTreeWidgetItem *item, int column);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void acitonClicked();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void soltIconButtonClicked();
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void updateGeometryItems();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void updateMeshItems();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-30
*/
void updateSetupItems();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-30
*/
void updateRunItems();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-30
*/
void updatePostItems();
/**
* @brief local
* @param[i] parentItem
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void updateMeshLocalItems(QTreeWidgetItem* parentItem);
/**
* @brief boundary
* @param[i] parentItem
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void updateMeshBoundaryItems(QTreeWidgetItem* parentItem);
/**
* @brief Setup
* @param[i] parentItem
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void updateSetupItems(QTreeWidgetItem* parentItem);
/**
* @brief action
* @param[i] menu My Param doc
* @param[i] actions My Param doc
* @param[i] objectName My Param doc
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-06
*/
void addMenuActions(QMenu& menu, QString actions, QString objectName);
};
}
#endif