ladybird/Applications/SystemMonitor/ProcessTableView.h
Andreas Kling 9da121f837 SystemMonitor: Make all tabs except the process table lazily loaded
We now use GLazyWidget for all the secondary tabs, which makes the
program start up way faster than before.

There's a noticeable delay when you click on the "PCI Devices" tab
for the first time, but that's definitely better than always eating
that delay before seeing a window at all. :^)
2019-10-02 20:26:19 +02:00

23 lines
436 B
C++

#pragma once
#include <AK/Function.h>
#include <LibGUI/GTableView.h>
#include <unistd.h>
class GraphWidget;
class ProcessModel;
class ProcessTableView final : public GTableView {
C_OBJECT(ProcessTableView)
public:
virtual ~ProcessTableView() override;
pid_t selected_pid() const;
void refresh();
Function<void(pid_t)> on_process_selected;
private:
explicit ProcessTableView(GWidget* parent = nullptr);
};