mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
ProcessManager: Rename it to SystemMonitor
This is a more appropriate name now that it does a lot more than just manage processes ^)
This commit is contained in:
parent
c7040cee62
commit
cbdda91065
23 changed files with 9 additions and 9 deletions
24
Applications/SystemMonitor/GraphWidget.h
Normal file
24
Applications/SystemMonitor/GraphWidget.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <AK/CircularQueue.h>
|
||||
#include <LibGUI/GFrame.h>
|
||||
|
||||
class GraphWidget final : public GFrame {
|
||||
public:
|
||||
explicit GraphWidget(GWidget* parent);
|
||||
virtual ~GraphWidget() override;
|
||||
|
||||
void set_max(int max) { m_max = max; }
|
||||
void add_value(int);
|
||||
|
||||
void set_graph_color(Color color) { m_graph_color = color; }
|
||||
void set_text_color(Color color) { m_text_color = color; }
|
||||
|
||||
Function<String(int value, int max)> text_formatter;
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
int m_max { 100 };
|
||||
CircularQueue<int, 4000> m_values;
|
||||
Color m_graph_color;
|
||||
Color m_text_color;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue