1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

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.
This commit is contained in:
kleines Filmröllchen 2022-03-24 13:30:52 +01:00 committed by Andreas Kling
parent 452bbcaa84
commit 7af87e8e6b
13 changed files with 181 additions and 64 deletions

View file

@ -10,6 +10,11 @@
#include <LibGUI/JsonArrayModel.h>
#include <LibGUI/SortingProxyModel.h>
#include <LibGUI/TableView.h>
#include <LibGUI/Widget.h>
REGISTER_WIDGET(SystemMonitor, ProcessUnveiledPathsWidget)
namespace SystemMonitor {
ProcessUnveiledPathsWidget::ProcessUnveiledPathsWidget()
{
@ -32,3 +37,5 @@ void ProcessUnveiledPathsWidget::set_pid(pid_t pid)
m_pid = pid;
m_model->set_json_path(String::formatted("/proc/{}/unveil", m_pid));
}
}