def __init__(self, parent=None): super(MappingDialog, self).__init__(parent) self.setWindowTitle("Maak een mapping t.b.v. het importeren") self.qlayout = PQtW.QGridLayout(self) self.setWindowFlag(PQtC.Qt.WindowCloseButtonHint, False) self.buttons = PQtW.QDialogButtonBox( PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel, PQtC.Qt.Horizontal, self) self.buttons.accepted.connect(self.accept) self.buttons.rejected.connect(self.reject) self.nextButton = PQtW.QPushButton() self.nextButton.setText("Volgende") self.prevButton = PQtW.QPushButton() self.prevButton.setText("Vorige") self.label_laag = PQtW.QLabel(self) self.label_laag.setText("Importeer in laag") self.label_types = PQtW.QLabel(self) self.label_types.setText("Import types in bestand") self.label_conversie = PQtW.QLabel(self) self.label_conversie.setText("Conversie naar type laag") self.label_target = PQtW.QLabel(self) self.label_target.setText("Converteer naar type") self.qlayout.addWidget(self.label_types, 0, 0) self.qlayout.addWidget(self.label_conversie, 0, 1) self.qlayout.addWidget(self.label_laag, 0, 2) self.qlayout.addWidget(self.label_target, 0, 3) self.load_types()
def setupUi(self, spinnnerDialog): """Pylint ignore""" spinnnerDialog.setObjectName("spinnnerDialog") spinnnerDialog.resize(400, 300) self.verticalLayout = QtWidgets.QVBoxLayout(spinnnerDialog) self.verticalLayout.setObjectName("verticalLayout") self.label = QtWidgets.QLabel(spinnnerDialog) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.spinBox = QtWidgets.QSpinBox(spinnnerDialog) self.spinBox.setObjectName("spinBox") self.verticalLayout.addWidget(self.spinBox) self.label_2 = QtWidgets.QLabel(spinnnerDialog) self.label_2.setObjectName("label_2") self.verticalLayout.addWidget(self.label_2) self.doubleSpinBox = QtWidgets.QDoubleSpinBox(spinnnerDialog) self.doubleSpinBox.setObjectName("doubleSpinBox") self.verticalLayout.addWidget(self.doubleSpinBox) self.label_3 = QtWidgets.QLabel(spinnnerDialog) self.label_3.setObjectName("label_3") self.verticalLayout.addWidget(self.label_3) self.mQgsSpinBox = gui.QgsSpinBox(spinnnerDialog) self.mQgsSpinBox.setObjectName("mQgsSpinBox") self.verticalLayout.addWidget(self.mQgsSpinBox) self.button_box = QtWidgets.QDialogButtonBox(spinnnerDialog) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.verticalLayout.addWidget(self.button_box) self.retranslateUi(spinnnerDialog) self.button_box.accepted.connect(spinnnerDialog.accept) self.button_box.rejected.connect(spinnnerDialog.reject) QtCore.QMetaObject.connectSlotsByName(spinnnerDialog)
def getGlobalCommonParamsWindow(self, parent=None): window = QtWidgets.QDialog() window.setWindowTitle("Global and common parameters") scrollarea = QtWidgets.QScrollArea() form = QtWidgets.QFormLayout() form.addRow(QtWidgets.QLabel("Common Parameters:")) for param in self.common: (l1, l2) = self.getUIOneliner(param, global_common=True) form.addRow(l1, l2) form.addRow(QtWidgets.QLabel("Global Parameters:")) for param in self.globals: (l1, l2) = self.getUIOneliner(param, global_common=True) form.addRow(l1, l2) closebtn = QtWidgets.QPushButton("Close") closebtn.clicked.connect(lambda: self.closeGlobalCommonParamsWindow(window)) groupbox = QtWidgets.QGroupBox() groupbox.setLayout(form) scrollarea.setWidget(groupbox) window.setFixedHeight(600) window.setFixedWidth(600) scrollbox = QtWidgets.QVBoxLayout() scrollbox.addWidget(scrollarea) scrollbox.addWidget(closebtn) window.setLayout(scrollbox) return window
def setupUi(self, changeDataSourceDialog): changeDataSourceDialog.setObjectName( _fromUtf8("changeDataSourceDialog")) changeDataSourceDialog.resize(297, 305) self.verticalLayout = QtWidgets.QVBoxLayout(changeDataSourceDialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_2 = QtWidgets.QLabel(changeDataSourceDialog) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.selectDatasourceCombo = QtWidgets.QComboBox( changeDataSourceDialog) self.selectDatasourceCombo.setObjectName( _fromUtf8("selectDatasourceCombo")) self.verticalLayout.addWidget(self.selectDatasourceCombo) self.label = QtWidgets.QLabel(changeDataSourceDialog) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout.addWidget(self.label) self.lineEdit = QtWidgets.QPlainTextEdit(changeDataSourceDialog) self.lineEdit.setObjectName(_fromUtf8("lineEdit")) self.verticalLayout.addWidget(self.lineEdit) self.openBrowser = QtWidgets.QPushButton(changeDataSourceDialog) self.openBrowser.setObjectName(_fromUtf8("openBrowser")) self.verticalLayout.addWidget(self.openBrowser) self.buttonBox = QtWidgets.QDialogButtonBox(changeDataSourceDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(changeDataSourceDialog) QtCore.QMetaObject.connectSlotsByName(changeDataSourceDialog)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(400, 67) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.label_start = QtWidgets.QLabel(Form) self.label_start.setObjectName("label_start") self.gridLayout.addWidget(self.label_start, 0, 0, 1, 1) self.label_end = QtWidgets.QLabel(Form) self.label_end.setObjectName("label_end") self.gridLayout.addWidget(self.label_end, 0, 1, 1, 1) self.date_start = gui.QgsDateTimeEdit(Form) self.date_start.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1970, 1, 1), QtCore.QTime(0, 0, 0))) self.date_start.setMinimumDate(QtCore.QDate(1970, 1, 1)) self.date_start.setCurrentSection(QtWidgets.QDateTimeEdit.YearSection) self.date_start.setTimeSpec(QtCore.Qt.UTC) self.date_start.setObjectName("date_start") self.gridLayout.addWidget(self.date_start, 1, 0, 1, 1) self.date_end = gui.QgsDateTimeEdit(Form) self.date_end.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1970, 1, 1), QtCore.QTime(0, 0, 0))) self.date_end.setMinimumDate(QtCore.QDate(1970, 1, 1)) self.date_end.setCurrentSection(QtWidgets.QDateTimeEdit.YearSection) self.date_end.setObjectName("date_end") self.gridLayout.addWidget(self.date_end, 1, 1, 1, 1) self.date_start.clear() self.date_end.clear() self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def initUI(self): self.ui = QtWidgets.QDialog() lo = QtWidgets.QFormLayout() self.ui.setSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) lo.addRow(QtWidgets.QLabel("Load ALS file(s):")) self.dropspace = QpalsDropTextbox.QpalsDropTextbox( layerlist=self.layerlist) self.dropspace.setMinimumContentsLength(20) self.dropspace.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToMinimumContentsLength) self.dropspace.editingFinished.connect(self.inFileUpdated) lo.addRow(self.dropspace) self.visMethod = QtWidgets.QComboBox() self.visMethod.addItem(VISUALISATION_METHODS[0]) self.visMethod.addItem(VISUALISATION_METHODS[1]) self.visMethod.addItem(VISUALISATION_METHODS[2]) self.visMethod.addItem(VISUALISATION_METHODS[3]) self.visMethod.addItem(VISUALISATION_METHODS[4]) self.visMethod.addItem(VISUALISATION_METHODS[5]) self.visMethod.addItem(VISUALISATION_METHODS[6]) self.visMethod.addItem(VISUALISATION_METHODS[7]) self.visMethod.addItem(VISUALISATION_METHODS[8]) self.visMethod.addItem(VISUALISATION_METHODS[9]) self.visMethod.currentIndexChanged.connect(self.updatevisMethod) self.cellSizeLbl = QtWidgets.QLabel("Set cell size:") self.cellSizeBox = QtWidgets.QLineEdit() self.cellFeatLbl = QtWidgets.QLabel("Set feature:") self.cellFeatCmb = QtWidgets.QComboBox() self.cellAttrLbl = QtWidgets.QLabel("Select attribute:") self.cellAttrCmb = QtWidgets.QComboBox() self.cellAttrCmb.addItem("Z") self.cellAttrCmb.setSizeAdjustPolicy( QtWidgets.QComboBox.AdjustToContents) self.isoInteLbl = QtWidgets.QLabel("Set isoline interval:") self.isoInteBox = QtWidgets.QLineEdit() self.isoInteBox.setText("10") cellInst = QpalsModuleBase.QpalsModuleBase( os.path.join(self.project.opalspath, "opalsCell.exe"), self.project) cellInst.load() for param in cellInst.params: if param.name.lower() == "cellsize": self.cellSizeBox.setText(param.val) break self.cellFeatCmb.addItems(self.features) self.cellFeatCmb.setCurrentIndex(4) lo.addRow(self.cellAttrLbl, self.cellAttrCmb) lo.addRow(self.cellSizeLbl, self.cellSizeBox) lo.addRow(self.cellFeatLbl, self.cellFeatCmb) lo.addRow(self.isoInteLbl, self.isoInteBox) lo.addRow(self.visMethod) self.okBtn = QtWidgets.QPushButton("Load") self.okBtn.clicked.connect(self.loadHelper) lo.addRow(self.okBtn) self.ui.setLayout(lo) self.ui.setWindowTitle("Open ALS file") self.visMethod.setCurrentIndex(1)
def setupUi(self, ParcelySearchForm): ParcelySearchForm.setObjectName(_fromUtf8("ParcelySearchForm")) ParcelySearchForm.resize(269, 168) self.gridLayout = QtWidgets.QGridLayout(ParcelySearchForm) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_3 = QtWidgets.QLabel(ParcelySearchForm) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.parCisloLineEdit = QtWidgets.QLineEdit(ParcelySearchForm) self.parCisloLineEdit.setInputMask(_fromUtf8("")) self.parCisloLineEdit.setObjectName(_fromUtf8("parCisloLineEdit")) self.gridLayout.addWidget(self.parCisloLineEdit, 0, 1, 1, 1) self.label_5 = QtWidgets.QLabel(ParcelySearchForm) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1) self.typParcelyCombo = QtWidgets.QComboBox(ParcelySearchForm) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.typParcelyCombo.sizePolicy().hasHeightForWidth()) self.typParcelyCombo.setSizePolicy(sizePolicy) self.typParcelyCombo.setObjectName(_fromUtf8("typParcelyCombo")) self.typParcelyCombo.addItem(_fromUtf8("")) self.typParcelyCombo.addItem(_fromUtf8("")) self.typParcelyCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.typParcelyCombo, 1, 1, 1, 1) self.label_6 = QtWidgets.QLabel(ParcelySearchForm) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 2, 0, 1, 1) self.druhPozemkuCombo = QtWidgets.QComboBox(ParcelySearchForm) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.druhPozemkuCombo.sizePolicy().hasHeightForWidth()) self.druhPozemkuCombo.setSizePolicy(sizePolicy) self.druhPozemkuCombo.setObjectName(_fromUtf8("druhPozemkuCombo")) self.gridLayout.addWidget(self.druhPozemkuCombo, 2, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 4, 1, 1, 1) self.lvParcelyLineEdit = QtWidgets.QLineEdit(ParcelySearchForm) self.lvParcelyLineEdit.setObjectName(_fromUtf8("lvParcelyLineEdit")) self.gridLayout.addWidget(self.lvParcelyLineEdit, 3, 1, 1, 1) self.label = QtWidgets.QLabel(ParcelySearchForm) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 3, 0, 1, 1) self.retranslateUi(ParcelySearchForm) QtCore.QMetaObject.connectSlotsByName(ParcelySearchForm)
def initUI(self): lo = QtWidgets.QFormLayout() lo.addRow(QtWidgets.QLabel("Drop something here:")) l1 = QtWidgets.QLabel("") l2 = QtWidgets.QLabel("") dropspace = QpalsDropTextbox() lo.addRow(dropspace) lo.addRow(l1) lo.addRow(l2) self.setLayout(lo) self.setWindowTitle("Hallo Alina")
def setupUi(self, Clone): Clone.setObjectName(_fromUtf8("Clone")) Clone.resize(375, 210) self.gridlayout = QtWidgets.QGridLayout(Clone) self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.vboxlayout = QtWidgets.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) spacerItem = QtWidgets.QSpacerItem( 20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.MinimumExpanding) self.vboxlayout.addItem(spacerItem) self.label = QtWidgets.QLabel(Clone) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName(_fromUtf8("label")) self.vboxlayout.addWidget(self.label) self.lineDsn = QtWidgets.QLineEdit(Clone) self.lineDsn.setMouseTracking(False) self.lineDsn.setInputMask(_fromUtf8("")) self.lineDsn.setMaxLength(10) self.lineDsn.setFrame(True) self.lineDsn.setObjectName(_fromUtf8("lineDsn")) self.vboxlayout.addWidget(self.lineDsn) self.label_3 = QtWidgets.QLabel(Clone) self.label_3.setObjectName(_fromUtf8("label_3")) self.vboxlayout.addWidget(self.label_3) self.comboDsn = QtWidgets.QComboBox(Clone) self.comboDsn.setObjectName(_fromUtf8("comboDsn")) self.vboxlayout.addWidget(self.comboDsn) self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(Clone) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.NoButton | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setCenterButtons(True) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem( 20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.MinimumExpanding) self.gridlayout.addItem(spacerItem1, 1, 0, 1, 1) self.retranslateUi(Clone) self.buttonBox.accepted.connect(Clone.accept) self.buttonBox.rejected.connect(Clone.reject) QMetaObject.connectSlotsByName(Clone) Clone.setTabOrder(self.lineDsn, self.comboDsn) Clone.setTabOrder(self.comboDsn, self.buttonBox)
def getParamUi(self, parent=None): form = QtWidgets.QFormLayout() l1 = QtWidgets.QLabel("Command") self.e1 = QtWidgets.QLineEdit(self.t1) l2 = QtWidgets.QLabel("Working directory") self.e2 = QtWidgets.QLineEdit(self.t2) self.e1.editingFinished.connect(self.updateVals) self.e2.editingFinished.connect(self.updateVals) form.addRow(l1, self.e1) form.addRow(l2, self.e2) return form
def setupUi(self, getVectorLayer): getVectorLayer.setObjectName("getVectorLayer") getVectorLayer.resize(351, 358) self.buttonBox = QtWidgets.QDialogButtonBox(getVectorLayer) self.buttonBox.setGeometry(QtCore.QRect(180, 320, 156, 23)) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel) self.buttonBox.setObjectName("buttonBox") self.listWidget = QtWidgets.QListWidget(getVectorLayer) self.listWidget.setGeometry(QtCore.QRect(30, 50, 291, 261)) self.listWidget.setObjectName("listWidget") #item = QtWidgets.QListWidgetItem() #font = QtGui.QFont() #font.setPointSize(12) #item.setFont(font) #item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsDragEnabled|QtCore.Qt.ItemIsEnabled) #self.listWidget.addItem(item) self.label = QtWidgets.QLabel(getVectorLayer) self.label.setGeometry(QtCore.QRect(110, 10, 141, 21)) font = QtGui.QFont() font.setPointSize(12) self.label.setFont(font) self.label.setObjectName("label") self.retranslateUi(getVectorLayer) QtCore.QMetaObject.connectSlotsByName(getVectorLayer)
def __init__(self, parent=None): super(MappingDialog, self).__init__(parent) self.setWindowTitle("Maak een mapping t.b.v. het importeren") mainLayout = PQtW.QVBoxLayout() qlayout = PQtW.QGridLayout() widget = PQtW.QWidget() scrollArea = PQtW.QScrollArea() widget.setLayout(qlayout) i = 0 for importType in self.importTypes: self.labels[i] = PQtW.QLabel(self) self.labels[i].setText(str(importType)) self.comboBoxes[i] = PQtW.QComboBox(self) self.comboBoxes[i].addItems(self.targetTypes) qlayout.addWidget(self.labels[i], i, 0) qlayout.addWidget(self.comboBoxes[i], i, 1) i += 1 buttons = PQtW.QDialogButtonBox( PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel, PQtC.Qt.Horizontal, self) buttons.accepted.connect(self.accept) buttons.rejected.connect(self.reject) qlayout.addWidget(buttons) scrollArea.setWidget(widget) mainLayout.addWidget(scrollArea) self.setLayout(mainLayout)
def noPermissionAccess(self): self.usertabel.setHidden(True) self.groupstabel.setHidden(True) self.noPermissionAccessLabel = QtGui.QLabel(self.tabs[3]) self.noPermissionAccessLabel.setGeometry(QRect(50, 50, 420, 50)) self.noPermissionAccessLabel.setText('Could not access application ' 'permissions. User permission is not high enough')
def createUi(self): self.selectedChkBox = QtWidgets.QCheckBox("Use selected lines only") self.selectedChkBox.setCheckState(2) self.cmbLineLayer = QgsMapLayerComboBox() self.cmbLineLayer.setFilters(QgsMapLayerProxyModel.LineLayer) self.cmbOdmPath = QpalsDropTextbox.QpalsDropTextbox( layerlist=self.layerlist, filterrex=".*\.odm$") self.runBtn = QtWidgets.QPushButton("Run") self.runBtn.clicked.connect(self.runLM) self.ui = QtWidgets.QWidget() self.fl = QtWidgets.QFormLayout() self.ui.setLayout(self.fl) self.fl.addRow(QtWidgets.QLabel("Line layer:"), self.cmbLineLayer) self.fl.addRow(QtWidgets.QLabel("Point cloud:"), self.cmbOdmPath) self.fl.addRow(self.selectedChkBox) self.fl.addRow(self.runBtn)
def setupUi(self, BulkVectorExportDialog): BulkVectorExportDialog.setObjectName( _fromUtf8("BulkVectorExportDialog")) BulkVectorExportDialog.resize(392, 141) self.buttonBox = QtWidgets.QDialogButtonBox(BulkVectorExportDialog) self.buttonBox.setGeometry(QtCore.QRect(220, 100, 161, 32)) self.buttonBox.setWhatsThis(_fromUtf8("")) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setCenterButtons(True) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.dirEdit = QtWidgets.QLineEdit(BulkVectorExportDialog) self.dirEdit.setGeometry(QtCore.QRect(120, 40, 231, 20)) self.dirEdit.setObjectName(_fromUtf8("dirEdit")) self.label = QtWidgets.QLabel(BulkVectorExportDialog) self.label.setGeometry(QtCore.QRect(10, 40, 71, 16)) self.label.setObjectName(_fromUtf8("label")) self.dirButton = QtWidgets.QPushButton(BulkVectorExportDialog) self.dirButton.setGeometry(QtCore.QRect(360, 40, 31, 21)) self.dirButton.setObjectName(_fromUtf8("dirButton")) self.retranslateUi(BulkVectorExportDialog) self.buttonBox.accepted.connect(BulkVectorExportDialog.accept) self.buttonBox.rejected.connect(BulkVectorExportDialog.reject) QtCore.QMetaObject.connectSlotsByName(BulkVectorExportDialog)
def initGui(self): """init actions plugin""" self.toolbar = self.iface.addToolBar(PC.PLUGIN["name"]) self.action = PQtW.QAction(PQtG.QIcon(PC.PLUGIN["icon"]), PC.PLUGIN["name"], self.iface.mainWindow()) self.action.triggered.connect(self.run) self.toolbar.addAction(self.action) self.iface.addPluginToMenu(PC.PLUGIN["menulocation"], self.action) #add label to toolbar label = PQtW.QLabel() self.toolbar.addWidget(label) label.setText(PC.PLUGIN["toolbartext"]) #init dropdown to switch floors self.projCombo = PQtW.QComboBox(self.iface.mainWindow()) minBouwlaag = PC.PAND["minbouwlaag"] maxBouwlaag = PC.PAND["maxbouwlaag"] for i in range(maxBouwlaag - minBouwlaag + 1): if maxBouwlaag - i != 0: if maxBouwlaag - i == 1: init_index = i self.projCombo.addItem(str(maxBouwlaag - i)) self.projComboAction = self.toolbar.addWidget(self.projCombo) self.projCombo.setFixedWidth(100) self.projCombo.setMaxVisibleItems(30) #set intial index to floor 1 self.projCombo.setCurrentIndex(init_index) #connect to set layer subset if the index is changed self.projCombo.currentIndexChanged.connect( self.set_layer_subset_toolbar) #init projectVariable to communicate from plugin to original drawing possibilities QC.QgsExpressionContextUtils.setProjectVariable( QC.QgsProject.instance(), 'actieve_bouwlaag', 1)
def getUI(self): self.ui = QtWidgets.QDialog() self.ui.resize(720, 300) self.ui.setWindowTitle("qpals AttributeManager") lo = QtWidgets.QFormLayout() vb = QtWidgets.QVBoxLayout() hb = QtWidgets.QHBoxLayout() self.pointcloud = QpalsDropTextbox.QpalsDropTextbox(layerlist=self.layerlist) hb.addWidget(self.pointcloud,1) lo.addRow("ODM File", hb) vb.addLayout(lo,0) self.attable = QtWidgets.QTableView() self.newnamebox = QtWidgets.QComboBox() self.newnamebox.setEditable(True) for attr in odm_predef_attributes: self.newnamebox.addItem(attr) self.newnamebox.lineEdit().setPlaceholderText("_Name") self.typedropdown = QtWidgets.QComboBox() for type in odm_data_types: self.typedropdown.addItem(type) self.formulabox = QtWidgets.QLineEdit("") self.formulabox.setPlaceholderText("opalsAddInfo formula") self.helpbtn = QtWidgets.QPushButton('?') self.helpbtn.setMaximumWidth(self.helpbtn.fontMetrics().boundingRect("?").width() + 7) self.addchangebtn = QtWidgets.QPushButton('Add/Change attribute') self.closebtn = QtWidgets.QPushButton('Close') hb2 = QtWidgets.QHBoxLayout() hb2.addWidget(self.newnamebox) hb2.addWidget(QtWidgets.QLabel("(")) hb2.addWidget(self.typedropdown) hb2.addWidget(QtWidgets.QLabel(")")) hb2.addWidget(QtWidgets.QLabel("=")) hb2.addWidget(self.formulabox) hb2.addWidget(self.addchangebtn) hb2.addWidget(self.helpbtn) hb2.addStretch() hb2.addWidget(self.closebtn) vb.addWidget(self.attable, 1) vb.addLayout(hb2) self.ui.setLayout(vb) self.pointcloud.editingFinished.connect(self.pcChanged) self.newnamebox.editTextChanged.connect(self.newnameChanged) self.closebtn.clicked.connect(self.close) self.helpbtn.clicked.connect(self.addinfoHelp) self.addchangebtn.clicked.connect(self.fieldcalc) self.newnamebox.lineEdit().setText("_") return self.ui
def newAppCreation(self): self.usertabel.setHidden(True) self.groupstabel.setHidden(True) self.noPermissionAccessLabel = QtGui.QLabel(self.tabs[4]) self.noPermissionAccessLabel.setGeometry(QRect(50, 50, 420, 100)) self.noPermissionAccessLabel.setText( 'You have to save and upload the ' 'new application once\nfirst, then you can edit it\'s permissions')
def setupUi(self, JednotkySearchForm): JednotkySearchForm.setObjectName(_fromUtf8("JednotkySearchForm")) JednotkySearchForm.resize(248, 181) self.gridLayout = QtWidgets.QGridLayout(JednotkySearchForm) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtWidgets.QLabel(JednotkySearchForm) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtWidgets.QLabel(JednotkySearchForm) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.label_3 = QtWidgets.QLabel(JednotkySearchForm) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.label_4 = QtWidgets.QLabel(JednotkySearchForm) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) self.label_5 = QtWidgets.QLabel(JednotkySearchForm) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1) self.mCisloJednotkyLineEdit = QtWidgets.QLineEdit(JednotkySearchForm) self.mCisloJednotkyLineEdit.setObjectName( _fromUtf8("mCisloJednotkyLineEdit")) self.gridLayout.addWidget(self.mCisloJednotkyLineEdit, 0, 1, 1, 1) self.mCisloDomovniLineEdit = QtWidgets.QLineEdit(JednotkySearchForm) self.mCisloDomovniLineEdit.setObjectName( _fromUtf8("mCisloDomovniLineEdit")) self.gridLayout.addWidget(self.mCisloDomovniLineEdit, 1, 1, 1, 1) self.mNaParceleLineEdit = QtWidgets.QLineEdit(JednotkySearchForm) self.mNaParceleLineEdit.setObjectName(_fromUtf8("mNaParceleLineEdit")) self.gridLayout.addWidget(self.mNaParceleLineEdit, 2, 1, 1, 1) self.mLvJednotkyLineEdit = QtWidgets.QLineEdit(JednotkySearchForm) self.mLvJednotkyLineEdit.setObjectName( _fromUtf8("mLvJednotkyLineEdit")) self.gridLayout.addWidget(self.mLvJednotkyLineEdit, 4, 1, 1, 1) self.mZpVyuzitiCombo = QtWidgets.QComboBox(JednotkySearchForm) self.mZpVyuzitiCombo.setObjectName(_fromUtf8("mZpVyuzitiCombo")) self.gridLayout.addWidget(self.mZpVyuzitiCombo, 3, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 5, 1, 1, 1) self.retranslateUi(JednotkySearchForm) QtCore.QMetaObject.connectSlotsByName(JednotkySearchForm)
def on_workspaceComboBox_currentIndexChanged(self): self.clearLayout() workspace = self.getCurrentWorkspace() for parameter in [x for x in workspace['parametros'] if x != 'LOG_FILE']: newLabel = QtWidgets.QLabel(parameter) self.verticalLayout_2.addWidget(newLabel) newLineEdit = QtWidgets.QLineEdit() self.interfaceDict[parameter] = newLineEdit self.verticalLayout_2.addWidget(newLineEdit)
def addFilter(field, layer, layout, settings_layer): filter_label = QtWidgets.QLabel() filter_label.setObjectName(f"label_{field}") filter_label.setText(settings_layer["filters_fields"][field]["label"]) filter_widget = CommonTools.__createWidget(field, layer, settings_layer) layout.addRow(filter_label, filter_widget)
def create_label(labelText, layout, font=None, row=None, column=None): """create QLabel and add it to layout""" tempLabel = PQtW.QLabel() tempLabel.setText(labelText) if isinstance(font, QFont): tempLabel.setFont(font) if isinstance(layout, PQtW.QGridLayout): layout.addWidget(tempLabel, row, column) else: layout.addWidget(tempLabel) return tempLabel
def __init__(self, parent=None): super(BouwlaagDialog, self).__init__(parent) bouwlagen = PC.PAND["bouwlagen"] minBouwlaag = bouwlagen["min"] maxBouwlaag = bouwlagen["max"] self.setWindowTitle("Bouwlagen toevoegen") qlayout = PQtW.QVBoxLayout(self) self.qlineA = PQtW.QLabel(self) self.qlineB = PQtW.QLabel(self) self.qlineC = PQtW.QLabel(self) self.qComboA = PQtW.QComboBox(self) self.qComboB = PQtW.QComboBox(self) self.qlineA.setText( "U kunt meerdere bouwlagenlagen in 1x creeren, door van en t/m in te vullen!" ) self.qlineB.setText("Van:") self.qlineC.setText("Tot en met:") for i in range(maxBouwlaag - minBouwlaag + 1): if maxBouwlaag - i != 0: self.qComboA.addItem(str(maxBouwlaag - i)) self.qComboB.addItem(str(maxBouwlaag - i)) if maxBouwlaag - i == 1: init_index = i self.qComboA.setCurrentIndex(init_index) self.qComboB.setCurrentIndex(init_index) self.qComboA.setFixedWidth(100) self.qComboA.setMaxVisibleItems(30) self.qComboB.setFixedWidth(100) self.qComboB.setMaxVisibleItems(30) self.qComboA.currentIndexChanged.connect(self.set_comboboxB) qlayout.addWidget(self.qlineA) qlayout.addWidget(self.qlineB) qlayout.addWidget(self.qComboA) qlayout.addWidget(self.qlineC) qlayout.addWidget(self.qComboB) buttons = PQtW.QDialogButtonBox( PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel, PQtC.Qt.Horizontal, self) buttons.accepted.connect(self.accept) buttons.rejected.connect(self.reject) qlayout.addWidget(buttons)
def _initPlot(self, plotWidget=False): """Initialize plot tab. :param plotWidget: True to create plot widget otherwise info QLabel is displayed """ # use grid layout if not defined if not hasattr(self, "_plotLayout"): self._plotLayout = QtWidgets.QGridLayout(self.groupPlot) # create new plot widget if not hasattr(self, "_plotWidget") and not plotMsg: self._plotWidget = SafecastPlot(self.groupPlot) self._plotWidget.setVisible(False) if not hasattr(self, "_plotLabel"): self._plotLabel = QtWidgets.QLabel( self. tr("Load or select Safecast layer in order to display ader plot." ) if not plotMsg else plotMsg, self.groupPlot) self._plotLabel.setWordWrap(True) self._plotSpacer = QtWidgets.QSpacerItem( 20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self._plotLayout.addWidget(self._plotLabel) self._plotLayout.addItem(self._plotSpacer) self._plotVisible = False return # initialization done if plotWidget and not self._plotVisible: # remove info label & spacer from layout self._plotLabel.setVisible(False) self._plotLayout.removeWidget(self._plotLabel) self._plotLayout.removeItem(self._plotSpacer) # add plot widget into layout self._plotWidget.setVisible(True) self._plotLayout.addWidget(self._plotWidget) self._plotVisible = True self.groupPlot.adjustSize() elif not plotWidget and self._plotVisible: # remove plot widget from layout self._plotWidget.setVisible(False) self._plotLayout.removeWidget(self._plotLabel) self._plotVisible = False # add info label & spacer into layout self._plotLabel.setVisible(True) self._plotLayout.addWidget(self._plotLabel) self._plotLayout.addItem(self._plotSpacer) # set group tile self.groupPlot.setTitle(self.tr("Plot"))
def _initStats(self, statsWidget=False): """Initialize statistics tab. :param statsWidget: True to create plot widget otherwise info QLabel is displayed """ # use grid layout if not hasattr(self, "_statsLayout"): self._statsLayout = QtWidgets.QGridLayout(self.groupStats) if not hasattr(self, "_statsWidget"): self._statsWidget = SafecastStats(self.groupStats) self._statsWidget.setHeaderHidden(True) if not hasattr(self, "_statsLabel"): self._statsLabel = QtWidgets.QLabel( self. tr("Load or select Safecast layer in order to display ader statistics." ), self.groupStats) self._statsLabel.setWordWrap(True) self._statsSpacer = QtWidgets.QSpacerItem( 20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self._statsLayout.addWidget(self._statsLabel) self._statsLayout.addItem(self._statsSpacer) self._statsWidget.setVisible(False) self._statsVisible = False return # initialization done if statsWidget and not self._statsVisible: # remove info label & spacer from layout self._statsLabel.setVisible(False) self._statsLayout.removeWidget(self._statsLabel) self._statsLayout.removeItem(self._statsSpacer) # add stats widget into layout self._statsWidget.setVisible(True) self._statsLayout.addWidget(self._statsWidget) self._statsVisible = True self.groupStats.adjustSize() elif not statsWidget and self._statsVisible: # remove plot widget from layout self._statsWidget.setVisible(False) self._plotLayout.removeWidget(self._statsWidget) self._statsVisible = False # add info label & spacer into layout self._statsLabel.setVisible(True) self._statsLayout.addWidget(self._statsLabel) self._statsLayout.addItem(self._statsSpacer) # set group tile self.groupStats.setTitle(self.tr("Statistics"))
def __init__(self, parent=None): super(DxfDialog, self).__init__(parent) self.setWindowTitle("Type geometrie") max_bouwlaag = 30 min_bouwlaag = -10 qlayout = PQtW.QVBoxLayout(self) self.label1 = PQtW.QLabel(self) self.label1.setText("Welke type geometrie wilt u importeren?") qlayout.addWidget(self.label1) self.inputGeometry = PQtW.QComboBox(self) self.inputGeometry.addItems(['lijn', 'vlak']) qlayout.addWidget(self.inputGeometry) self.label2 = PQtW.QLabel(self) self.label2.setText("Wilt u de polygoon importeren als Bouwlaag?") qlayout.addWidget(self.label2) self.checkBouwlaag = PQtW.QCheckBox(self) qlayout.addWidget(self.checkBouwlaag) self.checkBouwlaag.stateChanged.connect(self.addBouwlaagQuestion) self.qComboA = PQtW.QComboBox(self) for i in range(max_bouwlaag - min_bouwlaag + 1): if max_bouwlaag - i != 0: self.qComboA.addItem(str(max_bouwlaag - i)) if max_bouwlaag - i == 1: init_index = i self.qComboA.setCurrentIndex(init_index) self.qComboA.setFixedWidth(100) self.qComboA.setMaxVisibleItems(30) self.label3 = PQtW.QLabel(self) self.label3.setText( "Geef de bouwlaag op waarvoor u de polygoon wilt inlezen.") self.qComboA.setVisible(False) self.label3.setVisible(False) qlayout.addWidget(self.label3) qlayout.addWidget(self.qComboA) buttons = PQtW.QDialogButtonBox( PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel, PQtC.Qt.Horizontal, self) buttons.accepted.connect(self.accept) buttons.rejected.connect(self.reject) qlayout.addWidget(buttons)
def setupUi(self, CartogramDialog): CartogramDialog.setObjectName("CartogramDialog") CartogramDialog.resize(640, 600) self.formLayout = QtWidgets.QFormLayout(CartogramDialog) self.formLayout.setObjectName("formLayout") self.layerComboBoxLabel = QtWidgets.QLabel(CartogramDialog) self.layerComboBoxLabel.setObjectName("layerComboBoxLabel") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.layerComboBoxLabel) self.layerComboBox = gui.QgsMapLayerComboBox(CartogramDialog) self.layerComboBox.setObjectName("layerComboBox") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.layerComboBox) self.fieldListViewLabel = QtWidgets.QLabel(CartogramDialog) self.fieldListViewLabel.setObjectName("fieldListViewLabel") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.fieldListViewLabel) self.fieldListView = QgsFieldListView(CartogramDialog) self.fieldListView.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) self.fieldListView.setObjectName("fieldListView") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.fieldListView) self.stopConditionsFrameLabel = QtWidgets.QLabel(CartogramDialog) self.stopConditionsFrameLabel.setObjectName("stopConditionsFrameLabel") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.stopConditionsFrameLabel) self.stopConditionsFrame = QtWidgets.QFrame(CartogramDialog) self.stopConditionsFrame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.stopConditionsFrame.setFrameShadow(QtWidgets.QFrame.Raised) self.stopConditionsFrame.setObjectName("stopConditionsFrame") self.formLayout_2 = QtWidgets.QFormLayout(self.stopConditionsFrame) self.formLayout_2.setObjectName("formLayout_2") self.iterationsSpinBoxLabel = QtWidgets.QLabel(self.stopConditionsFrame) self.iterationsSpinBoxLabel.setObjectName("iterationsSpinBoxLabel") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.iterationsSpinBoxLabel) self.iterationsSpinBox = QtWidgets.QSpinBox(self.stopConditionsFrame) self.iterationsSpinBox.setMinimum(1) self.iterationsSpinBox.setMaximum(9999) self.iterationsSpinBox.setProperty("value", 10) self.iterationsSpinBox.setObjectName("iterationsSpinBox") self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.iterationsSpinBox) self.averageErrorDoubleSpinBoxLabel = QtWidgets.QLabel(self.stopConditionsFrame) self.averageErrorDoubleSpinBoxLabel.setObjectName("averageErrorDoubleSpinBoxLabel") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.averageErrorDoubleSpinBoxLabel) self.averageErrorDoubleSpinBox = QtWidgets.QDoubleSpinBox(self.stopConditionsFrame) self.averageErrorDoubleSpinBox.setSingleStep(0.5) self.averageErrorDoubleSpinBox.setProperty("value", 10.0) self.averageErrorDoubleSpinBox.setObjectName("averageErrorDoubleSpinBox") self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.averageErrorDoubleSpinBox) self.conditionsExplanationLabel = QtWidgets.QLabel(self.stopConditionsFrame) self.conditionsExplanationLabel.setWordWrap(True) self.conditionsExplanationLabel.setObjectName("conditionsExplanationLabel") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.conditionsExplanationLabel) self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.stopConditionsFrame) self.buttonBox = QtWidgets.QDialogButtonBox(CartogramDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.formLayout.setWidget(3, QtWidgets.QFormLayout.SpanningRole, self.buttonBox) self.retranslateUi(CartogramDialog) self.buttonBox.accepted.connect(CartogramDialog.accept) # type: ignore self.buttonBox.rejected.connect(CartogramDialog.reject) # type: ignore self.layerComboBox.layerChanged['QgsMapLayer*'].connect(self.fieldListView.setLayer) # type: ignore QtCore.QMetaObject.connectSlotsByName(CartogramDialog)
def loadModule(self, module): if module: # can happen if it gets filtered away form = QtWidgets.QVBoxLayout() self.moduleparamBox.setTitle("Parameters for " + module.text()) helpBtn = QtWidgets.QPushButton("Module help") helpBtn.clicked.connect(self.showHelp) parameterform = module.paramClass.getParamUi(parent=self) form.addLayout(parameterform, stretch=1) # reset / run / add to list / add to view resetbar = QtWidgets.QHBoxLayout() resetbtn = QtWidgets.QPushButton("Reset") resetbtn.clicked.connect(lambda: self.resetModule(module)) runbtn = QtWidgets.QPushButton("Run now") runbtn.clicked.connect(lambda: self.runModuleAsync(module)) addbtn = QtWidgets.QPushButton("Add to run list >") addbtn.clicked.connect(self.addToRunList) if "opals" in module.text(): self.viewbox = QtWidgets.QCheckBox("Add result to canvas") self.viewbox.clicked.connect(self.viewboxChanged) self.commonbtn = QtWidgets.QPushButton( "Common and Global parameters") self.commonwin = module.paramClass.getGlobalCommonParamsWindow( parent=self) self.commonbtn.clicked.connect(self.commonwin.show) form.addWidget(self.commonbtn) #viewbox.stateChanged.connect(module.paramClass.view = viewbox.isChecked()) resetbar.addStretch(1) resetbar.addWidget(helpBtn) resetbar.addWidget(resetbtn) resetbar.addWidget(runbtn) resetbar.addWidget(addbtn) if "opals" in module.text(): resetbar.addWidget(self.viewbox) #resetbar.addWidget(commonbtn) #resetbar.addWidget(globalbtn) form.addLayout(resetbar) module.paramClass.revalidate = True module.paramClass.validate() self.curmodule = module else: form = QtWidgets.QHBoxLayout() l1 = QtWidgets.QLabel("No module selected...") form.addWidget(l1) self.moduleparamBox.setTitle("Module Parameters") self.clearLayout(self.moduleparamLayout) self.moduleparamLayout.addLayout(form)
def __init__(self, parent=None): super(AskFeatureDialog, self).__init__(parent) self.setWindowTitle("Selecteer feature") qlayout = PQtW.QVBoxLayout(self) self.qlineA = PQtW.QLabel(self) self.qlineB = PQtW.QLabel(self) self.qComboA = PQtW.QComboBox(self) self.qlineA.setText("U heeft meerdere features geselecteerd.") self.qlineB.setText("Selecteer in de lijst de feature die u wilt bewerken.") self.qComboA.setFixedWidth(100) self.qComboA.setMaxVisibleItems(30) for item in self.askList: self.qComboA.addItem(str(item[1]), str(item[0])) qlayout.addWidget(self.qlineA) qlayout.addWidget(self.qlineB) qlayout.addWidget(self.qComboA) buttons = PQtW.QDialogButtonBox( PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel, PQtC.Qt.Horizontal, self) buttons.accepted.connect(self.accept) buttons.rejected.connect(self.reject) qlayout.addWidget(buttons)
def setupUi(self, LoginDialog): LoginDialog.setObjectName("LoginDialog") LoginDialog.resize(268, 95) self.gridLayout = QtWidgets.QGridLayout(LoginDialog) self.gridLayout.setObjectName("gridLayout") self.label_5 = QtWidgets.QLabel(LoginDialog) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1) self.editUser = QtWidgets.QLineEdit(LoginDialog) self.editUser.setEnabled(True) self.editUser.setInputMask("") self.editUser.setText("") self.editUser.setObjectName("editUser") self.gridLayout.addWidget(self.editUser, 0, 1, 1, 1) self.label_6 = QtWidgets.QLabel(LoginDialog) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1) self.editPassword = QtWidgets.QLineEdit(LoginDialog) self.editPassword.setEnabled(True) self.editPassword.setInputMask("") self.editPassword.setText("") self.editPassword.setEchoMode(QtWidgets.QLineEdit.Password) self.editPassword.setObjectName("editPassword") self.gridLayout.addWidget(self.editPassword, 1, 1, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(LoginDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2) self.label_5.setBuddy(self.editUser) self.label_6.setBuddy(self.editPassword) self.retranslateUi(LoginDialog) self.buttonBox.accepted.connect(LoginDialog.accept) self.buttonBox.rejected.connect(LoginDialog.reject) QtCore.QMetaObject.connectSlotsByName(LoginDialog)