xref: /haiku/src/tests/kits/interface/layout/widget_layout_test/tests/TextControlTest.h (revision 6ab71707203eebaedfb0ec23812b171a67655ab1)
1 /*
2  * Copyright 2008, Stephan Aßmus <superstippi@gmx.de>.
3  * Copyright 2007, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
4  * All rights reserved. Distributed under the terms of the MIT License.
5  */
6 #ifndef WIDGET_LAYOUT_TEST_TEXT_CONTROL_TEST_H
7 #define WIDGET_LAYOUT_TEST_TEXT_CONTROL_TEST_H
8 
9 
10 #include "ControlTest.h"
11 
12 
13 class BFont;
14 class BTextControl;
15 class LabeledCheckBox;
16 
17 
18 class TextControlTest : public ControlTest {
19 public:
20 								TextControlTest();
21 	virtual						~TextControlTest();
22 
23 	static	Test*				CreateTest();
24 
25 	virtual	void				ActivateTest(View* controls);
26 	virtual	void				DectivateTest();
27 
28 	virtual	void				MessageReceived(BMessage* message);
29 
30 private:
31 			void				_UpdateLabelText();
32 			void				_UpdateLabelFont();
33 			void				_UpdateInvalid();
34 
35 private:
36 			BTextControl*		fTextControl;
37 			LabeledCheckBox*	fLongTextCheckBox;
38 			LabeledCheckBox*	fBigFontCheckBox;
39 			LabeledCheckBox*	fInvalidCheckBox;
40 			BFont*				fDefaultFont;
41 			BFont*				fBigFont;
42 };
43 
44 
45 #endif	// WIDGET_LAYOUT_TEST_TEXT_CONTROL_TEST_H
46