xref: /haiku/src/add-ons/tracker/zipomatic/ZipOMaticActivity.h (revision 5d9e40fe9252c8f9c5e5e41594545bfa4419fcc7)
1 #ifndef _ACTIVITY_H_
2 #define _ACTIVITY_H_
3 
4 #include <stdlib.h>
5 
6 #include <Window.h>
7 #include <View.h>
8 #include <Box.h>
9 #include <Bitmap.h>
10 
11 class Activity : public BBox
12 {
13 	public:
14 		Activity  (BRect a_rect, const char * a_name, uint32 a_resizing_mode,
15 					uint32 a_flags);
16 		~Activity	();
17 
18 					void	Start		();
19 					void	Pause		();
20 					void	Stop		();
21 					bool	IsRunning	();
22 			virtual void 	Pulse		();
23 			virtual void 	Draw		(BRect a_draw);
24 			virtual void	FrameMoved 	(BPoint a_point);
25 			virtual void	FrameResized (float a_width, float a_height);
26 
27 	protected:
28 					void	CreateBitmap			(void);
29 					void	LightenBitmapHighColor	(rgb_color * a_color);
30 					void	DrawIntoBitmap			(void);
31 
32 		bool		m_is_running;
33 		pattern		m_pattern;
34 
35 		BBitmap	*	m_barberpole_bitmap;
36 		BView	*	m_barberpole_bitmap_view;
37 
38 	private:
39 
40 };
41 
42 #endif
43