Beispiel #1
0
    def storeWindowPosition(self):
        # ConstraintDialog has Priority on storing its position
        if a2plib.getConstraintDialogRef() is not None:
            return
        frame = QtGui.QDockWidget.frameGeometry(self)
        x = frame.x()
        y = frame.y()

        global CONSTRAINT_DIALOG_STORED_POSITION
        CONSTRAINT_DIALOG_STORED_POSITION = QtCore.QPoint(x,y)
Beispiel #2
0
 def IsActive(self):
     if a2plib.getConstraintEditorRef(): return False
     if a2plib.getConstraintDialogRef(): return False
     return True
Beispiel #3
0
 def Activated(self):
     if a2plib.getConstraintDialogRef(): return #Dialog already active...
     p = a2p_ConstraintPanel()