1 /* 2 * Copyright 2007, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Michael Pfeiffer 7 */ 8 9 #ifndef _PICTURE_TEST_WINDOW_H 10 #define _PICTURE_TEST_WINDOW_H 11 12 #include <Window.h> 13 14 class BListView; 15 class BStringView; 16 17 class PictureTestWindow : public BWindow { 18 typedef BWindow Inherited; 19 20 public: 21 PictureTestWindow(); 22 void MessageReceived(BMessage *msg); 23 bool QuitRequested(); 24 25 private: 26 27 enum { 28 kMsgRunTests = 'PTst', 29 kMsgRunTests1, 30 }; 31 32 void BuildGUI(); 33 void UpdateHeader(); 34 void RunTests(); 35 void RunTests1(); 36 void RunTests(color_space *colorSpaces, int32 n); 37 void RunTests(int32 testIndex, color_space *colorSpaces, int32 n); 38 void RunTests(int32 testIndex, color_space colorSpace); 39 40 BListView *fListView; 41 BStringView *fHeader; 42 43 int32 fFailedTests; 44 int32 fNumberOfTests; 45 }; 46 47 #endif 48