Warning, file /plasma/plasma-workspace/systemmonitor/ksystemactivitydialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2007-2010 John Tapsell <johnflux@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #ifndef Q_WS_WIN 0010 0011 #include <KConfigGroup> 0012 #include <KMainWindow> 0013 0014 class KSysGuardProcessList; 0015 0016 /** This creates a simple dialog box with a KSysguardProcessList 0017 * 0018 * It remembers the size and position of the dialog, and sets 0019 * the dialog to always be over the other windows 0020 */ 0021 class KSystemActivityDialog : public KMainWindow 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit KSystemActivityDialog(QWidget *parent = nullptr); 0026 0027 /** Show the dialog and set the focus 0028 * 0029 * This can be called even when the dialog is already showing to bring it 0030 * to the front again and move it to the current desktop etc. 0031 */ 0032 void run(); 0033 0034 /** Set the text in the filter line in the process list widget */ 0035 void setFilterText(const QString &filterText); 0036 QString filterText() const; 0037 0038 QSize sizeHint() const override; 0039 0040 protected: 0041 /** Save the settings if the user clicks (x) button on the window */ 0042 void closeEvent(QCloseEvent *event) override; 0043 0044 private: 0045 KSysGuardProcessList *m_processList = nullptr; 0046 KConfigGroup m_configGroup; 0047 }; 0048 #endif // not Q_WS_WIN