1 /*
2    GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
3 
4    Copyright (C) 2004 Free Software Foundation
5 
6    Authors: Serg Stoyan
7 
8    This file is part of GNUstep.
9 
10    This application is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public
12    License as published by the Free Software Foundation; either
13    version 2 of the License, or (at your option) any later version.
14 
15    This application is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Library General Public License for more details.
19 
20    You should have received a copy of the GNU General Public
21    License along with this library; if not, write to the Free
22    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
23 */
24 
25 #ifndef _PCAddFilesPanel_h_
26 #define _PCAddFilesPanel_h_
27 
28 //#import <Foundation/Foundation.h>
29 #import <AppKit/AppKit.h>
30 
31 @interface PCAddFilesPanel : NSOpenPanel
32 {
33   NSBox	        *fileTypeAccessaryView;
34   NSPopUpButton *fileTypePopup;
35 }
36 
37 + (PCAddFilesPanel *)addFilesPanel;
38 
39 - (void)setCategories:(NSArray *)categories;
40 - (void)selectCategory:(NSString *)category;
41 - (NSString *)selectedCategory;
42 - (void)setFileTypes:(NSArray *)fileTypes;
43 
44 - (void)filesForAddPopupClicked:(id)sender;
45 
46 @end
47 
48 @interface NSObject (PCAddFilesPanelDelegate)
49 
50 - (void)categoryChangedTo:(NSString *)category;
51 
52 @end
53 
54 #endif
55