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_VIEW_TEST_H 7 #define WIDGET_LAYOUT_TEST_TEXT_VIEW_TEST_H 8 9 10 #include "Test.h" 11 12 13 class BTextView; 14 class LabeledCheckBox; 15 16 17 class TextViewTest : public Test { 18 public: 19 TextViewTest(); 20 21 static Test* CreateTest(); 22 23 virtual void ActivateTest(View* controls); 24 virtual void DectivateTest(); 25 26 virtual void MessageReceived(BMessage* message); 27 28 29 private: 30 void _UpdateInsets(); 31 void _UpdateText(); 32 void _UpdateFont(); 33 34 private: 35 BTextView* fTextView; 36 LabeledCheckBox* fUseInsetsCheckBox; 37 LabeledCheckBox* fTextCheckBox; 38 LabeledCheckBox* fFontCheckBox; 39 }; 40 41 42 #endif // WIDGET_LAYOUT_TEST_TEXT_VIEW_TEST_H 43