xref: /haiku/src/apps/bootmanager/DrivesPage.h (revision 820dca4df6c7bf955c46e8f6521b9408f50b2900)
1 /*
2  * Copyright 2011, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef DRIVES_PAGE_H
6 #define DRIVES_PAGE_H
7 
8 
9 #include "BootMenu.h"
10 #include "WizardPageView.h"
11 
12 
13 class BListView;
14 class BTextView;
15 class BScrollView;
16 class DriveItem;
17 class WizardView;
18 
19 
20 class DrivesPage : public WizardPageView {
21 public:
22 								DrivesPage(WizardView* wizardView,
23 									const BootMenuList& menus,
24 									BMessage* settings, const char* name);
25 	virtual						~DrivesPage();
26 
27 	virtual	void				PageCompleted();
28 
29 protected:
30 			void				AttachedToWindow();
31 			void				MessageReceived(BMessage* message);
32 
33 private:
34 			void				_FillDrivesView(const BootMenuList& menus);
35 			DriveItem*			_SelectedDriveItem();
36 			void				_UpdateWizardButtons(DriveItem* item);
37 
38 private:
39 			WizardView*			fWizardView;
40 			BListView*			fDrivesView;
41 			bool				fHasInstallableItems;
42 };
43 
44 
45 #endif	// DRIVES_PAGE_H
46