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 #include "ModifierKeysWindow.h" 16 17 #include <Application.h> 18 #include <Catalog.h> 19 #include <Entry.h> 20 #include <Locale.h> 21 22 23 static const uint32 kMsgShowModifierKeysWindow = 'smkw'; 24 static const uint32 kMsgCloseModifierKeysWindow = 'hmkw'; 25 static const uint32 kMsgUpdateModifiers = 'upmd'; 26 27 28 class KeymapApplication : public BApplication { 29 public: 30 KeymapApplication(); 31 32 void MessageReceived(BMessage* message); 33 bool UseKeymap(BEntry* keymap); 34 35 protected: 36 void _ShowModifierKeysWindow(); 37 38 private: 39 KeymapWindow* fWindow; 40 ModifierKeysWindow* fModifierKeysWindow; 41 }; 42 43 #endif // KEYMAP_APPLICATION_H 44