1 /* 2 * Copyright 2010, Stephan Aßmus <superstippi@gmx.de>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef BOOT_PROMPT_WINDOW_H 6 #define BOOT_PROMPT_WINDOW_H 7 8 9 #include <Window.h> 10 11 12 class BButton; 13 class BLanguage; 14 class BListView; 15 class BMenuItem; 16 class BMenuField; 17 class BStringView; 18 class BTextView; 19 20 21 class BootPromptWindow : public BWindow { 22 public: 23 BootPromptWindow(); 24 25 virtual void MessageReceived(BMessage* message); 26 27 private: 28 void _InitCatalog(bool saveSettings); 29 void _UpdateStrings(); 30 void _UpdateKeymapsMenu(); 31 void _PopulateLanguages(); 32 void _PopulateKeymaps(); 33 void _ActivateKeymap(const BMessage* message) const; 34 status_t _GetCurrentKeymapRef(entry_ref& ref) const; 35 BMenuItem* _KeymapItemForLanguage( 36 BLanguage& language) const; 37 38 private: 39 BTextView* fInfoTextView; 40 BStringView* fLanguagesLabelView; 41 BStringView* fKeymapsMenuLabel; 42 BListView* fLanguagesListView; 43 BMenuField* fKeymapsMenuField; 44 BMenuItem* fDefaultKeymapItem; 45 BButton* fDesktopButton; 46 BButton* fInstallerButton; 47 }; 48 49 50 #endif // BOOT_PROMPT_WINDOW_H 51