xref: /haiku/src/preferences/joysticks/CalibWin.h (revision 68ea01249e1e2088933cb12f9c28d4e5c5d1c9ef)
1 /*
2  * Copyright 2007 Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
7  *		Ryan Leavengood, leavengood@gmail.com
8  */
9 #ifndef _CALIB_WIN_H
10 #define _CALIB_WIN_H
11 
12 
13 #include <Window.h>
14 
15 class BView;
16 class BCheckBox;
17 class BStringView;
18 class BButton;
19 class BBox;
20 
21 
22 /*
23 	All this code is here is just to not have an empty view at
24 	Clicking the Calibrate function.
25 
26 	All controls in this view needs to be created and placed dynamically according
27 	with the Joystick descriptors
28 */
29 
30 
31 class CalibWin : public BWindow
32 {
33 	public:
34 		CalibWin(BRect frame, const char *title,
35 			window_look look,
36 			window_feel feel,
37 			uint32 flags,
38 			uint32 workspace = B_CURRENT_WORKSPACE);
39 
40 		virtual	void	MessageReceived(BMessage *message);
41 		virtual	bool	QuitRequested();
42 
43 	protected:
44 		BStringView*	fStringView3;
45 		BStringView*	fStringView4;
46 		BStringView*	fStringView5;
47 		BStringView*	fStringView6;
48 		BStringView*	fStringView7;
49 		BStringView*	fStringView8;
50 		BStringView*	fStringView9;
51 
52 		BButton*		fButton3;
53 		BButton*		fButton4;
54 
55 		BButton*		fButton5;
56 		BButton*		fButton6;
57 		BButton*		fButton7;
58 		BButton*		fButton8;
59 		BButton*		fButton9;
60 		BButton*		fButton10;
61 		BButton*		fButton11;
62 		BButton*		fButton12;
63 
64 		BBox*			fBox;
65 		BView*			fView;
66 };
67 
68 
69 #endif	/* _CALIB_WIN_H */
70 
71