def setNamespaces(self, namespaces):
     """
     :type namespaces: list
     :rtype: None
     """
     namespaces = studiolibrary.listToString(namespaces)
     self.ui.namespaceEdit.setText(namespaces)
Example #2
0
 def setNamespaces(self, namespaces):
     """
     :type namespaces: list
     :rtype: None
     """
     namespaces = studiolibrary.listToString(namespaces)
     self.ui.namespaceComboBox.setEditText(namespaces)
Example #3
0
    def setNamespaces(self, namespaces):
        """
        Set the namespace names for the namespace edit.

        :type namespaces: list
        :rtype: None
        """
        namespaces = studiolibrary.listToString(namespaces)
        self.ui.namespaceComboBox.setEditText(namespaces)
Example #4
0
    def loadSettings(self):
        """
        """
        namespaces = self.plugin().namespaces()
        namespaces = studiolibrary.listToString(namespaces)
        namespaceType = self.plugin().namespaceType()

        self.ui.namespaceEdit.setText(namespaces)
        if namespaceType == NamespaceType.FromFile:
            self.ui.useFileNamespace.setChecked(True)
        elif namespaceType == NamespaceType.FromCustom:
            self.ui.useCustomNamespace.setChecked(True)
        else:
            self.ui.useSelectionNamespace.setChecked(True)
    def loadSettings(self):
        """
        """
        namespaces = self.plugin().namespaces()
        namespaces = studiolibrary.listToString(namespaces)
        namespaceType = self.plugin().namespaceType()

        self.ui.namespaceEdit.setText(namespaces)
        if namespaceType == NamespaceType.FromFile:
            self.ui.useFileNamespace.setChecked(True)
        elif namespaceType == NamespaceType.FromCustom:
            self.ui.useCustomNamespace.setChecked(True)
        else:
            self.ui.useSelectionNamespace.setChecked(True)
    def updateNamespaceEdit(self):
        """
        """
        namespaces = None

        if self.ui.useSelectionNamespace.isChecked():
            namespaces = mutils.getNamespaceFromSelection()
        elif self.ui.useFileNamespace.isChecked():
            namespaces = self.record().transferObject().namespaces()

        if not self.ui.useCustomNamespace.isChecked():
            self.ui.namespaceEdit.setEnabled(False)
            self.ui.namespaceEdit.setText(studiolibrary.listToString(namespaces))
        else:
            self.ui.namespaceEdit.setEnabled(True)
Example #7
0
    def loadSettings(self):
        """
        :rtype: None
        """
        namespaces = self.record().namespaces()
        namespaces = studiolibrary.listToString(namespaces)
        self.ui.namespaceEdit.setText(namespaces)

        namespaceOption = self.plugin().namespaceOption()
        if namespaceOption == NamespaceOption.FromFile:
            self.ui.useFileNamespace.setChecked(True)
        elif namespaceOption == NamespaceOption.FromCustom:
            self.ui.useCustomNamespace.setChecked(True)
        else:
            self.ui.useSelectionNamespace.setChecked(True)
Example #8
0
    def updateNamespaceEdit(self):
        """
        """
        namespaces = None

        if self.ui.useSelectionNamespace.isChecked():
            namespaces = mutils.getNamespaceFromSelection()
        elif self.ui.useFileNamespace.isChecked():
            namespaces = self.record().transferObject().namespaces()

        if not self.ui.useCustomNamespace.isChecked():
            self.ui.namespaceEdit.setEnabled(False)
            self.ui.namespaceEdit.setText(
                studiolibrary.listToString(namespaces))
        else:
            self.ui.namespaceEdit.setEnabled(True)