166dee31aSJérôme Duval /* 258aaae82SJohn Scipione * Copyright 2003-2013 Haiku, Inc. All Rights Reserved. 366dee31aSJérôme Duval * Distributed under the terms of the MIT License. 412e1daa3SJérôme Duval * 512e1daa3SJérôme Duval * Authors: 612e1daa3SJérôme Duval * Michael Phipps 77cae4a1eSAxel Dörfler * Jérôme Duval, jerome.duval@free.fr 866dee31aSJérôme Duval */ 97cae4a1eSAxel Dörfler #ifndef PREVIEW_VIEW_H 107cae4a1eSAxel Dörfler #define PREVIEW_VIEW_H 1166dee31aSJérôme Duval 1266dee31aSJérôme Duval 13ada2a0a1SJohn Scipione #include <View.h> 14a10cf76eSAxel Dörfler 157cae4a1eSAxel Dörfler 16*4ddea1f8SAdrien Destugues class BTextView; 1758b592b3SJohn Scipione 187cae4a1eSAxel Dörfler class PreviewView : public BView { 19a10cf76eSAxel Dörfler public: 2023ca081aSJohn Scipione PreviewView(const char* name); 217cae4a1eSAxel Dörfler virtual ~PreviewView(); 227cae4a1eSAxel Dörfler 23ada2a0a1SJohn Scipione virtual void Draw(BRect updateRect); 247cae4a1eSAxel Dörfler 257cae4a1eSAxel Dörfler BView* AddPreview(); 267cae4a1eSAxel Dörfler BView* RemovePreview(); 27be888b3aSJohn Scipione BView* SaverView(); 287cae4a1eSAxel Dörfler 2958b592b3SJohn Scipione void ShowNoPreview() const; 3058b592b3SJohn Scipione void HideNoPreview() const; 3158b592b3SJohn Scipione 32a10cf76eSAxel Dörfler private: 337cae4a1eSAxel Dörfler BView* fSaverView; 34*4ddea1f8SAdrien Destugues BTextView* fNoPreview; 357cae4a1eSAxel Dörfler }; 36a10cf76eSAxel Dörfler 3723ca081aSJohn Scipione 387cae4a1eSAxel Dörfler #endif // PREVIEW_VIEW_H 39