Esempio n. 1
0
 def on_buttonEnvironment_pressed(self):
     name = self.lineFileName.text()
     location = self.lineLocation.text()
     templateModel = self.comboTemplates.model()
     template = templateModel.node(templateModel.createIndex(self.comboTemplates.currentIndex(), 0))
     
     tEnv = template.buildEnvironment(fileName = name, fileDirectory = location, localVars = True)
     self.userEnvironment = EnvironmentDialog.editEnvironment(self, self.userEnvironment, tEnv)
Esempio n. 2
0
 def on_buttonEnvironment_pressed(self):
     name = self.lineProjectName.text()
     location = self.lineLocation.text()
     index = self.projectProxyModel.createIndex(self.comboBoxTemplate.currentIndex(), 0)
     if index.isValid():
         template = self.projectProxyModel.node(index)
         tEnv = template.buildEnvironment(projectName = name, projectLocation = location, localVars = True)
     self.userEnvironment = EnvironmentDialog.editEnvironment(self, self.userEnvironment, tEnv)
Esempio n. 3
0
 def on_buttonEnvironment_pressed(self):
     name = self.lineFileName.text()
     location = self.lineLocation.text()
     templateModel = self.comboTemplates.model()
     template = templateModel.node(templateModel.createIndex(self.comboTemplates.currentIndex(), 0))
     
     tEnv = template.buildEnvironment(fileName = name, fileDirectory = location, localVars = True)
     self.userEnvironment = EnvironmentDialog.editEnvironment(self, self.userEnvironment, tEnv)
Esempio n. 4
0
 def on_buttonEnvironment_pressed(self):
     name = self.lineProjectName.text()
     location = self.lineLocation.text()
     index = self.projectProxyModel.createIndex(
         self.comboBoxTemplate.currentIndex(), 0)
     if index.isValid():
         template = self.projectProxyModel.node(index)
         tEnv = template.buildEnvironment(projectName=name,
                                          projectLocation=location,
                                          localVars=True)
     self.userEnvironment = EnvironmentDialog.editEnvironment(
         self, self.userEnvironment, tEnv)