예제 #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')
예제 #4
0
 def load(self):
     self.setProjectsFolder(Settings.projectsFolder())
     self.setUserFullName(Settings.userFullName())
     self.setUserInitials(Settings.userInitials())
     self.setUserOrganisation(Settings.userOrganisation())