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 1482afdb09SMichael Pfeiffer class PictureTestWindow : public BWindow 1582afdb09SMichael Pfeiffer { 1682afdb09SMichael Pfeiffer typedef BWindow Inherited; 1782afdb09SMichael Pfeiffer 1882afdb09SMichael Pfeiffer public: 1982afdb09SMichael Pfeiffer PictureTestWindow(); 2082afdb09SMichael Pfeiffer void MessageReceived(BMessage *msg); 2182afdb09SMichael Pfeiffer bool QuitRequested(); 2282afdb09SMichael Pfeiffer 2382afdb09SMichael Pfeiffer private: 2482afdb09SMichael Pfeiffer 2582afdb09SMichael Pfeiffer enum { 2682afdb09SMichael Pfeiffer kMsgRunTests = 'PTst', 2782afdb09SMichael Pfeiffer kMsgWriteImages, 2882afdb09SMichael Pfeiffer }; 2982afdb09SMichael Pfeiffer 3082afdb09SMichael Pfeiffer void BuildGUI(); 31*acf1c6adSMichael Pfeiffer void UpdateHeader(); 3282afdb09SMichael Pfeiffer void RunTests(); 33*acf1c6adSMichael Pfeiffer void RunTests(int32 testIndex); 34*acf1c6adSMichael Pfeiffer void RunTests(int32 testIndex, color_space colorSpace); 3582afdb09SMichael Pfeiffer 3682afdb09SMichael Pfeiffer BListView *fListView; 37*acf1c6adSMichael Pfeiffer BStringView *fHeader; 3882afdb09SMichael Pfeiffer 39*acf1c6adSMichael Pfeiffer int32 fFailedTests; 40*acf1c6adSMichael Pfeiffer int32 fNumberOfTests; 4182afdb09SMichael Pfeiffer }; 4282afdb09SMichael Pfeiffer 4382afdb09SMichael Pfeiffer #endif 44