182afdb09SMichael Pfeiffer /* 282afdb09SMichael Pfeiffer * Copyright 2007, Haiku. All rights reserved. 382afdb09SMichael Pfeiffer * Distributed under the terms of the MIT License. 482afdb09SMichael Pfeiffer * 582afdb09SMichael Pfeiffer * Authors: 682afdb09SMichael Pfeiffer * Michael Pfeiffer 782afdb09SMichael Pfeiffer */ 882afdb09SMichael Pfeiffer 982afdb09SMichael Pfeiffer #ifndef _PICTURE_TEST_WINDOW_H 1082afdb09SMichael Pfeiffer #define _PICTURE_TEST_WINDOW_H 1182afdb09SMichael Pfeiffer 1282afdb09SMichael Pfeiffer #include <Window.h> 1382afdb09SMichael Pfeiffer 14*b0e2e12fSStephan Aßmus class BListView; 15*b0e2e12fSStephan Aßmus class BStringView; 16*b0e2e12fSStephan Aßmus 17*b0e2e12fSStephan Aßmus class PictureTestWindow : public BWindow { 1882afdb09SMichael Pfeiffer typedef BWindow Inherited; 1982afdb09SMichael Pfeiffer 2082afdb09SMichael Pfeiffer public: 2182afdb09SMichael Pfeiffer PictureTestWindow(); 2282afdb09SMichael Pfeiffer void MessageReceived(BMessage *msg); 2382afdb09SMichael Pfeiffer bool QuitRequested(); 2482afdb09SMichael Pfeiffer 2582afdb09SMichael Pfeiffer private: 2682afdb09SMichael Pfeiffer 2782afdb09SMichael Pfeiffer enum { 2882afdb09SMichael Pfeiffer kMsgRunTests = 'PTst', 2954730332SMichael Pfeiffer kMsgRunTests1, 3082afdb09SMichael Pfeiffer }; 3182afdb09SMichael Pfeiffer 3282afdb09SMichael Pfeiffer void BuildGUI(); 33acf1c6adSMichael Pfeiffer void UpdateHeader(); 3482afdb09SMichael Pfeiffer void RunTests(); 3554730332SMichael Pfeiffer void RunTests1(); 3654730332SMichael Pfeiffer void RunTests(color_space *colorSpaces, int32 n); 3754730332SMichael Pfeiffer void RunTests(int32 testIndex, color_space *colorSpaces, int32 n); 38acf1c6adSMichael Pfeiffer void RunTests(int32 testIndex, color_space colorSpace); 3982afdb09SMichael Pfeiffer 4082afdb09SMichael Pfeiffer BListView *fListView; 41acf1c6adSMichael Pfeiffer BStringView *fHeader; 4282afdb09SMichael Pfeiffer 43acf1c6adSMichael Pfeiffer int32 fFailedTests; 44acf1c6adSMichael Pfeiffer int32 fNumberOfTests; 4582afdb09SMichael Pfeiffer }; 4682afdb09SMichael Pfeiffer 4782afdb09SMichael Pfeiffer #endif 48