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 13class BListView; 14class BTextView; 15class BScrollView; 16class DriveItem; 17class WizardView; 18 19 20class DrivesPage : public WizardPageView { 21public: 22 DrivesPage(WizardView* wizardView, 23 const BootMenuList& menus, 24 BMessage* settings, const char* name); 25 virtual ~DrivesPage(); 26 27 virtual void PageCompleted(); 28 29protected: 30 void AttachedToWindow(); 31 void MessageReceived(BMessage* message); 32 33private: 34 void _FillDrivesView(const BootMenuList& menus); 35 DriveItem* _SelectedDriveItem(); 36 void _UpdateWizardButtons(DriveItem* item); 37 38private: 39 WizardView* fWizardView; 40 BListView* fDrivesView; 41 bool fHasInstallableItems; 42}; 43 44 45#endif // DRIVES_PAGE_H 46