IndexSystemWidget.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef INDEXSYSTEMWIDGET_H
  2. #define INDEXSYSTEMWIDGET_H
  3. #include "EvalWidget.h"
  4. #include <CNode.h>
  5. class CMindView;
  6. class EditNodeWidget;
  7. class ImportIndexWidget;
  8. /**
  9. * @brief The IndexSystemWidget class
  10. * 指标体系
  11. */
  12. class IndexSystemWidget : public EvalWidget
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit IndexSystemWidget(ProjectInfo *proj, QWidget *parent = nullptr);
  17. void setType(int type) override;
  18. void contextMenuEvent(QContextMenuEvent *event) override;
  19. private:
  20. void setupTabWidget();
  21. void initWidgets();
  22. void initLayout();
  23. void connectSignalsAndSlots();
  24. void addNode(CNodeData node);
  25. bool hasData(QString indexName) const;
  26. void saveIndexPic();
  27. void saveIndexPic(QList<CNodeData> nodeList, int indexType);
  28. signals:
  29. public slots:
  30. void slotTabCurrentChanged(int c);
  31. void slotSelectAllNodes();
  32. void slotClearAllNodes();
  33. void slotCreateRootNode();
  34. void slotImportIndex();
  35. void slotEditNode(CNodeData n);
  36. void slotAddSubNode(int pNumber);
  37. void slotUpdateNode(CNodeData node);
  38. void slotRemoveNode(int id);
  39. void slotNodeEdited(CNodeData node);
  40. void slotImportIndexConfirmed(int projId, int indexType);
  41. private:
  42. EditNodeWidget *m_editNode = nullptr;
  43. ImportIndexWidget *m_importIndex = nullptr;
  44. };
  45. #endif // INDEXSYSTEMWIDGET_H