mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Profiler: Make processes selectable in the timeline view
This commit is contained in:
parent
7b9cabb5a3
commit
43b3fd748a
3 changed files with 49 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue