- in Geometry Editor, the Rectangle Editor Tool allows creation of rectangles with the mouse but projecting the length and width dimensions by typing a number (the choice of setting the length or width is based on the direction of the mouse move after setting the first point)

- in Geometry Editor, the Rectangle Editor Tool has now Ui which allows adding a rectangle by parameters
This commit is contained in:
Marius Stanciu
2022-04-16 02:03:11 +03:00
committed by Marius
parent d8129c8825
commit 1d1226b628
4 changed files with 372 additions and 1 deletions

View File

@@ -3497,6 +3497,10 @@ class MainGUI(QtWidgets.QMainWindow):
elif self.app.geo_editor.active_tool.name == 'polygon' and \
self.app.geo_editor.active_tool.polygon_tool.length != 0.0:
pass
elif self.app.geo_editor.active_tool.name == 'rectangle' and \
self.app.geo_editor.active_tool.rect_tool.length != 0.0 and \
self.app.geo_editor.active_tool.rect_tool.width != 0.0:
pass
else:
self.app.geo_editor.active_tool.click(
self.app.geo_editor.snap(self.app.geo_editor.x, self.app.geo_editor.y))