vfs: check userland buffers before reading them.
[haiku.git] / src / apps / bootmanager / FileSelectionPage.h
blob0da9cba32fb16d42977370290cb8412e5947561e
1 /*
2 * Copyright 2008-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
7 */
8 #ifndef FILE_SELECTION_PAGE_H
9 #define FILE_SELECTION_PAGE_H
12 #include "WizardPageView.h"
14 #include <FilePanel.h>
17 class BButton;
18 class BTextControl;
19 class BTextView;
22 class FileSelectionPage : public WizardPageView {
23 public:
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();
36 private:
37 void _BuildUI(const char* description);
38 void _Layout();
39 void _OpenFilePanel();
40 void _SetFileFromFilePanelMessage(BMessage* message);
41 void _FilePanelCanceled();
43 private:
44 file_panel_mode fMode;
45 BFilePanel* fFilePanel;
47 BTextView* fDescription;
48 BTextControl* fFile;
49 BButton* fSelect;
53 #endif // FILE_SELECTION_PAGE_H