IndexSystemWidget.h 942 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 setType(int type) override;
  16. void contextMenuEvent(QContextMenuEvent *event) override;
  17. private:
  18. void setupTabWidget();
  19. void initWidgets();
  20. void initLayout();
  21. void connectSignalsAndSlots();
  22. void addNode(CNodeData node);
  23. signals:
  24. public slots:
  25. void slotTabCurrentChanged(int c);
  26. void slotSelectAllNodes();
  27. void slotClearAllNodes();
  28. void slotCreateRootNode();
  29. void slotEditNode(CNodeData n);
  30. void slotAddSubNode(int pNumber);
  31. void slotUpdateNode(CNodeData node);
  32. void slotRemoveNode(int id);
  33. private:
  34. };
  35. #endif // INDEXSYSTEMWIDGET_H