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
13class KeyboardLayoutView;
14class Keymap;
15class BDirectory;
16class BListView;
17class BMenu;
18
19class VirtualKeyboardWindow : public BWindow{
20public:
21							VirtualKeyboardWindow(BInputServerDevice* dev);
22		virtual void		MessageReceived(BMessage* message);
23
24private:
25		KeyboardLayoutView* fKeyboardView;
26		BListView*			fMapListView;
27		BMenu*				fFontMenu;
28		BMenu*				fLayoutMenu;
29		Keymap				fCurrentKeymap;
30		BInputServerDevice*	fDevice;
31
32private:
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