summaryrefslogtreecommitdiff
path: root/Userland/Applications/SystemMonitor/ProcessStateWidget.h
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-03-24 13:30:52 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-03 12:21:05 +0200
commit7af87e8e6ba5fee7fe486cf97f9a5e8d40b3d483 (patch)
treee27d982658bbcd1212f92e3f4aec3f15a1cdf9be /Userland/Applications/SystemMonitor/ProcessStateWidget.h
parent452bbcaa84b364cb76e99c46950ad2bedf0ca7be (diff)
downloadserenity-7af87e8e6ba5fee7fe486cf97f9a5e8d40b3d483.zip
SystemMonitor: Move process window to GML
Extra stuff done in this commit to facilitate the above (if you want to really push my commit count, ask for more atomicisation): - Register a bunch of widgets that are used in the process window. - Allow setting the pid after the fact for the process state widget.
Diffstat (limited to 'Userland/Applications/SystemMonitor/ProcessStateWidget.h')
-rw-r--r--Userland/Applications/SystemMonitor/ProcessStateWidget.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Userland/Applications/SystemMonitor/ProcessStateWidget.h b/Userland/Applications/SystemMonitor/ProcessStateWidget.h
index a2fd3e7bd7..0c90b5996a 100644
--- a/Userland/Applications/SystemMonitor/ProcessStateWidget.h
+++ b/Userland/Applications/SystemMonitor/ProcessStateWidget.h
@@ -9,13 +9,19 @@
#include <LibGUI/Widget.h>
+namespace SystemMonitor {
+
class ProcessStateWidget final : public GUI::Widget {
C_OBJECT(ProcessStateWidget);
public:
virtual ~ProcessStateWidget() override = default;
+ void set_pid(pid_t);
+
private:
- explicit ProcessStateWidget(pid_t);
+ ProcessStateWidget();
RefPtr<GUI::TableView> m_table_view;
};
+
+}