IndexSystemWidget.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. signals:
  27. public slots:
  28. void slotTabCurrentChanged(int c);
  29. void slotSelectAllNodes();
  30. void slotClearAllNodes();
  31. void slotCreateRootNode();
  32. void slotImportIndex();
  33. void slotEditNode(CNodeData n);
  34. void slotAddSubNode(int pNumber);
  35. void slotUpdateNode(CNodeData node);
  36. void slotRemoveNode(int id);
  37. void slotNodeEdited(CNodeData node);
  38. void slotImportIndexConfirmed(int projId, int indexType);
  39. private:
  40. EditNodeWidget *m_editNode = nullptr;
  41. ImportIndexWidget *m_importIndex = nullptr;
  42. };
  43. #endif // INDEXSYSTEMWIDGET_H