dtmovesidebydistance_dialog.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*- coding: utf-8 -*-
  2. """
  3. dtmovesidebydistance_dialog
  4. ```````````````````````````
  5. """
  6. """
  7. Part of DigitizingTools, a QGIS plugin that
  8. subsumes different tools neded during digitizing sessions
  9. * begin : 2013-08-15
  10. * copyright : (C) 2013 by Angelos Tzotsos
  11. * email : tzotsos@gmail.com
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16. """
  17. from qgis.PyQt import QtWidgets, QtCore, uic
  18. import os
  19. FORM_CLASS, _ = uic.loadUiType(os.path.join(
  20. os.path.dirname(__file__), 'ui_dtmovesidebydistance.ui'))
  21. class DtMoveSideByDistance_Dialog(QtWidgets.QDialog, FORM_CLASS):
  22. unsetTool = QtCore.pyqtSignal()
  23. moveSide = QtCore.pyqtSignal()
  24. def __init__(self, parent, flags):
  25. super().__init__(parent, flags)
  26. self.setupUi(self)
  27. def initGui(self):
  28. pass
  29. @QtCore.pyqtSlot()
  30. def on_buttonClose_clicked(self):
  31. self.unsetTool.emit()
  32. self.close()
  33. @QtCore.pyqtSlot()
  34. def on_moveButton_clicked(self):
  35. self.moveSide.emit()
  36. pass