xref: /haiku/src/apps/firstbootprompt/BootPromptWindow.h (revision 04d1d2da0b27294f0f1e623071df310a0820d4b6)
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 			BListView*			fLanguagesListView;
42 			BMenuField*			fKeymapsMenuField;
43 			BMenuItem*			fDefaultKeymapItem;
44 			BButton*			fDesktopButton;
45 			BButton*			fInstallerButton;
46 };
47 
48 
49 #endif // BOOT_PROMPT_WINDOW_H
50