xref: /haiku/src/add-ons/translators/wonderbrush/WonderBrushView.h (revision 9d6d3fcf5fe8308cd020cecf89dede440346f8c4)
1 /*
2  * Copyright 2006, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef WONDERBRUSH_VIEW_H
10 #define WONDERBRUSH_VIEW_H
11 
12 #include <View.h>
13 #include "TranslatorSettings.h"
14 
15 class BMenuField;
16 
17 class WonderBrushView : public BView {
18 public:
19 	WonderBrushView(const BRect &frame, const char *name, uint32 resize,
20 		uint32 flags, TranslatorSettings *settings);
21 		// sets up the view
22 
23 	~WonderBrushView();
24 		// releases the SGITranslator settings
25 
26 	virtual void AttachedToWindow();
27 	virtual void MessageReceived(BMessage *message);
28 
29 	virtual	void Draw(BRect area);
30 		// draws information about the SGITranslator
31 	virtual	void GetPreferredSize(float* width, float* height);
32 
33 	enum {
34 		MSG_COMPRESSION_CHANGED	= 'cmch',
35 	};
36 
37 private:
38 	TranslatorSettings *fSettings;
39 		// the actual settings for the translator,
40 		// shared with the translator
41 };
42 
43 #endif // WONDERBRUSH_VIEW_H
44