VCS/ProjectHelper.py

changeset 453
a81097a85889
parent 97
c4086afea02b
child 454
d28d558f7484
equal deleted inserted replaced
452:0bc58cbb64b2 453:a81097a85889
68 )) 68 ))
69 self.vcsNewAct.setWhatsThis(self.trUtf8( 69 self.vcsNewAct.setWhatsThis(self.trUtf8(
70 """<b>New from repository</b>""" 70 """<b>New from repository</b>"""
71 """<p>This creates a new local project from the VCS repository.</p>""" 71 """<p>This creates a new local project from the VCS repository.</p>"""
72 )) 72 ))
73 self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout) 73 self.vcsNewAct.triggered.connect(self._vcsCheckout)
74 self.actions.append(self.vcsNewAct) 74 self.actions.append(self.vcsNewAct)
75 75
76 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), 76 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'),
77 self.trUtf8('&Export from repository...'), 0, 0, self, 'vcs_export') 77 self.trUtf8('&Export from repository...'), 0, 0, self, 'vcs_export')
78 self.vcsExportAct.setStatusTip(self.trUtf8( 78 self.vcsExportAct.setStatusTip(self.trUtf8(
80 )) 80 ))
81 self.vcsExportAct.setWhatsThis(self.trUtf8( 81 self.vcsExportAct.setWhatsThis(self.trUtf8(
82 """<b>Export from repository</b>""" 82 """<b>Export from repository</b>"""
83 """<p>This exports a project from the repository.</p>""" 83 """<p>This exports a project from the repository.</p>"""
84 )) 84 ))
85 self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport) 85 self.vcsExportAct.triggered.connect(self._vcsExport)
86 self.actions.append(self.vcsExportAct) 86 self.actions.append(self.vcsExportAct)
87 87
88 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'), 88 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'),
89 self.trUtf8('&Add to repository...'), 0, 0, self, 'vcs_add') 89 self.trUtf8('&Add to repository...'), 0, 0, self, 'vcs_add')
90 self.vcsAddAct.setStatusTip(self.trUtf8( 90 self.vcsAddAct.setStatusTip(self.trUtf8(
92 )) 92 ))
93 self.vcsAddAct.setWhatsThis(self.trUtf8( 93 self.vcsAddAct.setWhatsThis(self.trUtf8(
94 """<b>Add to repository</b>""" 94 """<b>Add to repository</b>"""
95 """<p>This adds (imports) the local project to the VCS repository.</p>""" 95 """<p>This adds (imports) the local project to the VCS repository.</p>"""
96 )) 96 ))
97 self.connect(self.vcsAddAct, SIGNAL('triggered()'), self._vcsImport) 97 self.vcsAddAct.triggered.connect(self._vcsImport)
98 self.actions.append(self.vcsAddAct) 98 self.actions.append(self.vcsAddAct)
99 99
100 def initMenu(self, menu): 100 def initMenu(self, menu):
101 """ 101 """
102 Public method to generate the VCS menu. 102 Public method to generate the VCS menu.

eric ide

mercurial