1 /* 2 * Copyright 2003-2013 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Michael Phipps 7 * Jérôme Duval, jerome.duval@free.fr 8 */ 9 #ifndef PREVIEW_VIEW_H 10 #define PREVIEW_VIEW_H 11 12 13 #include <View.h> 14 #include <Box.h> 15 #include <ScreenSaverRunner.h> 16 17 18 class PreviewView : public BView { 19 public: 20 PreviewView(const char* name); 21 virtual ~PreviewView(); 22 23 virtual void Draw(BRect update); 24 25 BView* AddPreview(); 26 BView* RemovePreview(); 27 BView* SaverView(); 28 29 private: 30 BView* fSaverView; 31 }; 32 33 34 #endif // PREVIEW_VIEW_H 35