1 /* 2 * Copyright 2001-2012, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Mark Hogben 7 * DarkWyrm <bpmagic@columbus.rr.com> 8 * Axel Dörfler, axeld@pinc-software.de 9 * Philippe Saint-Pierre, stpere@gmail.com 10 * Stephan Aßmus <superstippi@gmx.de> 11 */ 12 #ifndef FONT_VIEW_H 13 #define FONT_VIEW_H 14 15 16 #include <View.h> 17 18 19 class BMessageRunner; 20 class FontSelectionView; 21 22 23 class FontView : public BView { 24 public: 25 FontView(const char* name); 26 27 virtual void AttachedToWindow(); 28 virtual void DetachedFromWindow(); 29 30 virtual void MessageReceived(BMessage* message); 31 32 void SetDefaults(); 33 void Revert(); 34 void UpdateFonts(); 35 36 bool IsDefaultable(); 37 bool IsRevertable(); 38 39 40 41 private: 42 FontSelectionView* fPlainView; 43 FontSelectionView* fBoldView; 44 FontSelectionView* fFixedView; 45 FontSelectionView* fMenuView; 46 47 BMessageRunner* fRunner; 48 }; 49 50 51 #endif /* FONT_VIEW_H */ 52