1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef PROJECTVIEWINTERFACE_H |
6 | #define PROJECTVIEWINTERFACE_H |
7 | |
8 | #include "projectinfo.h" |
9 | |
10 | #include <framework/framework.h> |
11 | |
12 | class QStandardItem; |
13 | class ProjectViewInterface |
14 | { |
15 | public: |
16 | /*! |
17 | * \brief addRootItem 添加工程根数据节点 |
18 | * \param aitem |
19 | */ |
20 | DPF_INTERFACE(void, addRootItem, QStandardItem *aitem); |
21 | |
22 | /*! |
23 | * \brief removeRootItem 删除工程根数据节点 |
24 | * \param aitem |
25 | */ |
26 | DPF_INTERFACE(void, removeRootItem, QStandardItem *aitem); |
27 | |
28 | /*! |
29 | * \brief takeRootItem 从View移除但不删除工程节点 |
30 | * \param aitem |
31 | */ |
32 | DPF_INTERFACE(void, takeRootItem, QStandardItem *aitem); |
33 | |
34 | /*! |
35 | * \brief expandedDepth 展开工程子项根据深度 |
36 | * \param aitem root节点 |
37 | * \param depth 深度 |
38 | */ |
39 | DPF_INTERFACE(void, expandedDepth, QStandardItem *aitem, int depth); |
40 | |
41 | /*! |
42 | * \brief expandedAll 展开工程所有子项 |
43 | * \param aitem root节点 |
44 | */ |
45 | DPF_INTERFACE(void, expandedAll, QStandardItem *aitem); |
46 | }; |
47 | |
48 | #endif // PROJECTVIEWINTERFACE_H |
49 | |