2 * Copyright 2002-2009 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Jerome Duval, jerome.duval@free.fr
9 #ifndef IMAGE_FILE_PANEL_H
10 #define IMAGE_FILE_PANEL_H
13 #include <FilePanel.h>
21 class CustomRefFilter
: public BRefFilter
{
23 CustomRefFilter(bool imageFiltering
);
24 virtual ~CustomRefFilter() {};
26 bool Filter(const entry_ref
* ref
, BNode
* node
,
27 struct stat_beos
* st
, const char* filetype
);
32 // false for directory
36 class ImageFilePanel
: public BFilePanel
{
38 ImageFilePanel(file_panel_mode mode
= B_OPEN_PANEL
,
39 BMessenger
* target
= NULL
,
40 const entry_ref
* startDirectory
= NULL
,
41 uint32 nodeFlavors
= 0,
42 bool allowMultipleSelection
= true,
43 BMessage
* message
= NULL
,
44 BRefFilter
* filter
= NULL
,
46 bool hideWhenDone
= true);
49 virtual void SelectionChanged();
54 BStringView
* fResolutionView
;
55 BStringView
* fImageTypeView
;
58 #endif // IMAGE_FILE_PANEL_H