1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef TEMPLATECONTROL_H
- #define TEMPLATECONTROL_H
- #include <QWidget>
- #include "CConfigBase.h"
- #include "CViewInterface.h"
- namespace Ui {
- class TemplateControl;
- }
- class TemplateControl : public QWidget
- {
- Q_OBJECT
- public:
- explicit TemplateControl(QWidget *parent = nullptr);
- ~TemplateControl();
- void UpDataVal(const ns_db::CONFIG_BASE_STRUCT& control);
- private:
- void Init();
- void AddPrTemplatePage(int vectorIndex, PR_TEMPLATE& prTemplate);
- void TemplateMoveToXYZRAxisPosition(UINT iModuleType, X_Y_Z_R_STRUCT pos);
- void onCreateParamPickTempClicked();
- private slots:
- void on_TemplateControl_customContextMenuRequested(const QPoint &pos);
- void on_tempComboBox_currentIndexChanged(int index);
- private:
- Ui::TemplateControl *ui;
- CManageDB* m_manageDB = nullptr;
- CProduct* m_pProduct = nullptr;
- ns_module::CCamerAndLamp* m_CamerAndLamp = nullptr;
- ns_module::CViewInterface* m_pTemplateCViewInterface = nullptr;
- ns_module::CViewInterface* m_pProgramCViewInterface = nullptr;
- /**ÄŁ°ĺ
- */
- std::vector<ns_db::PR_TEMPLATE> m_vecPrTemplate;
- /**m_vecPrTemplate Ë÷Ňý
- */
- int m_nIndexvecPrTemplate = 0;
- };
- #endif // TEMPLATECONTROL_H
|