166dee31aSJérôme Duval /* 2*12e1daa3SJérôme Duval * Copyright 2003-2005, Haiku. 366dee31aSJérôme Duval * Distributed under the terms of the MIT License. 4*12e1daa3SJérôme Duval * 5*12e1daa3SJérôme Duval * Authors: 6*12e1daa3SJérôme Duval * Michael Phipps 7*12e1daa3SJérôme Duval * J�r�me Duval, jerome.duval@free.fr 866dee31aSJérôme Duval */ 966dee31aSJérôme Duval 1066dee31aSJérôme Duval #ifndef PREVIEWVIEW_H 1166dee31aSJérôme Duval #define PREVIEWVIEW_H 1266dee31aSJérôme Duval 13a10cf76eSAxel Dörfler #include <View.h> 14a10cf76eSAxel Dörfler #include <Box.h> 15a10cf76eSAxel Dörfler #include <ScreenSaverThread.h> 16a10cf76eSAxel Dörfler #include <ScreenSaverPrefs.h> 17a10cf76eSAxel Dörfler 18a10cf76eSAxel Dörfler class BScreenSaver; 19a10cf76eSAxel Dörfler 20a10cf76eSAxel Dörfler class PreviewView : public BView 21a10cf76eSAxel Dörfler { 22a10cf76eSAxel Dörfler public: 23a10cf76eSAxel Dörfler PreviewView(BRect frame, const char *name,ScreenSaverPrefs *prefp); 24a10cf76eSAxel Dörfler ~PreviewView(); 25a10cf76eSAxel Dörfler void Draw(BRect update); 26a10cf76eSAxel Dörfler void SetScreenSaver(BString name); 2766dee31aSJérôme Duval BScreenSaver *ScreenSaver() {return fSaver;} 28a10cf76eSAxel Dörfler private: 29a10cf76eSAxel Dörfler BScreenSaver* fSaver; 30a10cf76eSAxel Dörfler BView *fConfigView; 31a10cf76eSAxel Dörfler ScreenSaverThread *fSst; 32a10cf76eSAxel Dörfler thread_id fThreadID; 33a10cf76eSAxel Dörfler ScreenSaverPrefs *fPrefPtr; 34a10cf76eSAxel Dörfler 35a10cf76eSAxel Dörfler }; // end class PreviewView 36a10cf76eSAxel Dörfler 3766dee31aSJérôme Duval #endif // PREVIEWVIEW_H 38