xref: /haiku/src/tests/kits/device/stickit_BJoystick/StickItWindow.h (revision b247f935d133a42c427cad8a759a1bf2f65bc290)
1 //
2 // StickIt
3 // File: jwindow.h
4 // Joystick window definitions.
5 // Sampel code used in "Getting a Grip on BJoystick" by Eric Shepherd
6 //
7 
8 #include <Window.h>
9 #include <View.h>
10 
11 class JoystickWindow;
12 class BJoystick;
13 class BBox;
14 class BStringView;
15 class BListView;
16 
17 class StickItWindow : public BWindow {
18 	public:
19 					 	StickItWindow(BRect rect);
20 				void 	PickJoystick(BJoystick *stick);
21 		virtual bool 	QuitRequested(void);
22 		virtual	void 	MessageReceived(BMessage *message);
23 				BString AddToList(BListView *bl, const char * str);
24 
25 	private:
26 		BListView*		fListView1;
27 		BListView*		fListView2;
28 		BJoystick*		fJoystick;
29 };
30