1/*
2 * Copyright 2004-2014 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		J��r��me Duval
7 *		John Scipione, jscipione@gmail.com
8 *		Sandor Vroemisse
9 */
10#ifndef KEYMAP_APPLICATION_H
11#define KEYMAP_APPLICATION_H
12
13
14#include "KeymapWindow.h"
15
16#include <Application.h>
17#include <Catalog.h>
18#include <Entry.h>
19#include <Locale.h>
20
21#include "ModifierKeysWindow.h"
22
23
24static const uint32 kMsgShowModifierKeysWindow = 'smkw';
25static const uint32 kMsgCloseModifierKeysWindow = 'hmkw';
26static const uint32 kMsgUpdateModifierKeys = 'umod';
27static const uint32 kMsgUpdateNormalKeys = 'ukey';
28
29
30class KeymapApplication : public BApplication {
31public:
32		KeymapApplication();
33
34		void					MessageReceived(BMessage* message);
35		bool					UseKeymap(BEntry* keymap);
36
37protected:
38		void					_ShowModifierKeysWindow();
39
40private:
41		KeymapWindow*			fWindow;
42		ModifierKeysWindow*		fModifierKeysWindow;
43};
44
45
46#endif	// KEYMAP_APPLICATION_H
47