def open_bgt_viewer(self): """open url based on BGT location, i.v.m. terugmelden""" e = self.canvas.extent() gemx = (e.xMaximum() + e.xMinimum())/2 gemy = (e.yMaximum() + e.yMinimum())/2 url = PC.OBJECT["bgtviewerurl"] + 'geometry.x=' + str(gemx) + '&geometry.y=' + str(gemy) + '&zoomlevel=12' UC.open_url(url)
def initUI(self): self.opslaan.clicked.connect(self.run_tekenen) self.terug.clicked.connect(self.close_objectnieuw_show_base) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(PC.HELPURL["objectnieuwhelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True))
def initUI(self): self.select_file.clicked.connect(self.selectfile) self.terug.clicked.connect(self.close_import) self.mapping.clicked.connect(self.run_mapping) self.import_file.clicked.connect(self.inlezen) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(PC.HELPURL["objectimporthelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True)) self.hide_all()
def initUI(self): self.identify_pand.clicked.connect(self.run_identify_pand) self.identify_gebouw.clicked.connect(self.run_identify_terrein) self.filter_objecten.clicked.connect( lambda: FO.init_filter_section(self)) self.filterBtn.clicked.connect(lambda: FO.set_object_filter(self)) self.closewidget.clicked.connect(self.close_basewidget) self.filterframe.setVisible(False) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(HELPURL["basewidgethelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True))
def initUI(self): """setup initial GUI fow widget""" self.object_id.setVisible(False) self.kaartblad_frame.setVisible(False) self.grid_frame.setVisible(False) self.next.clicked.connect(self.run_grid) self.closewidget.clicked.connect( self.close_grid_open_repressief_object) self.delete_grid.clicked.connect(self.run_delete_tool) self.scale_25000.toggled.connect(self.adjust_kaartblad_settings) self.scale_diff.toggled.connect(self.adjust_kaartblad_settings) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(PC.HELPURL["objectgridhelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True))
def initActions(self): """connect the buttons to their actions""" self.bouwlaag_toevoegen.clicked.connect(self.run_bouwlaag) self.tekenen.clicked.connect(self.run_tekenen) self.comboBox.currentIndexChanged.connect( self.set_layer_subset_bouwlaag) self.bouwlaag_bewerken.clicked.connect(self.run_bouwlaag_bewerken) self.import_2.clicked.connect(self.run_import) self.terug.clicked.connect(self.close_object_show_base) self.terugmelden.clicked.connect(self.openBagviewer) self.delete_f.clicked.connect(self.run_delete) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(PC.HELPURL["pandhelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True))
def initUI(self): self.selectId.clicked.connect(self.run_select_bouwlaag) self.select_file.clicked.connect(self.selectfile) self.terug.clicked.connect(self.close_import) self.check.clicked.connect(self.check_importlayer) self.mapping.clicked.connect(self.run_mapping) self.import_laag.currentIndexChanged.connect(self.hide_import) self.type.currentIndexChanged.connect(self.hide_import) self.validatie_import.clicked.connect(self.inlezen_validatie) self.import_file.clicked.connect(self.inlezen) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(PC.HELPURL["bouwlaagimporthelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True)) for laag in self.importlagen: self.import_laag.addItem(laag) self.hide_all()
def initActions(self): """connect the buttons to their actions""" self.identify.setVisible(False) self.delete_f.setVisible(False) self.pan.setVisible(False) self.terrein_tekenen.setVisible(False) self.terug.clicked.connect(self.close_repressief_object_show_base) self.objectgegevens.clicked.connect(self.run_objectgegevens_bewerken) self.terugmelden.clicked.connect(self.open_bgt_viewer) self.delete_object.clicked.connect(self.run_delete_object) self.terrein_bewerken.clicked.connect(self.object_terrein_bewerken) self.object_symbolen.clicked.connect(self.run_object_symbolen_tekenen) self.create_grid.clicked.connect(self.run_create_grid) self.import_drawing.clicked.connect(self.run_import) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect(lambda: UC.open_url(PC.HELPURL["repressiefobjecthelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True))
def initUI(self): """intitiate the UI elemets on the widget""" UG.set_lengte_oppervlakte_visibility(self, False, False, False, False) self.object_id.setVisible(False) self.move.clicked.connect(self.run_move_point) self.identify.clicked.connect(self.run_edit_tool) self.select.clicked.connect(self.run_select_tool) self.delete_f.clicked.connect(self.run_delete_tool) self.pan.clicked.connect(self.activatePan) self.terug.clicked.connect(self.close_object_tekenen_show_base) actionList, self.editableLayerNames, self.moveLayerNames = UG.get_actions( PC.OBJECT["configtable"]) self.initActions(actionList) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(PC.HELPURL["objecttekenenhelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True))
def initUI(self): self.bouwlaag_bag.clicked.connect(self.run_bag_overnemen) self.bouwlaag_tekenen.clicked.connect(self.run_bouwlaag_tekenen) self.bouwlaag_overnemen.clicked.connect(self.run_bouwlaag_overnemen) self.terug.clicked.connect(self.close_bouwlaag) self.copy.clicked.connect(self.run_select_bouwlaag) self.label1.setVisible(False) self.label2.setVisible(False) self.label3.setVisible(False) self.teken_bouwlaag.setEnabled(False) UG.set_lengte_oppervlakte_visibility(self, False, False, False, False) self.bouwlaag_max.setVisible(False) self.bouwlaag.setVisible(False) self.copy.setVisible(False) self.helpBtn, self.floatBtn, titleBar = QT.getTitleBar() self.setTitleBarWidget(titleBar) self.helpBtn.clicked.connect( lambda: UC.open_url(PC.HELPURL["bouwlaaghelp"])) self.floatBtn.clicked.connect(lambda: self.setFloating(True)) for var in vars(self): typeVar = type(vars(self)[var]) if typeVar == PQtW.QCheckBox: vars(self)[var].setVisible(False)
def openBagviewer(self): """open url based on BAG pand_id, i.v.m. terugmelden""" url = PC.PAND["bagviewerurl"] + str(self.pand_id.text()) UC.open_url(url)