コード例 #1
0
 def load(self):
     if Settings.useProjectServer():
         self._ark = Ark(Settings.serverUrl(), Settings.serverUser(), Settings.serverPassword())
         projects = self._ark.getProjectList()
         self.projectCodeCombo.setMaxCount(len(projects))
         for key in utils.natsorted(projects.keys()):
             self.projectCodeCombo.addItem(projects[key], key)
     self.setProjectCode(Settings.projectCode())
     self.setProjectName(Settings.projectName())
     self.setSiteCode(Settings.siteCode())
     self.setLocation(Settings.locationEasting(), Settings.locationNorthing)
コード例 #2
0
 def load(self):
     if Settings.useProjectServer():
         self._ark = Ark(Settings.serverUrl(), Settings.serverUser(),
                         Settings.serverPassword())
         projects = self._ark.getProjectList()
         self.projectCodeCombo.setMaxCount(len(projects))
         for key in utils.natsorted(projects.keys()):
             self.projectCodeCombo.addItem(projects[key], key)
     self.setProjectCode(Settings.projectCode())
     self.setProjectName(Settings.projectName())
     self.setSiteCode(Settings.siteCode())
     self.setLocation(Settings.locationEasting(), Settings.locationNorthing)
コード例 #3
0
 def __init__(self, parent=None):
     super(ProjectWidget, self).__init__(parent)
     self.setupUi(self)
     self._ark = None
     if Settings.useProjectServer():
         self.projectNameEdit.setEnabled(False)
         self.siteCodeEdit.setEnabled(False)
         self.locationEastingEdit.setEnabled(False)
         self.locationNorthingEdit.setEnabled(False)
         self.projectCodeCombo.setMaxVisibleItems(10)
         self.projectCodeCombo.setInsertPolicy(QComboBox.NoInsert)
         self.projectCodeCombo.currentIndexChanged.connect(self._selectProject)
コード例 #4
0
 def __init__(self, parent=None):
     super(ProjectWidget, self).__init__(parent)
     self.setupUi(self)
     self._ark = None
     if Settings.useProjectServer():
         self.projectNameEdit.setEnabled(False)
         self.siteCodeEdit.setEnabled(False)
         self.locationEastingEdit.setEnabled(False)
         self.locationNorthingEdit.setEnabled(False)
         self.projectCodeCombo.setMaxVisibleItems(10)
         self.projectCodeCombo.setInsertPolicy(QComboBox.NoInsert)
         self.projectCodeCombo.currentIndexChanged.connect(
             self._selectProject)