DataCollectionWidget.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef DATACOLLECTIONWIDGET_H
  2. #define DATACOLLECTIONWIDGET_H
  3. #include "EvalWidget.h"
  4. class ConfigExpertDataWidget;
  5. class ConfigMeasureDataWidget;
  6. class ConfigSchemeDataWidget;
  7. class CreateSchemeWidget;
  8. class NodeMatrixInfo;
  9. class DataEvaluator;
  10. class UserConfig;
  11. class QFUser;
  12. class PushButton;
  13. class QTabWidget;
  14. class QHBoxLayout;
  15. class QComboBox;
  16. /**
  17. * @brief The DataCollectionWidget class
  18. * 数据采集
  19. */
  20. class DataCollectionWidget : public EvalWidget
  21. {
  22. Q_OBJECT
  23. public:
  24. explicit DataCollectionWidget(ProjectInfo *proj, QWidget *parent);
  25. void setType(int type) override;
  26. private:
  27. void setupTabWidget();
  28. private slots:
  29. void slotTabCurrentChanged(int index);
  30. void slotCalc();
  31. void slotImportData(UserConfig *config);
  32. void slotConfigSelectionChanged();
  33. void slotAddScheme();
  34. void slotDeleteScheme();
  35. void slotAddSchemeInfo(const QString name, const QString remark, const QString path);
  36. void slotAddMeasureData();
  37. void slotCurrentMeasureDataSelected();
  38. void slotMeasureDataEdited(NodeMatrixInfo *info);
  39. signals:
  40. private:
  41. ConfigExpertDataWidget *m_configExpert = nullptr;
  42. ConfigMeasureDataWidget *m_configMeasure = nullptr;
  43. ConfigSchemeDataWidget *m_configScheme = nullptr;
  44. QComboBox *m_comboBox = nullptr;
  45. PushButton *m_calcBtn = nullptr;
  46. CreateSchemeWidget *m_addSchemeWidget = nullptr;
  47. DataEvaluator *m_evaluator = nullptr;
  48. };
  49. #endif // DATACOLLECTIONWIDGET_H