12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef INDEXSYSTEMWIDGET_H
- #define INDEXSYSTEMWIDGET_H
- #include "EvalWidget.h"
- #include <CNode.h>
- class CMindView;
- class EditNodeWidget;
- class ImportIndexWidget;
- /**
- * @brief The IndexSystemWidget class
- * 指标体系
- */
- class IndexSystemWidget : public EvalWidget
- {
- Q_OBJECT
- public:
- explicit IndexSystemWidget(ProjectInfo *proj, QWidget *parent = nullptr);
- void setType(int type) override;
- void contextMenuEvent(QContextMenuEvent *event) override;
- private:
- void setupTabWidget();
- void initWidgets();
- void initLayout();
- void connectSignalsAndSlots();
- void addNode(CNodeData node);
- bool hasData(QString indexName) const;
- void saveIndexPic();
- void saveIndexPic(QList<CNodeData> nodeList, int indexType);
- signals:
- public slots:
- void slotTabCurrentChanged(int c);
- void slotSelectAllNodes();
- void slotClearAllNodes();
- void slotCreateRootNode();
- void slotImportIndex();
- void slotEditNode(CNodeData n);
- void slotAddSubNode(int pNumber);
- void slotUpdateNode(CNodeData node);
- void slotRemoveNode(int id);
- void slotNodeEdited(CNodeData node);
- void slotImportIndexConfirmed(int projId, int indexType);
- private:
- EditNodeWidget *m_editNode = nullptr;
- ImportIndexWidget *m_importIndex = nullptr;
- };
- #endif // INDEXSYSTEMWIDGET_H
|