示例#1
0
 def _selectProjectFolder(self):
     defaultPath = self.field("projectFolder")
     if defaultPath == '':
         defaultPath = Settings.projectsFolder()
     folderName = unicode(
         QFileDialog.getExistingDirectory(self, self.tr('Project Folder'), defaultPath)
     )
     if folderName:
         self.setField("projectFolder", folderName)
示例#2
0
 def load(self):
     self.setProjectsFolder(Settings.projectsFolder())
     self.setUserFullName(Settings.userFullName())
     self.setUserInitials(Settings.userInitials())
     self.setUserOrganisation(Settings.userOrganisation())
示例#3
0
 def _defaultProjectFolder(self):
     projectFolderName = self.field("projectCode") + ' - ' + self.field("projectName")
     return os.path.join(Settings.projectsFolder(), projectFolderName, 'GIS')
 def load(self):
     self.setProjectsFolder(Settings.projectsFolder())
     self.setUserFullName(Settings.userFullName())
     self.setUserInitials(Settings.userInitials())
     self.setUserOrganisation(Settings.userOrganisation())