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 13class Chart; 14class ChartRenderer; 15class ColorCheckBox; 16 17 18class ThreadWindow::ActivityPage : public BGroupView { 19public: 20 ActivityPage(); 21 virtual ~ActivityPage(); 22 23 void SetModel(ThreadModel* model); 24 25 virtual void MessageReceived(BMessage* message); 26 virtual void AttachedToWindow(); 27 28private: 29 class ThreadActivityData; 30 31private: 32 void _UpdateChartDataEnabled(int timeType); 33 34private: 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