1 /* 2 * Copyright 2004-2006 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Sandor Vroemisse 7 * Jérôme Duval 8 */ 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 kMsgUpdateModifiers = 'upmd'; 27 28 29 class KeymapApplication : public BApplication { 30 public: 31 KeymapApplication(); 32 33 void MessageReceived(BMessage* message); 34 bool UseKeymap(BEntry* keymap); 35 36 protected: 37 void _ShowModifierKeysWindow(); 38 39 private: 40 KeymapWindow* fWindow; 41 ModifierKeysWindow* fModifierKeysWindow; 42 }; 43 44 #endif // KEYMAP_APPLICATION_H 45