BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / translators / png / PNGView.h
blob3eecec53f1ed69401dd21a573dc97cda16bbaf47
1 /*
2 * Copyright 2003-2006, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Michael Wilber
7 * Axel Dörfler, axeld@pinc-software.de
8 */
9 #ifndef PNG_VIEW_H
10 #define PNG_VIEW_H
13 #include "TranslatorSettings.h"
15 #include <View.h>
17 class BPopUpMenu;
18 class BTextView;
21 // Config panel messages
22 #define M_PNG_SET_INTERLACE 'pnsi'
24 // default view size
25 #define PNG_VIEW_WIDTH 300
26 #define PNG_VIEW_HEIGHT 270
29 class PNGView : public BView {
30 public:
31 PNGView(const BRect &frame, const char *name, uint32 resizeMode,
32 uint32 flags, TranslatorSettings *settings);
33 ~PNGView();
35 virtual void AttachedToWindow();
36 virtual void FrameResized(float width, float height);
37 virtual void MessageReceived(BMessage *message);
39 private:
40 BMessage* _InterlaceMessage(int32 kind);
42 private:
43 BPopUpMenu* fInterlaceMenu;
44 BTextView* fCopyrightView;
45 TranslatorSettings* fSettings;
46 // the actual settings for the translator,
47 // shared with the translator
50 #endif // PNG_VIEW_H