xref: /haiku/src/apps/firstbootprompt/BootPromptWindow.h (revision 220d04022750f40f8bac8f01fa551211e28d04f2)
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				_PopulateLanguages();
31 			void				_PopulateKeymaps();
32 			void				_ActivateKeymap(const BMessage* message) const;
33 			status_t			_GetCurrentKeymapRef(entry_ref& ref) const;
34 			BMenuItem*			_KeymapItemForLanguage(
35 									BLanguage& language) const;
36 
37 private:
38 			BTextView*			fInfoTextView;
39 			BStringView*		fLanguagesLabelView;
40 			BListView*			fLanguagesListView;
41 			BMenuField*			fKeymapsMenuField;
42 			BMenuItem*			fDefaultKeymapItem;
43 			BButton*			fDesktopButton;
44 			BButton*			fInstallerButton;
45 };
46 
47 
48 #endif // BOOT_PROMPT_WINDOW_H
49