- optimized the toggle axis command

- added posibility of using a big mouse cursor or a small mouse cursor. The big mouse cursor is made from 2 infinite lines. This was implemented for both graphic engines
- added ability to change the cursor size when the small mouse cursor is selected in Preferences -> General
This commit is contained in:
Marius Stanciu
2019-09-27 04:42:28 +03:00
committed by Marius
parent 9c8c36adbb
commit 46e7be20e2
11 changed files with 177 additions and 34 deletions

View File

@@ -3657,7 +3657,8 @@ class FlatCAMExcEditor(QtCore.QObject):
x, y = self.app.geo_editor.snap(x, y)
# Update cursor
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black', size=20)
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black',
size=self.app.defaults["global_cursor_size"])
self.snap_x = x
self.snap_y = y
@@ -3705,7 +3706,8 @@ class FlatCAMExcEditor(QtCore.QObject):
self.app.selection_type = None
# Update cursor
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black', size=20)
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black',
size=self.app.defaults["global_cursor_size"])
def on_canvas_key_release(self, event):
self.key = None

View File

@@ -3755,7 +3755,8 @@ class FlatCAMGeoEditor(QtCore.QObject):
x, y = self.snap(x, y)
# Update cursor
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black', size=20)
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black',
size=self.app.defaults["global_cursor_size"])
self.snap_x = x
self.snap_y = y

View File

@@ -4398,7 +4398,8 @@ class FlatCAMGrbEditor(QtCore.QObject):
x, y = self.app.geo_editor.snap(x, y)
# Update cursor
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black', size=20)
self.app.app_cursor.set_data(np.asarray([(x, y)]), symbol='++', edge_color='black',
size=self.app.defaults["global_cursor_size"])
self.snap_x = x
self.snap_y = y