summaryrefslogtreecommitdiff
path: root/portato/gui/qt
diff options
context:
space:
mode:
authornecoro <>2007-07-11 07:37:22 +0000
committernecoro <>2007-07-11 07:37:22 +0000
commitb5e8e2eb2b8bc9936070028ecf91ff8d0b7c33ef (patch)
tree366a8a3656d01dc2e30f28943c898a2578211409 /portato/gui/qt
parent3637bd7900f3b480b5935279c598c39bee70a03e (diff)
downloadportato-b5e8e2eb2b8bc9936070028ecf91ff8d0b7c33ef.tar.gz
portato-b5e8e2eb2b8bc9936070028ecf91ff8d0b7c33ef.tar.bz2
portato-b5e8e2eb2b8bc9936070028ecf91ff8d0b7c33ef.zip
added SIGSTOP/SIGCONT support; SIGTERM now works ;)
Diffstat (limited to '')
-rw-r--r--portato/gui/qt/terminal.py2
-rw-r--r--portato/gui/qt/windows.py11
2 files changed, 13 insertions, 0 deletions
diff --git a/portato/gui/qt/terminal.py b/portato/gui/qt/terminal.py
index 23e090a..0c7cf8b 100644
--- a/portato/gui/qt/terminal.py
+++ b/portato/gui/qt/terminal.py
@@ -118,6 +118,8 @@ class QtConsole (Console, Qt.QTextEdit):
self.writeQueue = ""
self.isNotWrapping = False
+ self.setContextMenuPolicy(Qt.Qt.ActionsContextMenu)
+
# set black bg
self.palette().setColor(Qt.QPalette.Base, Qt.QColor("black"))
diff --git a/portato/gui/qt/windows.py b/portato/gui/qt/windows.py
index 5f1100f..a61a6d7 100644
--- a/portato/gui/qt/windows.py
+++ b/portato/gui/qt/windows.py
@@ -742,6 +742,10 @@ class MainWindow (Window):
self.consoleLayout.setSpacing(0)
self.consoleTab.setLayout(self.consoleLayout)
self.consoleLayout.addWidget(self.console)
+
+ self.console.addAction(self.killAction)
+ self.console.addAction(self.pauseAction)
+
Qt.QObject.connect(self, Qt.SIGNAL("doTitleUpdate"), self._title_update)
# build queueList
@@ -863,6 +867,13 @@ class MainWindow (Window):
self.db = Database()
self.db.populate()
+ @Qt.pyqtSignature("bool")
+ def on_pauseAction_triggered (self, checked):
+ if checked:
+ self.queue.stop_emerge()
+ else:
+ self.queue.continue_emerge()
+
@Qt.pyqtSignature("")
def on_killAction_triggered (self):
self.queue.kill_emerge()