TemplateControl.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef TEMPLATECONTROL_H
  2. #define TEMPLATECONTROL_H
  3. #include <QWidget>
  4. #include "CConfigBase.h"
  5. #include "CViewInterface.h"
  6. namespace Ui {
  7. class TemplateControl;
  8. }
  9. class TemplateControl : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit TemplateControl(QWidget *parent = nullptr);
  14. ~TemplateControl();
  15. void UpDataVal(const ns_db::CONFIG_BASE_STRUCT& control);
  16. private:
  17. void Init();
  18. void AddPrTemplatePage(int vectorIndex, PR_TEMPLATE& prTemplate);
  19. void TemplateMoveToXYZRAxisPosition(UINT iModuleType, X_Y_Z_R_STRUCT pos);
  20. void onCreateParamPickTempClicked();
  21. private slots:
  22. void on_TemplateControl_customContextMenuRequested(const QPoint &pos);
  23. void on_tempComboBox_currentIndexChanged(int index);
  24. private:
  25. Ui::TemplateControl *ui;
  26. CManageDB* m_manageDB = nullptr;
  27. CProduct* m_pProduct = nullptr;
  28. ns_module::CCamerAndLamp* m_CamerAndLamp = nullptr;
  29. ns_module::CViewInterface* m_pTemplateCViewInterface = nullptr;
  30. ns_module::CViewInterface* m_pProgramCViewInterface = nullptr;
  31. /**Ä£°å
  32. */
  33. std::vector<ns_db::PR_TEMPLATE> m_vecPrTemplate;
  34. /**m_vecPrTemplate Ë÷Òý
  35. */
  36. int m_nIndexvecPrTemplate = 0;
  37. };
  38. #endif // TEMPLATECONTROL_H