xref: /haiku/src/add-ons/input_server/devices/virtualkeyboard/VirtualKeyboardWindow.h (revision 83b732c7328f1c4601e1a64ce234b93615c0ddc8)
1 /*
2  * Copyright 2014 Freeman Lou <freemanlou2430@yahoo.com>
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef VIRTUAL_KEYBOARD_WINDOW_H
6 #define VIRTUAL_KEYBOARD_WINDOW_H
7 
8 #include <InputServerDevice.h>
9 #include <Window.h>
10 
11 #include "Keymap.h"
12 
13 class KeyboardLayoutView;
14 class Keymap;
15 class BDirectory;
16 class BListView;
17 class BMenu;
18 
19 class VirtualKeyboardWindow : public BWindow{
20 public:
21 							VirtualKeyboardWindow(BInputServerDevice* dev);
22 		virtual void		MessageReceived(BMessage* message);
23 
24 private:
25 		KeyboardLayoutView* fKeyboardView;
26 		BListView*			fMapListView;
27 		BMenu*				fFontMenu;
28 		BMenu*				fLayoutMenu;
29 		Keymap				fCurrentKeymap;
30 		BInputServerDevice*	fDevice;
31 
32 private:
33 				void		_LoadLayouts(BMenu* menu);
34 				void		_LoadLayoutMenu(BMenu* menu, BDirectory directory);
35 				void		_LoadMaps();
36 				void		_LoadFonts();
37 };
38 
39 #endif // VIRTUAL_KEYBOARD_WINDOW_H
40