haiku/src/apps/bootman/PartitionsPage.h
Michael Pfeiffer 1059b4e746 Added Haiku, Inc. to copyrigth text.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-04-01 18:52:51 +00:00

46 lines
1.0 KiB
C++

/*
* Copyright 2008, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Michael Pfeiffer <laplace@users.sourceforge.net>
*/
#ifndef PARTITONS_PAGE_H
#define PARTITONS_PAGE_H
#include "WizardPageView.h"
class BTextView;
class BScrollView;
class PartitionsPage : public WizardPageView
{
public:
PartitionsPage(BMessage* settings, BRect frame, const char* name);
virtual ~PartitionsPage();
virtual void PageCompleted();
virtual void FrameResized(float width, float height);
private:
void _BuildUI();
void _Layout();
void _FillPartitionsView(BView* view);
void _CreateSizeText(int64 size, BString* text);
BMessage* _CreateControlMessage(uint32 what, int32 partitionIndex);
void _ComputeColumnWidths(int32& showWidth, int32& nameWidth, int32& typeWidth,
int32& sizeWidth, int32& pathWidth);
BTextView* fDescription;
BView* fPartitions;
BScrollView* fPartitionsScrollView;
float fPartitionsWidth;
float fPartitionsHeight;
};
#endif // PARTITONS_PAGE_H