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