2 * Copyright 2004-2007 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
8 #ifndef _DIRECTORY_FILE_PANEL_H
9 #define _DIRECTORY_FILE_PANEL_H
12 #include <FilePanel.h>
16 static const uint32 MSG_DIRECTORY
= 'mDIR';
19 class DirectoryRefFilter
: public BRefFilter
{
22 bool Filter(const entry_ref
* ref
, BNode
* node
,
23 struct stat_beos
* stat
,
24 const char* mimeType
);
28 class DirectoryFilePanel
: public BFilePanel
{
31 file_panel_mode mode
= B_OPEN_PANEL
,
32 BMessenger
* target
= NULL
,
33 const entry_ref
* startDirectory
= NULL
,
34 uint32 nodeFlavors
= 0,
35 bool allowMultipleSelection
= true,
36 BMessage
* message
= NULL
,
37 BRefFilter
* filter
= NULL
,
39 bool hideWhenDone
= true);
40 virtual ~DirectoryFilePanel() {};
42 virtual void SelectionChanged();
44 // overrides non-virtual BFilePanel::Show()
47 BButton
* fCurrentButton
;
51 #endif // _DIRECTORY_FILE_PANEL_H