#pragma once #include class CTimer; class GLabel; class ProcessStateWidget final : public GWidget { C_OBJECT(ProcessStateWidget) public: virtual ~ProcessStateWidget() override; void set_tty_fd(int); private: explicit ProcessStateWidget(GWidget* parent); void refresh(); RefPtr m_pid_label; RefPtr m_state_label; RefPtr m_cpu_label; RefPtr m_memory_label; RefPtr m_timer; int m_tty_fd { -1 }; };