9 |
9 |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
11 |
11 |
12 from PyQt4.QtGui import QDialog |
12 from PyQt4.QtGui import QDialog |
13 |
13 |
14 from .Ui_CommandOptionsDialog import Ui_vcsCommandOptionsDialog |
14 from .Ui_CommandOptionsDialog import Ui_VcsCommandOptionsDialog |
15 |
15 |
16 import Utilities |
16 import Utilities |
17 |
17 |
18 |
18 |
19 class vcsCommandOptionsDialog(QDialog, Ui_vcsCommandOptionsDialog): |
19 class VcsCommandOptionsDialog(QDialog, Ui_VcsCommandOptionsDialog): |
20 """ |
20 """ |
21 Class implementing the VCS command options dialog. |
21 Class implementing the VCS command options dialog. |
22 """ |
22 """ |
23 def __init__(self, vcs, parent=None): |
23 def __init__(self, vcs, parent=None): |
24 """ |
24 """ |
49 self.tagEdit.setText(" ".join(opt['tag'])) |
49 self.tagEdit.setText(" ".join(opt['tag'])) |
50 self.exportEdit.setText(" ".join(opt['export'])) |
50 self.exportEdit.setText(" ".join(opt['export'])) |
51 |
51 |
52 # modify the what's this help |
52 # modify the what's this help |
53 for widget in [self.globalEdit, self.commitEdit, self.checkoutEdit, |
53 for widget in [self.globalEdit, self.commitEdit, self.checkoutEdit, |
54 self.updateEdit, self.addEdit, self.removeEdit, |
54 self.updateEdit, self.addEdit, self.removeEdit, |
55 self.diffEdit, self.logEdit, self.historyEdit, |
55 self.diffEdit, self.logEdit, self.historyEdit, |
56 self.statusEdit, self.tagEdit, self.exportEdit]: |
56 self.statusEdit, self.tagEdit, self.exportEdit]: |
57 t = widget.whatsThis() |
57 t = widget.whatsThis() |
58 if t: |
58 if t: |
59 t += Utilities.getPercentReplacementHelp() |
59 t += Utilities.getPercentReplacementHelp() |
60 widget.setWhatsThis(t) |
60 widget.setWhatsThis(t) |
61 |
61 |