git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24726 a95241bf-73f2-0310-859d-f6bbb57e9c96
54 lines
1.0 KiB
C++
54 lines
1.0 KiB
C++
/*
|
|
* Copyright 2008, Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Michael Pfeiffer <[email protected]>
|
|
*/
|
|
#ifndef WIZARD_VIEW_H
|
|
#define WIZARD_VIEW_H
|
|
|
|
|
|
#include <Box.h>
|
|
#include <Button.h>
|
|
#include <View.h>
|
|
|
|
|
|
class BTextView;
|
|
class WizardPageView;
|
|
|
|
|
|
const uint32 kMessageNext = 'next';
|
|
const uint32 kMessagePrevious = 'prev';
|
|
|
|
|
|
class WizardView : public BView
|
|
{
|
|
public:
|
|
WizardView(BRect frame, const char* name, uint32 resizingMode);
|
|
virtual ~WizardView();
|
|
|
|
virtual BRect PageFrame();
|
|
|
|
virtual void SetPage(WizardPageView* page);
|
|
|
|
virtual void PageCompleted();
|
|
|
|
virtual void SetPreviousButtonEnabled(bool enabled);
|
|
virtual void SetNextButtonEnabled(bool enabled);
|
|
virtual void SetPreviousButtonLabel(const char* text);
|
|
virtual void SetNextButtonLabel(const char* text);
|
|
virtual void SetPreviousButtonHidden(bool hide);
|
|
|
|
private:
|
|
void _BuildUI();
|
|
|
|
BBox* fSeparator;
|
|
BButton* fPrevious;
|
|
BButton* fNext;
|
|
|
|
WizardPageView* fPage;
|
|
};
|
|
|
|
#endif // WIZARD_VIEW_H
|