IndexSystemWidget.h 905 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 slotAddSubNode(int pNumber);
  30. void slotUpdateNode(CNodeData node);
  31. void slotRemoveNode(int id);
  32. private:
  33. };
  34. #endif // INDEXSYSTEMWIDGET_H