1*66dee31aSJérôme Duval /* 2*66dee31aSJérôme Duval * Copyright 2003, Michael Phipps. All rights reserved. 3*66dee31aSJérôme Duval * Distributed under the terms of the MIT License. 4*66dee31aSJérôme Duval */ 5*66dee31aSJérôme Duval 6*66dee31aSJérôme Duval #ifndef PREVIEWVIEW_H 7*66dee31aSJérôme Duval #define PREVIEWVIEW_H 8*66dee31aSJérôme Duval 9a10cf76eSAxel Dörfler #include <View.h> 10a10cf76eSAxel Dörfler #include <Box.h> 11a10cf76eSAxel Dörfler #include <ScreenSaverThread.h> 12a10cf76eSAxel Dörfler #include <ScreenSaverPrefs.h> 13a10cf76eSAxel Dörfler 14a10cf76eSAxel Dörfler class BScreenSaver; 15a10cf76eSAxel Dörfler 16a10cf76eSAxel Dörfler class PreviewView : public BView 17a10cf76eSAxel Dörfler { 18a10cf76eSAxel Dörfler public: 19a10cf76eSAxel Dörfler PreviewView(BRect frame, const char *name,ScreenSaverPrefs *prefp); 20a10cf76eSAxel Dörfler ~PreviewView(); 21a10cf76eSAxel Dörfler void Draw(BRect update); 22a10cf76eSAxel Dörfler void SetScreenSaver(BString name); 23*66dee31aSJérôme Duval BScreenSaver *ScreenSaver() {return fSaver;} 24a10cf76eSAxel Dörfler private: 25a10cf76eSAxel Dörfler BScreenSaver* fSaver; 26a10cf76eSAxel Dörfler BView *fConfigView; 27a10cf76eSAxel Dörfler ScreenSaverThread *fSst; 28a10cf76eSAxel Dörfler thread_id fThreadID; 29a10cf76eSAxel Dörfler ScreenSaverPrefs *fPrefPtr; 30a10cf76eSAxel Dörfler 31a10cf76eSAxel Dörfler }; // end class PreviewView 32a10cf76eSAxel Dörfler 33*66dee31aSJérôme Duval #endif // PREVIEWVIEW_H 34