- added more custom mouse cursors in Geometry and Gerber Editors
- RELEASE 8.914
This commit is contained in:
@@ -1936,7 +1936,7 @@ class FCCircle(FCShapeTool):
|
||||
QtGui.QGuiApplication.restoreOverrideCursor()
|
||||
except:
|
||||
pass
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_circle.png'))
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_circle_geo.png'))
|
||||
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
||||
|
||||
self.start_msg = _("Click on Center point ...")
|
||||
@@ -1984,6 +1984,13 @@ class FCArc(FCShapeTool):
|
||||
DrawTool.__init__(self, draw_app)
|
||||
self.name = 'arc'
|
||||
|
||||
try:
|
||||
QtGui.QGuiApplication.restoreOverrideCursor()
|
||||
except:
|
||||
pass
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_arc.png'))
|
||||
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
||||
|
||||
self.start_msg = _("Click on Center point ...")
|
||||
self.draw_app.app.inform.emit(_("Click on Center point ..."))
|
||||
|
||||
@@ -2314,7 +2321,7 @@ class FCPath(FCPolygon):
|
||||
QtGui.QGuiApplication.restoreOverrideCursor()
|
||||
except:
|
||||
pass
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_path.png'))
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_path5.png'))
|
||||
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
||||
|
||||
def make(self):
|
||||
@@ -2531,6 +2538,14 @@ class FCText(FCShapeTool):
|
||||
FCShapeTool.__init__(self, draw_app)
|
||||
self.name = 'text'
|
||||
|
||||
try:
|
||||
QtGui.QGuiApplication.restoreOverrideCursor()
|
||||
except:
|
||||
pass
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_text.png'))
|
||||
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
||||
|
||||
|
||||
# self.shape_buffer = self.draw_app.shape_buffer
|
||||
self.draw_app = draw_app
|
||||
self.app = draw_app.app
|
||||
|
||||
@@ -1070,7 +1070,7 @@ class FCDisc(FCShapeTool):
|
||||
QtGui.QGuiApplication.restoreOverrideCursor()
|
||||
except:
|
||||
pass
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_circle.png'))
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_disc.png'))
|
||||
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
||||
|
||||
size_ap = float(self.draw_app.storage_dict[self.draw_app.last_aperture_selected]['size'])
|
||||
@@ -1132,6 +1132,13 @@ class FCSemiDisc(FCShapeTool):
|
||||
DrawTool.__init__(self, draw_app)
|
||||
self.name = 'semidisc'
|
||||
|
||||
try:
|
||||
QtGui.QGuiApplication.restoreOverrideCursor()
|
||||
except:
|
||||
pass
|
||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero_semidisc.png'))
|
||||
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
||||
|
||||
self.start_msg = _("Click on Center point ...")
|
||||
self.draw_app.app.inform.emit(_("Click on Center point ..."))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user