libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / charactermap / CharacterWindow.h
blob33f03abbadb946145d910a81bf231bed9aef9a0f
1 /*
2 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de.
3 * Copyright 2011, Philippe Saint-Pierre, stpere@gmail.com.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef CHARACTER_WINDOW_H
7 #define CHARACTER_WINDOW_H
10 #include <Messenger.h>
11 #include <Window.h>
13 class BFile;
14 class BListView;
15 class BMenu;
16 class BMenuItem;
17 class BSlider;
18 class BStringView;
19 class BTextControl;
20 class CharacterView;
21 class UnicodeBlockView;
24 class CharacterWindow : public BWindow {
25 public:
26 CharacterWindow();
27 virtual ~CharacterWindow();
29 virtual void MessageReceived(BMessage* message);
30 virtual bool QuitRequested();
32 private:
33 status_t _OpenSettings(BFile& file, uint32 mode);
34 status_t _LoadSettings(BMessage& settings);
35 status_t _SaveSettings();
37 void _SetFont(const char* family, const char* style);
38 BMenu* _CreateFontMenu();
39 void _UpdateFontMenu(BMenu* menu);
40 void MenusBeginning();
41 private:
42 BTextControl* fFilterControl;
43 UnicodeBlockView* fUnicodeBlockView;
44 CharacterView* fCharacterView;
45 BMenuItem* fSelectedFontItem;
46 BSlider* fFontSizeSlider;
47 BStringView* fGlyphView;
48 BStringView* fCodeView;
49 BMenu* fFontMenu;
52 #endif // CHARACTER_WINDOW_H