#ifndef INDEXSYSTEMWIDGET_H #define INDEXSYSTEMWIDGET_H #include "EvalWidget.h" #include 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 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