1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:17:35 +00:00

Profiler: Make processes selectable in the timeline view

This commit is contained in:
Gunnar Beutner 2021-05-07 13:47:12 +02:00 committed by Andreas Kling
parent 7b9cabb5a3
commit 43b3fd748a
3 changed files with 49 additions and 5 deletions

View file

@ -10,6 +10,7 @@
namespace Profiler {
class Profile;
class Process;
class TimelineHeader final : public GUI::Frame {
@ -18,14 +19,21 @@ class TimelineHeader final : public GUI::Frame {
public:
virtual ~TimelineHeader();
Function<void(bool)> on_selection_change;
void update_selection();
private:
TimelineHeader(Process const&);
TimelineHeader(Profile& profile, Process const&);
virtual void paint_event(GUI::PaintEvent&) override;
virtual void mousedown_event(GUI::MouseEvent&) override;
Profile& m_profile;
Process const& m_process;
RefPtr<Gfx::Bitmap> m_icon;
String m_text;
bool m_selected;
};
}