haiku/src/apps/bootmanager/DrivesPage.h
Rene Gollent 0baa186bfb Refactor a little bit in order to better handle the button states as suggested by Axel. Should resolve #7073.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 18:09:13 +00:00

46 lines
920 B
C++

/*
* 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
#include "BootMenu.h"
#include "WizardPageView.h"
class BListView;
class BTextView;
class BScrollView;
class DriveItem;
class WizardView;
class DrivesPage : public WizardPageView {
public:
DrivesPage(WizardView* wizardView,
const BootMenuList& menus,
BMessage* settings, const char* name);
virtual ~DrivesPage();
virtual void PageCompleted();
protected:
void AttachedToWindow();
void MessageReceived(BMessage* message);
private:
void _FillDrivesView(const BootMenuList& menus);
DriveItem* _SelectedDriveItem();
void _UpdateWizardButtons(DriveItem* item);
private:
WizardView* fWizardView;
BListView* fDrivesView;
bool fHasInstallableItems;
};
#endif // DRIVES_PAGE_H