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_BOX_TEST_H 6 #define WIDGET_LAYOUT_TEST_BOX_TEST_H 7 8 9 #include "Test.h" 10 11 12 class BBox; 13 class LabeledCheckBox; 14 class RadioButtonGroup; 15 16 17 class BoxTest : public Test { 18 public: 19 BoxTest(); 20 virtual ~BoxTest(); 21 22 static Test* CreateTest(); 23 24 virtual void ActivateTest(View* controls); 25 virtual void DectivateTest(); 26 27 virtual void MessageReceived(BMessage* message); 28 29 private: 30 void _UpdateBorderStyle(); 31 void _UpdateLabel(); 32 void _UpdateLongLabel(); 33 void _UpdateChild(); 34 35 private: 36 class BorderStyleRadioButton; 37 class LabelRadioButton; 38 39 BBox* fBox; 40 BView* fChild; 41 RadioButtonGroup* fBorderStyleRadioGroup; 42 RadioButtonGroup* fLabelRadioGroup; 43 LabeledCheckBox* fLongLabelCheckBox; 44 LabeledCheckBox* fChildCheckBox; 45 }; 46 47 48 #endif // WIDGET_LAYOUT_TEST_BOX_TEST_H 49