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 24 static const uint32 kMsgShowModifierKeysWindow = 'smkw'; 25 static const uint32 kMsgCloseModifierKeysWindow = 'hmkw'; 26 static const uint32 kMsgUpdateModifierKeys = 'umod'; 27 static const uint32 kMsgUpdateNormalKeys = 'ukey'; 28 29 30 class KeymapApplication : public BApplication { 31 public: 32 KeymapApplication(); 33 34 void MessageReceived(BMessage* message); 35 bool UseKeymap(BEntry* keymap); 36 37 protected: 38 void _ShowModifierKeysWindow(); 39 40 private: 41 KeymapWindow* fWindow; 42 ModifierKeysWindow* fModifierKeysWindow; 43 }; 44 45 46 #endif // KEYMAP_APPLICATION_H 47