1 /* 2 * Copyright 1999-2010, Be Incorporated. All Rights Reserved. 3 * This file may be used under the terms of the Be Sample Code License. 4 * 5 * OverlayImage is based on the code presented in this article: 6 * http://www.haiku-os.org/documents/dev/replishow_a_replicable_image_viewer 7 * 8 * Authors: 9 * Seth Flexman 10 * Hartmuth Reh 11 * Humdinger <humdingerb@gmail.com> 12 */ 13 14 #ifndef OVERLAY_VIEW_H 15 #define OVERLAY_VIEW_H 16 17 #include <stdio.h> 18 19 #include <Bitmap.h> 20 #include <Dragger.h> 21 #include <Entry.h> 22 #include <Path.h> 23 #include <TranslationUtils.h> 24 #include <View.h> 25 #include <Window.h> 26 27 extern const char *kAppSignature; 28 29 30 class _EXPORT OverlayView; 31 32 class OverlayView : public BView { 33 public: 34 OverlayView(BRect frame); 35 OverlayView(BMessage *data); 36 ~OverlayView(); 37 virtual void Draw(BRect); 38 virtual void MessageReceived(BMessage *msg); 39 static BArchivable *Instantiate(BMessage *archive); 40 virtual status_t Archive(BMessage *data, bool deep = true) const; 41 void OverlayAboutRequested(); 42 43 private: 44 BBitmap *fBitmap; 45 bool fReplicated; 46 BTextView *fText; 47 }; 48 49 #endif // OVERLAY_VIEW_H 50