1 /* 2 * Copyright (c) 2003-4 Kian Duffy <myob@users.sourceforge.net> 3 * Copyright (c) 1998,99 Kazuho Okui and Takashi Murai. 4 * 5 * Distributed unter 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 TermWindow; 18 class TTextControl; 19 20 21 class AppearancePrefView : public PrefView { 22 public: 23 AppearancePrefView(BRect frame, const char *name, 24 TermWindow *window); 25 26 virtual void Revert(); 27 virtual void MessageReceived(BMessage *message); 28 virtual void AttachedToWindow(); 29 30 virtual void GetPreferredSize(float *_width, float *_height); 31 32 private: 33 BMenu* _MakeFontMenu(uint32 command, const char *defaultFont); 34 BMenu* _MakeSizeMenu(uint32 command, uint8 defaultSize); 35 36 BMenuField *fFont; 37 BMenuField *fFontSize; 38 39 BMenuField *fColorField; 40 BColorControl *fColorControl; 41 42 TermWindow *fTermWindow; 43 }; 44 45 #endif // APPEARANCE_PREF_VIEW_H 46