Skip to content

Commit

Permalink
Draft: ImageTools, import new gui_trackers module
Browse files Browse the repository at this point in the history
  • Loading branch information
vocx-fc committed Mar 17, 2020
1 parent 32fe53c commit 6eee207
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/Mod/Image/ImageTools/_CommandImageScaling.py
Expand Up @@ -19,27 +19,28 @@
# * USA *
# * *
# ***************************************************************************
"""Provides the Image_Scaling GuiCommand."""

__title__ = "ImageTools._CommandImageScaling"
__author__ = "JAndersM"
__url__ = "http://www.freecadweb.org/index-fr.html"
__author__ = "JAndersM"
__url__ = "http://www.freecadweb.org/index-fr.html"
__version__ = "00.02"
__date__ = "03/05/2019"
__date__ = "03/05/2019"

import math
import FreeCAD
from PySide import QtCore

if FreeCAD.GuiUp:
import FreeCADGui
from PySide import QtGui
from PySide import QtCore
import FreeCADGui, FreeCAD, Part
import math
import pivy.coin as pvy
import DraftTrackers, Draft

# translation-related code
#(see forum thread "A new Part tool is being born... JoinFeatures!"
#http://forum.freecadweb.org/viewtopic.php?f=22&t=11112&start=30#p90239 )
import FreeCADGui
import draftguitools.gui_trackers as trackers

# Translation-related code
# See forum thread "A new Part tool is being born... JoinFeatures!"
# http://forum.freecadweb.org/viewtopic.php?f=22&t=11112&start=30#p90239
try:
_fromUtf8 = QtCore.QString.fromUtf8
except (Exception):
Expand Down Expand Up @@ -134,7 +135,7 @@ def setupUi(self, Dialog):
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), self.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), self.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
self.tracker = DraftTrackers.lineTracker(scolor=(1,0,0))
self.tracker = trackers.lineTracker(scolor=(1,0,0))
self.tracker.raiseTracker()
self.tracker.on()
self.dialog.show()
Expand Down

0 comments on commit 6eee207

Please sign in to comment.