VCS/ProjectHelper.py

changeset 55
b5c84934de9c
parent 53
c3eb7cc1ff8b
child 97
c4086afea02b
equal deleted inserted replaced
54:31463df17fd5 55:b5c84934de9c
13 import copy 13 import copy
14 14
15 from PyQt4.QtCore import * 15 from PyQt4.QtCore import *
16 from PyQt4.QtGui import * 16 from PyQt4.QtGui import *
17 17
18 from E4Gui.E4Application import e5App 18 from E5Gui.E5Application import e5App
19 19
20 import VCS 20 import VCS
21 from .CommandOptionsDialog import vcsCommandOptionsDialog 21 from .CommandOptionsDialog import vcsCommandOptionsDialog
22 from .RepositoryInfoDialog import VcsRepositoryInfoDialog 22 from .RepositoryInfoDialog import VcsRepositoryInfoDialog
23 23
24 from E4Gui.E4Action import E4Action 24 from E5Gui.E5Action import E5Action
25 25
26 import Utilities 26 import Utilities
27 import Preferences 27 import Preferences
28 28
29 class VcsProjectHelper(QObject): 29 class VcsProjectHelper(QObject):
62 62
63 def initActions(self): 63 def initActions(self):
64 """ 64 """
65 Public method to generate the action objects. 65 Public method to generate the action objects.
66 """ 66 """
67 self.vcsNewAct = E4Action(self.trUtf8('New from repository'), 67 self.vcsNewAct = E5Action(self.trUtf8('New from repository'),
68 self.trUtf8('&New from repository...'), 0, 0, self, 'vcs_new') 68 self.trUtf8('&New from repository...'), 0, 0, self, 'vcs_new')
69 self.vcsNewAct.setStatusTip(self.trUtf8( 69 self.vcsNewAct.setStatusTip(self.trUtf8(
70 'Create a new project from the VCS repository' 70 'Create a new project from the VCS repository'
71 )) 71 ))
72 self.vcsNewAct.setWhatsThis(self.trUtf8( 72 self.vcsNewAct.setWhatsThis(self.trUtf8(
74 """<p>This creates a new local project from the VCS repository.</p>""" 74 """<p>This creates a new local project from the VCS repository.</p>"""
75 )) 75 ))
76 self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout) 76 self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout)
77 self.actions.append(self.vcsNewAct) 77 self.actions.append(self.vcsNewAct)
78 78
79 self.vcsExportAct = E4Action(self.trUtf8('Export from repository'), 79 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'),
80 self.trUtf8('&Export from repository...'), 0, 0, self, 'vcs_export') 80 self.trUtf8('&Export from repository...'), 0, 0, self, 'vcs_export')
81 self.vcsExportAct.setStatusTip(self.trUtf8( 81 self.vcsExportAct.setStatusTip(self.trUtf8(
82 'Export a project from the repository' 82 'Export a project from the repository'
83 )) 83 ))
84 self.vcsExportAct.setWhatsThis(self.trUtf8( 84 self.vcsExportAct.setWhatsThis(self.trUtf8(
86 """<p>This exports a project from the repository.</p>""" 86 """<p>This exports a project from the repository.</p>"""
87 )) 87 ))
88 self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport) 88 self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport)
89 self.actions.append(self.vcsExportAct) 89 self.actions.append(self.vcsExportAct)
90 90
91 self.vcsAddAct = E4Action(self.trUtf8('Add to repository'), 91 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'),
92 self.trUtf8('&Add to repository...'), 0, 0, self, 'vcs_add') 92 self.trUtf8('&Add to repository...'), 0, 0, self, 'vcs_add')
93 self.vcsAddAct.setStatusTip(self.trUtf8( 93 self.vcsAddAct.setStatusTip(self.trUtf8(
94 'Add the local project to the VCS repository' 94 'Add the local project to the VCS repository'
95 )) 95 ))
96 self.vcsAddAct.setWhatsThis(self.trUtf8( 96 self.vcsAddAct.setWhatsThis(self.trUtf8(

eric ide

mercurial