ChangesizeTool.h 753 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <QDialog>
  3. #include <QDebug>
  4. #include "ui_ChangesizeTool.h"
  5. #include "../toolinterface.h"
  6. #include "HalconCpp.h"
  7. using namespace HalconCpp;
  8. namespace Ui {
  9. class changesize;
  10. }
  11. class changesize : public ToolInterface
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit changesize(QWidget *parent = 0);
  16. ~changesize();
  17. virtual QString ShowParameter();
  18. virtual int Execute();
  19. signals:
  20. // void updateParameter(QString);
  21. private slots:
  22. void on_BTN_Add1_clicked();
  23. void on_BTN_Sub1_clicked();
  24. void on_BTN_Add2_clicked();
  25. void on_BTN_Sub2_clicked();
  26. void on_lineEdit_width_editingFinished();
  27. void on_lineEdit_height_editingFinished();
  28. private:
  29. Ui::changesize *ui;
  30. int m_nWidth;
  31. int m_nHeight;
  32. };