1 /* 2 * Copyright 2003-2006, Haiku, Inc. 3 * Distributed under the terms of the MIT license. 4 * 5 * Authors: 6 * Michael Wilber 7 * Axel Dörfler, axeld@pinc-software.de 8 */ 9 #ifndef PNG_VIEW_H 10 #define PNG_VIEW_H 11 12 13 #include "TranslatorSettings.h" 14 15 #include <View.h> 16 17 class BPopUpMenu; 18 19 20 // Config panel messages 21 #define M_PNG_SET_INTERLACE 'pnsi' 22 23 // default view size 24 #define PNG_VIEW_WIDTH 300 25 #define PNG_VIEW_HEIGHT 270 26 27 28 class PNGView : public BView { 29 public: 30 PNGView(const BRect &frame, const char *name, uint32 resizeMode, 31 uint32 flags, TranslatorSettings *settings); 32 ~PNGView(); 33 34 virtual void AttachedToWindow(); 35 virtual void MessageReceived(BMessage *message); 36 37 private: 38 BMessage* _InterlaceMessage(int32 kind); 39 40 private: 41 BPopUpMenu* fInterlaceMenu; 42 TranslatorSettings* fSettings; 43 // the actual settings for the translator, 44 // shared with the translator 45 }; 46 47 #endif // PNG_VIEW_H 48