xref: /haiku/src/preferences/joysticks/MessageWin.h (revision 44d1fa37cd08d2a37420ed999a7b8a39ff144bac)
1*44d1fa37SRyan Leavengood /*
2*44d1fa37SRyan Leavengood  * Copyright 2007 Haiku.
3*44d1fa37SRyan Leavengood  * Distributed under the terms of the MIT License.
4*44d1fa37SRyan Leavengood  *
5*44d1fa37SRyan Leavengood  * Authors:
6*44d1fa37SRyan Leavengood  *		Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
7*44d1fa37SRyan Leavengood  *		Ryan Leavengood, leavengood@gmail.com
8*44d1fa37SRyan Leavengood  */
9*44d1fa37SRyan Leavengood #ifndef _MESSAGE_WIN_H
10*44d1fa37SRyan Leavengood #define _MESSAGE_WIN_H
11*44d1fa37SRyan Leavengood 
12*44d1fa37SRyan Leavengood 
13*44d1fa37SRyan Leavengood #include <Window.h>
14*44d1fa37SRyan Leavengood 
15*44d1fa37SRyan Leavengood class BBox;
16*44d1fa37SRyan Leavengood class BButton;
17*44d1fa37SRyan Leavengood class BCheckBox;
18*44d1fa37SRyan Leavengood class BStringView;
19*44d1fa37SRyan Leavengood class BView;
20*44d1fa37SRyan Leavengood class BTextView;
21*44d1fa37SRyan Leavengood 
22*44d1fa37SRyan Leavengood 
23*44d1fa37SRyan Leavengood class MessageWin : public BWindow
24*44d1fa37SRyan Leavengood {
25*44d1fa37SRyan Leavengood 	public:
26*44d1fa37SRyan Leavengood 		MessageWin(BRect parent_frame, const char *title,
27*44d1fa37SRyan Leavengood 			window_look look,
28*44d1fa37SRyan Leavengood 			window_feel feel,
29*44d1fa37SRyan Leavengood 			uint32 flags,
30*44d1fa37SRyan Leavengood 			uint32 workspace = B_CURRENT_WORKSPACE);
31*44d1fa37SRyan Leavengood 
32*44d1fa37SRyan Leavengood 		void			SetText(const char* str);
33*44d1fa37SRyan Leavengood 		virtual	void	MessageReceived(BMessage *message);
34*44d1fa37SRyan Leavengood 		virtual	bool	QuitRequested();
35*44d1fa37SRyan Leavengood 
36*44d1fa37SRyan Leavengood 	protected:
37*44d1fa37SRyan Leavengood 		BBox*			fBox;
38*44d1fa37SRyan Leavengood 		BTextView*	 	fText;
39*44d1fa37SRyan Leavengood };
40*44d1fa37SRyan Leavengood 
41*44d1fa37SRyan Leavengood #endif	/* _MESSAGE_WIN_H */
42*44d1fa37SRyan Leavengood 
43