author | llornkcor <llornkcor> | 2002-06-28 12:33:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-28 12:33:08 (UTC) |
commit | 9607d7d0953b0fbb128d23d3cb2effa9fe0657c4 (patch) (side-by-side diff) | |
tree | 92b1e09bf904c2f845da04cc0f39b4a8d90b822e | |
parent | 9838944f977a53dc3f9d3c138b507695bc6e238f (diff) | |
download | opie-9607d7d0953b0fbb128d23d3cb2effa9fe0657c4.zip opie-9607d7d0953b0fbb128d23d3cb2effa9fe0657c4.tar.gz opie-9607d7d0953b0fbb128d23d3cb2effa9fe0657c4.tar.bz2 |
patch for more signales by Michael Lauer <mickey@tm.informatik.uni-frankfurt.de>
-rw-r--r-- | noncore/settings/sysinfo/processdetail.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/processdetail.cpp b/noncore/settings/sysinfo/processdetail.cpp index ef612e6..5c0d335 100644 --- a/noncore/settings/sysinfo/processdetail.cpp +++ b/noncore/settings/sysinfo/processdetail.cpp @@ -1,84 +1,88 @@ /********************************************************************** ** ProcessDetail ** ** Display process information ** ** Copyright (C) 2002, Dan Williams ** williamsdr@acm.org ** http://draknor.net ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ #include "processdetail.h" #include <sys/types.h> #include <signal.h> #include <qcombobox.h> #include <qpushbutton.h> #include <qtextview.h> #include <qlayout.h> #include <qlistview.h> #include <qmessagebox.h> ProcessDetail::ProcessDetail( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { pid = 0; QGridLayout *layout = new QGridLayout( this ); layout->setSpacing( 4 ); layout->setMargin( 4 ); SignalCB = new QComboBox( FALSE, this, "SignalCB" ); SignalCB->insertItem( " 1: SIGHUP" ); SignalCB->insertItem( " 2: SIGINT" ); + SignalCB->insertItem( " 3: SIGQUIT" ); + SignalCB->insertItem( " 5: SIGTRAP" ); + SignalCB->insertItem( " 6: SIGABRT" ); SignalCB->insertItem( " 9: SIGKILL" ); + SignalCB->insertItem( "14: SIGALRM" ); SignalCB->insertItem( "15: SIGTERM" ); SignalCB->insertItem( "18: SIGCONT" ); SignalCB->insertItem( "19: SIGSTOP" ); layout->addWidget( SignalCB, 1, 0 ); ProcessView = new QTextView( this, "ProcessView" ); layout->addMultiCellWidget( ProcessView, 0, 0, 0, 1 ); SendButton = new QPushButton( this, "SendButton" ); SendButton->setMinimumSize( QSize( 50, 24 ) ); SendButton->setMaximumSize( QSize( 50, 24 ) ); SendButton->setText( tr( "Send" ) ); connect( SendButton, SIGNAL( clicked() ), this, SLOT( slotSendClicked() ) ); layout->addWidget( SendButton, 1, 1 ); } ProcessDetail::~ProcessDetail() { } void ProcessDetail::slotSendClicked() { QString sigstr = SignalCB->currentText(); sigstr.truncate(2); int sigid = sigstr.toUInt(); if ( QMessageBox::warning( this, caption(), tr( "You really want to send\n" + SignalCB->currentText() + "\nto this process?"), QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape ) == QMessageBox::Yes ) { if ( kill( pid, sigid ) == 0 ) { hide(); } } } |