mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
This will be useful for doing something in response to the user selecting a different process.
24 lines
473 B
C++
24 lines
473 B
C++
#pragma once
|
|
|
|
#include <AK/Function.h>
|
|
#include <LibGUI/GTableView.h>
|
|
#include <unistd.h>
|
|
|
|
class GraphWidget;
|
|
class ProcessModel;
|
|
|
|
class ProcessTableView final : public GTableView {
|
|
public:
|
|
ProcessTableView(GraphWidget&, GWidget* parent);
|
|
virtual ~ProcessTableView() override;
|
|
|
|
pid_t selected_pid() const;
|
|
|
|
void refresh();
|
|
|
|
Function<void(pid_t)> on_process_selected;
|
|
|
|
private:
|
|
virtual void model_notification(const GModelNotification&) override;
|
|
};
|