xref: /haiku/src/apps/terminal/AppearPrefView.h (revision 2600324b57fa31cdea1627d584d314f2a579c4a8)
1 /*
2  * Copyright 2001-2007, Haiku, Inc.
3  * Copyright 2003-2004 Kian Duffy, myob@users.sourceforge.net
4  * Parts Copyright 1998-1999 Kazuho Okui and Takashi Murai.
5  * All rights reserved. Distributed under the terms of the MIT license.
6  */
7 #ifndef APPEARANCE_PREF_VIEW_H
8 #define APPEARANCE_PREF_VIEW_H
9 
10 
11 #include "PrefView.h"
12 
13 class BColorControl;
14 class BMenu;
15 class BMenuField;
16 
17 class TTextControl;
18 
19 
20 class AppearancePrefView : public PrefView {
21 	public:
22 		AppearancePrefView(BRect frame, const char *name,
23 			BMessenger messenger);
24 
25 		virtual	void	Revert();
26 		virtual void	MessageReceived(BMessage *message);
27 		virtual void	AttachedToWindow();
28 
29 		virtual void	GetPreferredSize(float *_width, float *_height);
30 
31 	private:
32 		BMenu*			_MakeFontMenu(uint32 command, const char *defaultFont);
33 		BMenu*			_MakeSizeMenu(uint32 command, uint8 defaultSize);
34 
35 		BMenuField		*fFont;
36 		BMenuField		*fFontSize;
37 
38 		BMenuField		*fColorField;
39 		BColorControl	*fColorControl;
40 
41 		BMessenger fAppearancePrefViewMessenger;
42 };
43 
44 #endif	// APPEARANCE_PREF_VIEW_H
45