Exemplo n.º 1
0
    def initBasic(self):

        self.accepted = False
        self.dialog.setModal(True)
        self.dialog.setFilter(self.filter)
        self.dialog.setDirectory(DebugPathBuilder.resourcePath())
        self.dialog.setWindowTitle(self.prompt)
Exemplo n.º 2
0
    def __init__(self, parent):
        self.parent = parent

        self.loadSingleAction = QtGui.QAction(parent.ui.toolBar)
        self.loadSingleAction.setIcon(QtGui.QIcon(DebugPathBuilder.appendPath(DebugPathBuilder.resourcePath(), "load_one.png")))
        self.loadSingleAction.setToolTip("Load file..")
        parent.ui.toolBar.addAction(self.loadSingleAction)
        self.loadSingleAction.connect(self.loadSingleAction, QtCore.SIGNAL("triggered()"), self.loadSingleFile)

        self.loadFolderAction = QtGui.QAction(parent.ui.toolBar)
        self.loadFolderAction.setIcon(QtGui.QIcon(DebugPathBuilder.appendPath(DebugPathBuilder.resourcePath(), "load_ser.png")))
        self.loadFolderAction.setToolTip("Load series..")
        parent.ui.toolBar.addAction(self.loadFolderAction)
        self.loadFolderAction.connect(self.loadFolderAction, QtCore.SIGNAL("triggered()"), self.loadFolder)

        self.undoAction = QtGui.QAction(parent.ui.toolBar)
        self.undoAction.setIcon(QtGui.QIcon(DebugPathBuilder.appendPath(DebugPathBuilder.resourcePath(), "undo.png")))
        self.undoAction.setToolTip("Undo")
        parent.ui.toolBar.addAction(self.undoAction)
        self.undoAction.connect(self.undoAction, QtCore.SIGNAL("triggered()"), self.undo)

        self.redoAction = QtGui.QAction(parent.ui.toolBar)
        self.redoAction.setIcon(QtGui.QIcon(DebugPathBuilder.appendPath(DebugPathBuilder.resourcePath(), "redo.png")))
        self.redoAction.setToolTip("Redo")
        parent.ui.toolBar.addAction(self.redoAction)
        self.redoAction.connect(self.redoAction, QtCore.SIGNAL("triggered()"), self.redo)

        self.magnifyAction = QtGui.QAction(parent.ui.toolBar)
        self.magnifyAction.setIcon(QtGui.QIcon(DebugPathBuilder.appendPath(DebugPathBuilder.resourcePath(), "magnify.png")))
        self.magnifyAction.setToolTip("Magnify")
        parent.ui.toolBar.addAction(self.magnifyAction)
        self.magnifyAction.connect(self.magnifyAction, QtCore.SIGNAL("triggered()"), self.magnify)

        self.cutAction = QtGui.QAction(parent.ui.toolBar)
        self.cutAction.setIcon(QtGui.QIcon(DebugPathBuilder.appendPath(DebugPathBuilder.resourcePath(), "cut32.png")))
        self.cutAction.setToolTip("Cut")
        parent.ui.toolBar.addAction(self.cutAction)
        self.cutAction.connect(self.cutAction, QtCore.SIGNAL("triggered()"), self.cut)

        self.measureAction = QtGui.QAction(parent.ui.toolBar)
        self.measureAction.setIcon(QtGui.QIcon(DebugPathBuilder.appendPath(DebugPathBuilder.resourcePath(), "line.png")))
        self.measureAction.setToolTip("Measure")
        self.measureAction.setCheckable(True)
        parent.ui.toolBar.addAction(self.measureAction)
        self. measureAction.connect(self.measureAction, QtCore.SIGNAL("triggered()"), self.measure)
Exemplo n.º 3
0
import sys
import os
builderPath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "PathBuilder")
sys.path.append(builderPath)

from DebugPathBuilder import DebugPathBuilder

sys.path.append(DebugPathBuilder.guiPath())
sys.path.append(DebugPathBuilder.resourcePath())
sys.path.append(DebugPathBuilder.confPath())
sys.path.append(DebugPathBuilder.unitPath())
sys.path.append(DebugPathBuilder.pathPath())
sys.path.append(DebugPathBuilder.testsPath())
sys.path.append(DebugPathBuilder.srcPath())