mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
9da121f837
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. :^)
23 lines
436 B
C++
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);
|
|
};
|