2
* Copyright (C) 2007-2010 John Tapsell <johnflux@gmail.com>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Library General Public License version 2 as
6
* published by the Free Software Foundation
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details
13
* You should have received a copy of the GNU Library General Public
14
* License along with this program; if not, write to the
15
* Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
#ifndef KSYSTEMACTIVITYDIALOG__H
20
#define KSYSTEMACTIVITYDIALOG__H
26
#include "processui/ksysguardprocesslist.h"
28
/** This creates a simple dialog box with a KSysguardProcessList
30
* It remembers the size and position of the dialog, and sets
31
* the dialog to always be over the other windows
33
class KSystemActivityDialog : public KDialog
36
KSystemActivityDialog(QWidget *parent = NULL);
38
/** Show the dialog and set the focus
40
* This can be called even when the dialog is already showing to bring it
41
* to the front again and move it to the current desktop etc.
45
/** Set the text in the filter line in the process list widget */
46
void setFilterText(const QString &filterText);
48
/** Save the settings if the user presses the ESC key */
49
virtual void reject();
52
/** Save the settings if the user clicks (x) button on the window */
53
void closeEvent(QCloseEvent *event);
56
void saveDialogSettings();
58
KSysGuardProcessList m_processList;
60
#endif // not Q_WS_WIN
62
#endif // KSYSTEMACTIVITYDIALOG__H