1 /* 2 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef CHARACTER_WINDOW_H 6 #define CHARACTER_WINDOW_H 7 8 9 #include <Messenger.h> 10 #include <Window.h> 11 12 class BFile; 13 class BListView; 14 class BMenu; 15 class BMenuItem; 16 class BSlider; 17 class BStringView; 18 class BTextControl; 19 class CharacterView; 20 class UnicodeBlockView; 21 22 23 class CharacterWindow : public BWindow { 24 public: 25 CharacterWindow(); 26 virtual ~CharacterWindow(); 27 28 virtual void MessageReceived(BMessage* message); 29 virtual bool QuitRequested(); 30 31 private: 32 status_t _OpenSettings(BFile& file, uint32 mode); 33 status_t _LoadSettings(BMessage& settings); 34 status_t _SaveSettings(); 35 36 void _SetFont(const char* family, const char* style); 37 BMenu* _CreateFontMenu(); 38 39 private: 40 BTextControl* fFilterControl; 41 UnicodeBlockView* fUnicodeBlockView; 42 CharacterView* fCharacterView; 43 BMenuItem* fSelectedFontItem; 44 BSlider* fFontSizeSlider; 45 BStringView* fCodeView; 46 }; 47 48 #endif // CHARACTER_WINDOW_H 49