1 /* 2 * Copyright (c) 2007, Haiku, Inc. 3 * Distributed under the terms of the MIT license. 4 * 5 * Author: 6 * Łukasz 'Sil2100' Zemczak <sil2100@vexillium.org> 7 */ 8 #ifndef PACKAGETEXTVIEWER_H 9 #define PACKAGETEXTVIEWER_H 10 11 #include <View.h> 12 #include <TextView.h> 13 14 #include "BlockingWindow.h" 15 16 class PackageTextViewer : public BlockingWindow { 17 public: 18 PackageTextViewer(const char* text, 19 bool disclaimer = false); 20 21 virtual void MessageReceived(BMessage* message); 22 23 private: 24 void _InitView(const char *text, bool disclaimer); 25 }; 26 27 28 #endif 29 30