2 * Copyright 2008-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
8 #ifndef FILE_SELECTION_PAGE_H
9 #define FILE_SELECTION_PAGE_H
12 #include "WizardPageView.h"
14 #include <FilePanel.h>
22 class FileSelectionPage
: public WizardPageView
{
24 FileSelectionPage(BMessage
* settings
,
25 BRect frame
, const char* name
,
26 const char* description
,
27 file_panel_mode mode
);
28 virtual ~FileSelectionPage();
30 virtual void FrameResized(float width
, float height
);
31 virtual void AttachedToWindow();
32 virtual void MessageReceived(BMessage
* message
);
34 virtual void PageCompleted();
37 void _BuildUI(const char* description
);
39 void _OpenFilePanel();
40 void _SetFileFromFilePanelMessage(BMessage
* message
);
41 void _FilePanelCanceled();
44 file_panel_mode fMode
;
45 BFilePanel
* fFilePanel
;
47 BTextView
* fDescription
;
53 #endif // FILE_SELECTION_PAGE_H