[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/outputviews
From: Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date: 2003-11-15 13:59:30
[Download RAW message or body]
CVS commit by dagerbo:
Make it possible to stop the running program.
CCMAIL: 55285-done@bugs.kde.org
M +11 -0 appoutputviewpart.cpp 1.26
M +1 -0 appoutputviewpart.h 1.9
--- kdevelop/parts/outputviews/appoutputviewpart.cpp #1.25:1.26
@@ -45,4 +45,5 @@ AppOutputViewPart::AppOutputViewPart(QOb
connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)),
this, SLOT(slotStopButtonClicked(KDevPlugin*)) );
+ connect(m_widget, SIGNAL(processExited(KProcess*)), this, SLOT(slotProcessExited()));
connect(m_widget, SIGNAL(processExited(KProcess*)), SIGNAL(processExited()));
}
@@ -67,4 +68,11 @@ void AppOutputViewPart::stopApplication(
{
m_widget->killJob();
+
+ core()->running( this, false );
+}
+
+void AppOutputViewPart::slotProcessExited( KProcess * )
+{
+ core()->running( this, false );
}
@@ -98,4 +106,7 @@ void AppOutputViewPart::startAppCommand(
// use the supplied directory
m_widget->startJob(directory, cmd);
+
+ core()->running( this, true );
+
mainWindow()->raiseView(m_widget);
}
--- kdevelop/parts/outputviews/appoutputviewpart.h #1.8:1.9
@@ -41,4 +41,5 @@ signals:
private slots:
void slotStopButtonClicked(KDevPlugin*);
+ void slotProcessExited();
private:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic