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_TEST_H 6 #define WIDGET_LAYOUT_TEST_TEST_H 7 8 9 #include <Handler.h> 10 #include <String.h> 11 12 13 class BView; 14 class View; 15 16 17 class Test : public BHandler { 18 public: 19 Test(const char* name, const char* description, 20 BView* view = NULL); 21 virtual ~Test(); 22 23 const char* Name() const; 24 const char* Description() const; 25 26 virtual BView* GetView() const; 27 virtual void SetView(BView* view); 28 29 virtual void ActivateTest(View* controls); 30 virtual void DectivateTest(); 31 32 private: 33 BString fName; 34 BString fDescription; 35 BView* fView; 36 }; 37 38 39 #endif // WIDGET_LAYOUT_TEST_TEST_H 40