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