Changeset 5c476de947b4…
Parent ffd118e1fc4d…
by
Changes to 17 files · Browse files at 5c476de947b4 Showing diff from parent ffd118e1fc4d Diff from another changeset...
@@ -327,9 +327,9 @@
def detail_clicked(self):
if self.cmd.is_show_output():
- self.cmd.show_output(False)
+ self.cmd.setShowOutput(False)
else:
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
def cancel_clicked():
self.cmd.cancel()
|
@@ -171,7 +171,7 @@ self.cmd.cancel()
def detail_toggled(self, checked):
- self.cmd.show_output(checked)
+ self.cmd.setShowOutput(checked)
def command_started(self):
self.cmd.setShown(True)
|
@@ -53,7 +53,7 @@
## command widget
self.cmd = cmdui.Widget()
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
box.addWidget(self.cmd, 1)
hbox = QHBoxLayout()
|
@@ -305,7 +305,7 @@ self.reject()
def detail_toggled(self, checked):
- self.cmd.show_output(checked)
+ self.cmd.setShowOutput(checked)
def browse_src(self):
FD = QFileDialog
|
@@ -682,7 +682,7 @@ def cancel(self):
self.core.cancel()
- def show_output(self, visible):
+ def setShowOutput(self, visible):
if self.internallog:
self.core.output_text.setShown(visible)
@@ -698,7 +698,7 @@ def onCommandFinished(self, ret):
if ret == -1:
self.makeLogVisible.emit(True)
- self.show_output(True)
+ self.setShowOutput(True)
self.commandFinished.emit(ret)
class Dialog(QDialog):
@@ -739,7 +739,7 @@ self.detailBtn.setAutoDefault(False)
self.detailBtn.setCheckable(True)
self.detailBtn.setChecked(True)
- self.detailBtn.toggled.connect(self.show_output)
+ self.detailBtn.toggled.connect(self.setShowOutput)
vbox.addWidget(buttons)
self.setLayout(vbox)
@@ -749,7 +749,7 @@ # start command
self.core.run(cmdline)
- def show_output(self, visible):
+ def setShowOutput(self, visible):
"""show/hide command output"""
self.core.output_text.setVisible(visible)
self.detailBtn.setChecked(visible)
@@ -830,7 +830,7 @@ def cancel(self):
self.core.cancel()
- def show_output(self, visible=True):
+ def setShowOutput(self, visible=True):
if not self.internallog:
return
if not hasattr(self, 'dlg'):
@@ -850,5 +850,5 @@ def onCommandFinished(self, ret):
if ret != 0:
self.makeLogVisible.emit(True)
- self.show_output()
+ self.setShowOutput(True)
self.commandFinished.emit(ret)
|
@@ -52,7 +52,7 @@
self.cmd = cmdui.Widget()
self.cmd.commandFinished.connect(self.commandFinished)
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
self.showMessage.connect(self.cmd.stbar.showMessage)
self.cmd.stbar.linkActivated.connect(self.linkActivated)
self.layout().addWidget(self.cmd, 2)
|
@@ -243,7 +243,7 @@ cmd = cmdui.Dialog(['email'] + cmdargs(opts) + list(map(str, self._revs)),
parent=self)
cmd.setWindowTitle(_('Sending Email'))
- cmd.show_output(False)
+ cmd.setShowOutput(False)
if cmd.exec_():
self._writehistory()
super(EmailDialog, self).accept()
|
@@ -118,7 +118,7 @@ ppane = QVBoxLayout()
ppane.addSpacing(4)
self.cmd = cmdui.Widget()
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
self.cmd.commandFinished.connect(self.command_finished)
self.cmd.commandCanceling.connect(self.command_canceling)
ppane.addWidget(self.cmd)
|
@@ -338,7 +338,7 @@ self.cmd = cmdui.Dialog(['postreview'] + cmdargs(opts) + [revstr],
self, self.onCompletion)
self.cmd.setWindowTitle(_('Posting Review'))
- self.cmd.show_output(False)
+ self.cmd.setShowOutput(False)
@pyqtSlot()
def onCompletion(self):
|
@@ -98,7 +98,7 @@ if self.checkResolve() or not (s or d):
for w in (srcb, destb, sep, self.keepchk, self.detachchk):
w.setHidden(True)
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
else:
self.showMessage.emit(_('Checking...'))
QTimer.singleShot(0, self.checkStatus)
|
@@ -304,9 +304,9 @@
def detail_clicked(self):
if self.cmd.is_show_output():
- self.cmd.show_output(False)
+ self.cmd.setShowOutput(False)
else:
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
def cancel_clicked():
self.cmd.cancel()
|
@@ -125,7 +125,7 @@ self.layout().addWidget(out)
self.cmd = cmdui.Widget(True, self)
self.cmd.commandFinished.connect(self.refresh)
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
self.layout().addWidget(self.cmd)
BB = QDialogButtonBox
|
@@ -37,7 +37,7 @@ self.layout().addWidget(self.allchk)
self.cmd = cmdui.Widget()
- self.cmd.show_output(False)
+ self.cmd.setShowOutput(False)
self.cmd.stbar.setVisible(False)
self.cmd.commandFinished.connect(self.finished)
self.layout().addWidget(self.cmd, 1)
@@ -62,7 +62,7 @@ else:
cmdline = ['revert', '--repository', self.repo.root, self.wfile]
cmdline += ['--rev', self.rev]
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
self.cmd.stbar.setVisible(True)
self.cmd.run(cmdline)
|
@@ -497,7 +497,7 @@ if b: b.setEnabled(False)
self.stopAction.setEnabled(True)
if not self.embedded:
- self.cmd.show_output(True)
+ self.cmd.setShowOutput(True)
self.cmd.setVisible(True)
def commandFinished(self, ret):
|
@@ -294,7 +294,7 @@ self.reject()
def detail_toggled(self, checked):
- self.cmd.show_output(checked)
+ self.cmd.setShowOutput(checked)
def command_started(self):
self.cmd.setShown(True)
|
@@ -223,7 +223,7 @@ self.reject()
def detail_toggled(self, checked):
- self.cmd.show_output(checked)
+ self.cmd.setShowOutput(checked)
def show_options(self, visible):
self.nobackup_chk.setShown(visible)
|
@@ -271,7 +271,7 @@ self.reject()
def detail_toggled(self, checked):
- self.cmd.show_output(checked)
+ self.cmd.setShowOutput(checked)
def show_options(self, visible):
self.merge_chk.setShown(visible)
|
Loading...