Exemplo n.º 1
0
    def addLauncherWidgets(self):
        GuideletWidget.addLauncherWidgets(self)
        # Add the second Plus connection info entry
        try:
            slicer.modules.plusremote
        except:
            return

        self.agilentServerHostNamePortLineEdit = qt.QLineEdit()
        leLabel = qt.QLabel()
        leLabel.setText("Set the Agilent Plus Server Host and Name Port:")
        hbox = qt.QHBoxLayout()
        hbox.addWidget(leLabel)
        hbox.addWidget(self.agilentServerHostNamePortLineEdit)
        self.launcherFormLayout.addRow(hbox)

        lnNode = slicer.util.getNode(self.moduleName)
        if lnNode is not None and lnNode.GetParameter(
                'AgilentServerHostNamePort'):
            # logging.debug("There is already a connector PlusServerHostNamePort parameter " + lnNode.GetParameter('PlusServerHostNamePort'))
            self.agilentServerHostNamePortLineEdit.setDisabled(True)
            self.agilentServerHostNamePortLineEdit.setText(
                lnNode.GetParameter('AgilentServerHostNamePort'))
        else:
            agilentServerHostNamePort = slicer.app.userSettings().value(
                self.moduleName + '/Configurations/' +
                self.selectedConfigurationName + '/AgilentServerHostNamePort')
            self.agilentServerHostNamePortLineEdit.setText(
                agilentServerHostNamePort)

        self.agilentServerHostNamePortLineEdit.connect(
            'editingFinished()', self.onAgilentServerPreferencesChanged)
Exemplo n.º 2
0
 def onConfigurationChanged(self, selectedConfigurationName):
     logging.debug(
         'USRegistrationWidget.onConfigurationChanged(self, selectedConfigurationName)'
     )
     GuideletWidget.onConfigurationChanged(self, selectedConfigurationName)
Exemplo n.º 3
0
 def addLauncherWidgets(self):
     logging.debug('USRegistrationWidget.addLauncherWidgets(self)')
     GuideletWidget.addLauncherWidgets(self)
Exemplo n.º 4
0
 def setup(self):
     logging.debug('USRegistrationWidget.setup(self)')
     GuideletWidget.setup(self)
Exemplo n.º 5
0
 def __init__(self, parent=None):
     GuideletWidget.__init__(self, parent)
 def onConfigurationChanged(self, selectedConfigurationName):
   GuideletWidget.onConfigurationChanged(self, selectedConfigurationName)
 def addLauncherWidgets(self):
   GuideletWidget.addLauncherWidgets(self)
 def setup(self):
   GuideletWidget.setup(self)
 def __init__(self, parent = None):
   GuideletWidget.__init__(self, parent)
 def addLauncherWidgets(self):
     GuideletWidget.addLauncherWidgets(self)
 def setup(self):
     GuideletWidget.setup(self)
Exemplo n.º 12
0
 def onConfigurationChanged(self, selectedConfigurationName):
     GuideletWidget.onConfigurationChanged(self, selectedConfigurationName)
Exemplo n.º 13
0
 def __init__(self, parent = None):
   GuideletWidget.__init__(self, parent)
   self.selectedConfigurationName = 'Default'
Exemplo n.º 14
0
 def setup(self):
     GuideletWidget.setup(self)
     self.guideletLogic = self.createGuideletLogic()