IndexSystemWidget.h 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef INDEXSYSTEMWIDGET_H
  2. #define INDEXSYSTEMWIDGET_H
  3. #include "EvalWidget.h"
  4. #include <CNode.h>
  5. class CMindView;
  6. /**
  7. * @brief The IndexSystemWidget class
  8. * 指标体系
  9. */
  10. class IndexSystemWidget : public EvalWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit IndexSystemWidget(ProjectInfo *proj, QWidget *parent = nullptr);
  15. void initWidgets();
  16. void initLayout();
  17. void connectSignalsAndSlots();
  18. void setType(int type) override;
  19. void contextMenuEvent(QContextMenuEvent *event) override;
  20. void addNode(CNodeData node);
  21. void removeNode(int id);
  22. signals:
  23. public slots:
  24. void slotSelectAllNodes();
  25. void slotClearAllNodes();
  26. void slotCreateRootNode();
  27. void slotAddSubNode(int pNumber);
  28. void slotUpdateNode(CNodeData node);
  29. void slotRemoveNode(int id);
  30. private:
  31. CMindView *m_mindView = nullptr;
  32. };
  33. #endif // INDEXSYSTEMWIDGET_H