示例#1
0
 def __init__(self , scene):
     MessageDlg.__init__(self , scene.views()[0] , QSize(500, 40))  
     
     self.scene = scene
     
     self.setText("Change to:")
     self.setStatusTip("Enter the page numbers separated by commas")
     
     self.nTextField = QLineEdit()
     self.hCheckBox = QRadioButton("horizontal" , self)
     self.vCheckBox = QRadioButton("vertical" , self)
     
     self.hCheckBox.setChecked(True)
     
     self.connect(self.vCheckBox, SIGNAL("toggled(bool)") , self.stateChanged)
     self.setAcceptAction(self.acceptValue)
     
     hbox = self.centreLayout
     hbox.addSpacing(5)
     hbox.addWidget(self.hCheckBox , 1 , Qt.AlignLeft)        
     hbox.addWidget(self.vCheckBox , 1 , Qt.AlignLeft)  
     hbox.addWidget(QLabel("layout for"))
     hbox.addWidget(self.nTextField , 1)
     hbox.addWidget(QLabel("pages"))   
     hbox.addSpacing(15)  
     
     self.nTextField.setFocus(Qt.MouseFocusReason)
示例#2
0
 def __init__(self , scene):
     MessageDlg.__init__(self , scene.views()[0])
     
     self.scene = scene
     self.maxCount = [1, 1]
     
     self.setText("Jump to:")
     self.setStatusTip("Put the numer and press ENTER inside field to finish task")
     
     self.valueSpinBox = makeSpinBox(self , 1 , 1 , 1.0)
     self.pageCheckBox = QRadioButton("page" , self)
     self.stepCheckBox = QRadioButton("step" , self)
     
     self.valueSpinBox.setSingleStep(2)
     self.pageCheckBox.setChecked(True)
     
     self.connect(self.valueSpinBox, SIGNAL("editingFinished()") , self.acceptValue)
     self.connect(self.pageCheckBox, SIGNAL("toggled(bool)") , self.stateChanged)
     
     hbox = self.centreLayout
     hbox.addSpacing(5)
     hbox.addWidget(self.valueSpinBox , 1 , Qt.AlignLeft)
     hbox.addWidget(self.pageCheckBox , 1 , Qt.AlignLeft)        
     hbox.addWidget(self.stepCheckBox , 1 , Qt.AlignLeft)    
     hbox.addSpacing(100)    
示例#3
0
    def __init__(self, scene):
        MessageDlg.__init__(self, scene.views()[0], QSize(500, 40))

        self.scene = scene

        self.setText("Change to")
        self.setStatusTip("Enter the page numbers separated by commas")

        self.nTextField = QLineEdit()
        self.hCheckBox = QRadioButton("horizontal", self)
        self.vCheckBox = QRadioButton("vertical", self)

        self.hCheckBox.setChecked(True)

        self.connect(self.vCheckBox, SIGNAL("toggled(bool)"), self.stateChanged)
        self.setAcceptAction(self.acceptValue)

        hbox = self.centreLayout
        hbox.addSpacing(5)
        hbox.addWidget(self.hCheckBox, 1, Qt.AlignLeft)
        hbox.addWidget(self.vCheckBox, 1, Qt.AlignLeft)
        hbox.addWidget(QLabel("layout for"))
        hbox.addWidget(self.nTextField, 1)
        hbox.addWidget(QLabel("pages"))
        hbox.addSpacing(15)
示例#4
0
    def __init__(self, scene):
        MessageDlg.__init__(self, scene.views()[0])

        self.scene = scene
        self.maxCount = [1, 1]

        self.setText("Jump to:")
        self.setStatusTip("Put the numer and press ENTER inside field to finish task")

        self.valueSpinBox = makeSpinBox(self, 1, 1, 1.0)
        self.pageCheckBox = QRadioButton("page", self)
        self.stepCheckBox = QRadioButton("step", self)

        self.valueSpinBox.setSingleStep(2)
        self.pageCheckBox.setChecked(True)

        self.connect(self.valueSpinBox, SIGNAL("editingFinished()"), self.acceptValue)
        self.connect(self.pageCheckBox, SIGNAL("toggled(bool)"), self.stateChanged)

        hbox = self.centreLayout
        hbox.addSpacing(5)
        hbox.addWidget(self.valueSpinBox, 1, Qt.AlignLeft)
        hbox.addWidget(self.pageCheckBox, 1, Qt.AlignLeft)
        hbox.addWidget(self.stepCheckBox, 1, Qt.AlignLeft)
        hbox.addSpacing(100)
示例#5
0
    def __init__(self, parent=None, host=None):
        MessageDlg.__init__(self, parent)
        self.reset()
        self.button1.setPixmap(QCommonStyle().standardIcon(QStyle.SP_BrowserReload).pixmap(16, 16))
        self.connect(self.button1, SIGNAL("clicked()"), self.reload)

        self.worker = LicWorker([self.job_1, self.job_2])
        self.host = host if isinstance(host, str) else self.repositoryHost
示例#6
0
    def __init__(self, parent=None, host=None):
        MessageDlg.__init__(self, parent)
        self.reset()
        self.button1.setPixmap(QCommonStyle().standardIcon(
            QStyle.SP_BrowserReload).pixmap(16, 16))
        self.connect(self.button1, SIGNAL("clicked()"), self.reload)

        self.worker = LicWorker([self.job_1, self.job_2])
        self.host = host if isinstance(host, str) else self.repositoryHost
示例#7
0
 def __init__(self , parent , lic_repository):
     MessageDlg.__init__(self, parent)     
     self.button1.setPixmap(QCommonStyle().standardIcon (QStyle.SP_BrowserReload).pixmap(16, 16))
     self.connect(self.button1, SIGNAL("clicked()"), self.init_download)
     
     self.worker = None
     self.location = lic_repository
     
     for key in self.fileToDownload:
         self.fileToPath[key] = config.partsCachePath()
     self.fileToPath['default_template.lit'] = config.appDataPath()
示例#8
0
 def __init__(self , step):
     MessageDlg.__init__(self , step.scene().views()[0])
     
     self._step = step
     
     self.pageComboBox = QComboBox()
     self.centreLayout.addWidget(self.pageComboBox , 0)
     
     pageList = step.parent().submodel.pages
     for page in sorted(pageList ,key=lambda i: i.number):
         if not page == step.parent():
             if not page.isLocked() and not page.isEmpty():
                 self.pageComboBox.addItem(page.data(Qt.DisplayRole) ,userData=page)          
     
     self.setText("Move to:")
     self.setAcceptAction(self.acceptValue)
示例#9
0
 def __init__(self ,scene ,entrusted):
     MessageDlg.__init__(self, scene.views()[0])    
     
     self._entrusted = entrusted
     self._scene = scene
     
     self.setText("Rename to:")
     self.setToolTip("Select new name for %s. Old will be preserved." % entrusted.__class__.__name__)
     self.setAcceptAction(self.acceptValue)
     
     self.textField = QLineEdit()
     if entrusted:
         self.textField.setText(entrusted.name)
     
     hbox = self.centreLayout
     hbox.addWidget(self.textField , 1)
示例#10
0
 def __init__(self ,parent ,entrusted):
     MessageDlg.__init__(self, parent)       
     
     self._entrusted = entrusted
     
     self.setStatusTip("Enter how many parts per line to be")
     
     self.nTextField = QLineEdit()
     self.vCheckBox = QRadioButton("verticaly" , self)
     self.hCheckBox = QRadioButton("horizontaly" , self)        
      
     self.vCheckBox.setChecked(True)
     self.nTextField.setText("5")
     
     self.connect(self.vCheckBox, SIGNAL("toggled(bool)") , self.stateChanged)
     self.setAcceptAction(self.acceptValue)
     
     hbox = self.centreLayout
     hbox.addSpacing(5)
     hbox.addWidget(self.nTextField , 1)
     hbox.addWidget(QLabel("parts per line"))
     hbox.addWidget(self.vCheckBox , 1 , Qt.AlignLeft) 
     hbox.addWidget(self.hCheckBox , 1 , Qt.AlignLeft)        
示例#11
0
 def __init__(self ,parent, modelBoxDict):
     MessageDlg.__init__(self, parent)   
     
     self.setWindowTitle("Module Bounding Box")
     # should be collection of AbstractPart.getBoundingBox()
     self.modelBoxDict = modelBoxDict