/* * Copyright 2009, Axel Dörfler, axeld@pinc-software.de. * Copyright 2011, Philippe Saint-Pierre, stpere@gmail.com. * Distributed under the terms of the MIT License. */ #ifndef CHARACTER_WINDOW_H #define CHARACTER_WINDOW_H #include #include class BFile; class BListView; class BMenu; class BMenuItem; class BSlider; class BStringView; class BTextControl; class CharacterView; class UnicodeBlockView; class CharacterWindow : public BWindow { public: CharacterWindow(); virtual ~CharacterWindow(); virtual void MessageReceived(BMessage* message); virtual bool QuitRequested(); private: status_t _OpenSettings(BFile& file, uint32 mode); status_t _LoadSettings(BMessage& settings); status_t _SaveSettings(); void _SetFont(const char* family, const char* style); BMenu* _CreateFontMenu(); void _UpdateFontMenu(BMenu* menu); void MenusBeginning(); private: BTextControl* fFilterControl; UnicodeBlockView* fUnicodeBlockView; CharacterView* fCharacterView; BMenuItem* fSelectedFontItem; BSlider* fFontSizeSlider; BStringView* fGlyphView; BStringView* fCodeView; BMenu* fFontMenu; }; #endif // CHARACTER_WINDOW_H