def setNamespaces(self, namespaces): """ :type namespaces: list :rtype: None """ namespaces = studiolibrary.listToString(namespaces) self.ui.namespaceEdit.setText(namespaces)
def setNamespaces(self, namespaces): """ :type namespaces: list :rtype: None """ namespaces = studiolibrary.listToString(namespaces) self.ui.namespaceComboBox.setEditText(namespaces)
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)
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)
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)
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)