Project/Project.py

changeset 538
7f1a56e80124
parent 537
72b32daeb8d6
child 539
87f9bce38a44
equal deleted inserted replaced
537:72b32daeb8d6 538:7f1a56e80124
2353 self.appendFile(ms) 2353 self.appendFile(ms)
2354 except IndexError: 2354 except IndexError:
2355 ms = "" 2355 ms = ""
2356 2356
2357 # add existing files to the project 2357 # add existing files to the project
2358 res = QMessageBox.question(None, 2358 res = E5MessageBox.question(self.ui,
2359 self.trUtf8("New Project"), 2359 self.trUtf8("New Project"),
2360 self.trUtf8("""Add existing files to the project?"""), 2360 self.trUtf8("""Add existing files to the project?"""),
2361 QMessageBox.StandardButtons(\ 2361 QMessageBox.StandardButtons(\
2362 QMessageBox.No | \ 2362 QMessageBox.No | \
2363 QMessageBox.Yes), 2363 QMessageBox.Yes),
2404 self.pdata["VCS"] = [vcsSystem] 2404 self.pdata["VCS"] = [vcsSystem]
2405 self.vcs = self.initVCS() 2405 self.vcs = self.initVCS()
2406 self.setDirty(True) 2406 self.setDirty(True)
2407 if self.vcs is not None: 2407 if self.vcs is not None:
2408 # edit VCS command options 2408 # edit VCS command options
2409 vcores = QMessageBox.question(None, 2409 vcores = E5MessageBox.question(self.ui,
2410 self.trUtf8("New Project"), 2410 self.trUtf8("New Project"),
2411 self.trUtf8("""Would you like to edit the VCS""" 2411 self.trUtf8("""Would you like to edit the VCS"""
2412 """ command options?"""), 2412 """ command options?"""),
2413 QMessageBox.StandardButtons(\ 2413 QMessageBox.StandardButtons(\
2414 QMessageBox.No | \ 2414 QMessageBox.No | \
2418 codlg = vcsCommandOptionsDialog(self.vcs) 2418 codlg = vcsCommandOptionsDialog(self.vcs)
2419 if codlg.exec_() == QDialog.Accepted: 2419 if codlg.exec_() == QDialog.Accepted:
2420 self.vcs.vcsSetOptions(codlg.getOptions()) 2420 self.vcs.vcsSetOptions(codlg.getOptions())
2421 # add project file to repository 2421 # add project file to repository
2422 if res == 0: 2422 if res == 0:
2423 apres = QMessageBox.question(None, 2423 apres = E5MessageBox.question(self.ui,
2424 self.trUtf8("New project"), 2424 self.trUtf8("New project"),
2425 self.trUtf8("Shall the project file be added" 2425 self.trUtf8("Shall the project file be added"
2426 " to the repository?"), 2426 " to the repository?"),
2427 QMessageBox.StandardButtons(\ 2427 QMessageBox.StandardButtons(\
2428 QMessageBox.No | \ 2428 QMessageBox.No | \
2468 self.pdata["VCS"] = ['None'] 2468 self.pdata["VCS"] = ['None']
2469 self.vcs = self.initVCS() 2469 self.vcs = self.initVCS()
2470 self.setDirty(True) 2470 self.setDirty(True)
2471 if self.vcs is not None: 2471 if self.vcs is not None:
2472 # edit VCS command options 2472 # edit VCS command options
2473 vcores = QMessageBox.question(None, 2473 vcores = E5MessageBox.question(self.ui,
2474 self.trUtf8("New Project"), 2474 self.trUtf8("New Project"),
2475 self.trUtf8("""Would you like to edit the VCS command""" 2475 self.trUtf8("""Would you like to edit the VCS command"""
2476 """ options?"""), 2476 """ options?"""),
2477 QMessageBox.StandardButtons(\ 2477 QMessageBox.StandardButtons(\
2478 QMessageBox.No | \ 2478 QMessageBox.No | \
4366 4366
4367 def handleApplicationDiagram(self): 4367 def handleApplicationDiagram(self):
4368 """ 4368 """
4369 Private method to handle the application diagram context menu action. 4369 Private method to handle the application diagram context menu action.
4370 """ 4370 """
4371 res = QMessageBox.question(None, 4371 res = E5MessageBox.question(self.ui,
4372 self.trUtf8("Application Diagram"), 4372 self.trUtf8("Application Diagram"),
4373 self.trUtf8("""Include module names?"""), 4373 self.trUtf8("""Include module names?"""),
4374 QMessageBox.StandardButtons(\ 4374 QMessageBox.StandardButtons(\
4375 QMessageBox.No | \ 4375 QMessageBox.No | \
4376 QMessageBox.Yes), 4376 QMessageBox.Yes),

eric ide

mercurial