Beispiel #1
0
 def loadProject(self, plugin):
     self.siteCodeCombo.clear()
     for siteCode in sorted(set(Settings.siteCodes())):
         self.siteCodeCombo.addItem(siteCode, siteCode)
     if Settings.siteCode():
         self._setSiteCode(Settings.siteCode())
     else:
         projectCode = Settings.projectCode()
         self.siteCodeCombo.addItem(projectCode, projectCode)
         self._setSiteCode(projectCode)
 def loadProject(self, plugin):
     if Settings.siteServerUrl():
         self.loadArkTool.setEnabled(True)
     self._enableArkNav(False)
     self.siteCodeCombo.clear()
     for siteCode in sorted(set(Settings.siteCodes())):
         self.siteCodeCombo.addItem(siteCode, siteCode)
     idx = self.siteCodeCombo.findData(Settings.siteCode())
     if idx >= 0:
         self.siteCodeCombo.setCurrentIndex(idx)
     self.resetContext()
Beispiel #3
0
 def loadProject(self, plugin):
     self.siteCodeCombo.clear()
     for siteCode in sorted(set(Settings.siteCodes())):
         self.siteCodeCombo.addItem(siteCode, siteCode)
     self.setSiteCode(Settings.siteCode())
Beispiel #4
0
 def _showItem(self):
     classCodes = sorted(set(self.collection('plan').uniqueValues('class')))
     dialog = SelectItemDialog(Settings.siteCodes(), Settings.siteCode(),
                               classCodes, self._plugin.iface.mainWindow())
     if dialog.exec_():
         self.drawingModule.showItem(dialog.item(), dialog.loadDrawings(), dialog.zoomToItem())