xref: /haiku/src/tests/kits/interface/layout/widget_layout_test/tests/ControlTest.h (revision 93a78ecaa45114d68952d08c4778f073515102f2)
1 /*
2  * Copyright 2007, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef WIDGET_LAYOUT_TEST_CONTROL_TEST_H
6 #define WIDGET_LAYOUT_TEST_CONTROL_TEST_H
7 
8 
9 #include "Test.h"
10 
11 
12 class BButton;
13 class BFont;
14 class LabeledCheckBox;
15 class View;
16 
17 
18 class ControlTest : public Test {
19 public:
20 								ControlTest(const char* name);
21 	virtual						~ControlTest();
22 
23 	virtual	void				SetView(BView* view);
24 
25 	virtual	void				ActivateTest(View* controls);
26 	virtual	void				DectivateTest();
27 
28 	virtual	void				MessageReceived(BMessage* message);
29 
30 protected:
31 			enum {
32 				MSG_CHANGE_CONTROL_TEXT	= 'chct',
33 				MSG_CHANGE_CONTROL_FONT	= 'chcf'
34 			};
35 
36 protected:
37 			void				UpdateControlText();
38 			void				UpdateControlFont();
39 
40 protected:
41 			BControl*			fControl;
42 			LabeledCheckBox*	fLongTextCheckBox;
43 			LabeledCheckBox*	fBigFontCheckBox;
44 			BFont*				fDefaultFont;
45 			BFont*				fBigFont;
46 };
47 
48 
49 #endif	// WIDGET_LAYOUT_TEST_CONTROL_TEST_H
50