xref: /haiku/src/add-ons/translators/png/PNGView.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
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 class BTextView;
19 
20 
21 // Config panel messages
22 #define M_PNG_SET_INTERLACE	'pnsi'
23 
24 // default view size
25 #define PNG_VIEW_WIDTH		300
26 #define PNG_VIEW_HEIGHT		270
27 
28 
29 class PNGView : public BView {
30 	public:
31 		PNGView(const BRect &frame, const char *name, uint32 resizeMode,
32 			uint32 flags, TranslatorSettings *settings);
33 		~PNGView();
34 
35 		virtual void AttachedToWindow();
36 		virtual void FrameResized(float width, float height);
37 		virtual void MessageReceived(BMessage *message);
38 
39 	private:
40 		BMessage* _InterlaceMessage(int32 kind);
41 
42 	private:
43 		BPopUpMenu*			fInterlaceMenu;
44 		BTextView*			fCopyrightView;
45 		TranslatorSettings*	fSettings;
46 			// the actual settings for the translator,
47 			// shared with the translator
48 };
49 
50 #endif	// PNG_VIEW_H
51