2011-01-05 23:36:35 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2011, Axel Dörfler, axeld@pinc-software.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef DRIVES_PAGE_H
|
|
|
|
#define DRIVES_PAGE_H
|
|
|
|
|
|
|
|
|
2011-01-08 13:47:22 +00:00
|
|
|
#include "BootMenu.h"
|
2011-01-05 23:36:35 +00:00
|
|
|
#include "WizardPageView.h"
|
|
|
|
|
|
|
|
|
|
|
|
class BListView;
|
|
|
|
class BTextView;
|
|
|
|
class BScrollView;
|
|
|
|
class DriveItem;
|
|
|
|
class WizardView;
|
|
|
|
|
|
|
|
|
|
|
|
class DrivesPage : public WizardPageView {
|
|
|
|
public:
|
|
|
|
DrivesPage(WizardView* wizardView,
|
2011-01-08 13:47:22 +00:00
|
|
|
const BootMenuList& menus,
|
2011-01-05 23:36:35 +00:00
|
|
|
BMessage* settings, const char* name);
|
|
|
|
virtual ~DrivesPage();
|
|
|
|
|
|
|
|
virtual void PageCompleted();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void AttachedToWindow();
|
|
|
|
void MessageReceived(BMessage* message);
|
|
|
|
|
|
|
|
private:
|
2011-01-10 18:09:13 +00:00
|
|
|
void _FillDrivesView(const BootMenuList& menus);
|
2011-01-05 23:36:35 +00:00
|
|
|
DriveItem* _SelectedDriveItem();
|
|
|
|
void _UpdateWizardButtons(DriveItem* item);
|
|
|
|
|
|
|
|
private:
|
|
|
|
WizardView* fWizardView;
|
|
|
|
BListView* fDrivesView;
|
2011-01-10 18:09:13 +00:00
|
|
|
bool fHasInstallableItems;
|
2011-01-05 23:36:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // DRIVES_PAGE_H
|