xref: /haiku/src/apps/debuganalyzer/gui/thread_window/ActivityPage.h (revision 639e61ad420f8222403a305a5a8c266fca948b8f)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef THREAD_ACTIVITY_PAGE_H
6 #define THREAD_ACTIVITY_PAGE_H
7 
8 #include <GroupView.h>
9 
10 #include "thread_window/ThreadWindow.h"
11 
12 
13 class Chart;
14 class ChartRenderer;
15 class ColorCheckBox;
16 
17 
18 class ThreadWindow::ActivityPage : public BGroupView {
19 public:
20 								ActivityPage();
21 	virtual						~ActivityPage();
22 
23 			void				SetModel(ThreadModel* model);
24 
25 	virtual	void				MessageReceived(BMessage* message);
26 	virtual	void				AttachedToWindow();
27 
28 private:
29 			class ThreadActivityData;
30 
31 private:
32 			void				_UpdateChartDataEnabled(int timeType);
33 
34 private:
35 			ThreadModel*		fThreadModel;
36 			Chart*				fActivityChart;
37 			ChartRenderer*		fActivityChartRenderer;
38 			ThreadActivityData*	fRunTimeData;
39 			ThreadActivityData*	fWaitTimeData;
40 			ThreadActivityData*	fPreemptionTimeData;
41 			ThreadActivityData*	fLatencyTimeData;
42 			ColorCheckBox*		fRunTimeCheckBox;
43 			ColorCheckBox*		fWaitTimeCheckBox;
44 			ColorCheckBox*		fPreemptionTimeCheckBox;
45 			ColorCheckBox*		fLatencyTimeCheckBox;
46 };
47 
48 
49 #endif	// THREAD_ACTIVITY_PAGE_H
50