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 <Window.h> 12 #include <View.h> 13 #include <TextView.h> 14 15 16 class PackageTextViewer : public BWindow { 17 public: 18 PackageTextViewer(const char *text, bool disclaimer = false); 19 ~PackageTextViewer(); 20 21 int32 Go(); 22 23 void MessageReceived(BMessage *msg); 24 25 private: 26 void _InitView(const char *text, bool disclaimer); 27 28 BView *fBackground; 29 BTextView *fText; 30 31 sem_id fSemaphore; 32 int32 fValue; 33 }; 34 35 36 #endif 37 38