ladybird/Applications/SystemMonitor/NetworkStatisticsWidget.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

21 lines
477 B
C++

#pragma once
#include <LibCore/CTimer.h>
#include <LibGUI/GLazyWidget.h>
class GTableView;
class NetworkStatisticsWidget final : public GLazyWidget {
C_OBJECT(NetworkStatisticsWidget)
public:
virtual ~NetworkStatisticsWidget() override;
private:
explicit NetworkStatisticsWidget(GWidget* parent = nullptr);
void update_models();
RefPtr<GTableView> m_adapter_table_view;
RefPtr<GTableView> m_socket_table_view;
RefPtr<CTimer> m_update_timer;
};