Minor name cleanups.
This commit is contained in:
parent
0781cf75d6
commit
6792e2c4b9
|
@ -943,12 +943,12 @@ class TaskPanel:
|
||||||
|
|
||||||
def removeGlobalCallbacks(self):
|
def removeGlobalCallbacks(self):
|
||||||
if hasattr(self, 'view') and self.view:
|
if hasattr(self, 'view') and self.view:
|
||||||
if self.callbackClick:
|
if self.pointCbClick:
|
||||||
self.view.removeEventCallbackPivy(coin.SoMouseButtonEvent.getClassTypeId(), self.callbackClick)
|
self.view.removeEventCallbackPivy(coin.SoMouseButtonEvent.getClassTypeId(), self.pointCbClick)
|
||||||
self.callbackClick = None
|
self.pointCbClick = None
|
||||||
if self.callbackMove:
|
if self.pointCbMove:
|
||||||
self.view.removeEventCallbackPivy(coin.SoLocation2Event.getClassTypeId(), self.callbackMove)
|
self.view.removeEventCallbackPivy(coin.SoLocation2Event.getClassTypeId(), self.pointCbMove)
|
||||||
self.callbackMove = None
|
self.pointCbMove = None
|
||||||
self.view = None
|
self.view = None
|
||||||
|
|
||||||
def getPoint(self, whenDone, start=None):
|
def getPoint(self, whenDone, start=None):
|
||||||
|
@ -990,8 +990,8 @@ class TaskPanel:
|
||||||
displayPoint(FreeCAD.Vector(0,0,0))
|
displayPoint(FreeCAD.Vector(0,0,0))
|
||||||
|
|
||||||
self.view = Draft.get3DView()
|
self.view = Draft.get3DView()
|
||||||
self.callbackClick = self.view.addEventCallbackPivy(coin.SoMouseButtonEvent.getClassTypeId(), click)
|
self.pointCbClick = self.view.addEventCallbackPivy(coin.SoMouseButtonEvent.getClassTypeId(), click)
|
||||||
self.callbackMove = self.view.addEventCallbackPivy(coin.SoLocation2Event.getClassTypeId(), mouseMove)
|
self.pointCbMove = self.view.addEventCallbackPivy(coin.SoLocation2Event.getClassTypeId(), mouseMove)
|
||||||
|
|
||||||
def setupSpinBox(self, widget, val, decimals = 2):
|
def setupSpinBox(self, widget, val, decimals = 2):
|
||||||
widget.setMinimum(0)
|
widget.setMinimum(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user