2019-02-28 06:57:09 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Function.h>
|
2019-05-28 06:53:16 -03:00
|
|
|
#include <LibGUI/GTableView.h>
|
2019-02-28 06:57:09 -03:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
2019-05-05 22:21:23 -03:00
|
|
|
class GraphWidget;
|
2019-03-22 21:42:49 -03:00
|
|
|
class ProcessModel;
|
2019-02-28 06:57:09 -03:00
|
|
|
|
|
|
|
|
class ProcessTableView final : public GTableView {
|
|
|
|
|
public:
|
2019-05-05 22:21:23 -03:00
|
|
|
ProcessTableView(GraphWidget&, GWidget* parent);
|
2019-02-28 06:57:09 -03:00
|
|
|
virtual ~ProcessTableView() override;
|
|
|
|
|
|
|
|
|
|
pid_t selected_pid() const;
|
|
|
|
|
|
2019-04-17 23:38:31 -03:00
|
|
|
void refresh();
|
2019-02-28 17:30:17 -03:00
|
|
|
|
2019-07-27 04:37:26 -03:00
|
|
|
Function<void(pid_t)> on_process_selected;
|
2019-02-28 06:57:09 -03:00
|
|
|
};
|