paramconfig.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef PARAMCONFIG_H
  2. #define PARAMCONFIG_H
  3. #include <QDialog>
  4. #include "spdlog/spdlog.h"
  5. #include "EyeMapInfo.h"
  6. // #include <QStandardItemModel>
  7. // #include <QTableView>
  8. struct OneEyeMapInfo;
  9. class OneParamItem;
  10. namespace Ui {
  11. class ParamConfig;
  12. }
  13. class ParamConfig : public QDialog
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit ParamConfig(QWidget *parent = nullptr);
  18. ~ParamConfig();
  19. /* 创建项 */
  20. void createItem(const QList<OneEyeMapInfo> &listInfo);
  21. private:
  22. // /* 初始化表格 */
  23. // void initTable();
  24. // /* 初始化数据 */
  25. // void initData();
  26. /* 布局item */
  27. void layoutItem();
  28. /* 更新全局的眼图数据 */
  29. void updateEyeMapInfo();
  30. /* 获取时间刻度对应的字符串 */
  31. QString getTimeGridValueStr(OscTimeGridValue value);
  32. private slots:
  33. /* 关闭按钮 */
  34. void do_pBtn_close();
  35. /* 保存按钮 */
  36. void do_pBtn_save();
  37. /* 点击了取消按钮 */
  38. void do_pBtn_cancel();
  39. public:
  40. bool isOk = false;
  41. private:
  42. Ui::ParamConfig *ui;
  43. std::shared_ptr<spdlog::logger> m_logger = nullptr;
  44. QList<OneParamItem*> m_listItem;
  45. // QStandardItemModel *m_model = nullptr;
  46. // QTableView *m_tableView = nullptr;
  47. };
  48. #endif // PARAMCONFIG_H