1 /* GormPalettesManager.h
2  *
3  * Copyright (C) 1999, 2003 Free Software Foundation, Inc.
4  *
5  * Author:	Gregory John Casamento <greg_casamento@yahoo.com>
6  * Author:	Richard Frith-Macdonald <richard@brainstrom.co.uk>
7  * Date:	1999, 2003
8  *
9  * This file is part of GNUstep.
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
24  */
25 
26 #ifndef INCLUDED_GormPalettesManager_h
27 #define INCLUDED_GormPalettesManager_h
28 
29 #include <Foundation/NSObject.h>
30 
31 @class NSMutableArray, NSMutableDictionary, NSDictionary, NSArray, NSBundle;
32 @class NSPanel, NSMatrix, NSView;
33 
34 @interface GormPalettesManager : NSObject
35 {
36   NSPanel		*panel;
37   NSMatrix		*selectionView;
38   NSView		*dragView;
39   NSMutableArray	*bundles;
40   NSMutableArray	*palettes;
41   int			current;
42   BOOL			hiddenDuringTest;
43   NSMutableDictionary   *importedClasses;
44   NSMutableArray        *importedImages;
45   NSMutableArray        *importedSounds;
46   NSMutableDictionary   *substituteClasses;
47 }
48 
49 // methods for loading and display the palette panels
50 - (BOOL) loadPalette: (NSString*)path;
51 - (id) openPalette: (id) sender;
52 - (NSPanel*) panel;
53 - (void) setCurrentPalette: (id)anObject;
54 
55 // methods for importing stuff from palettes
56 - (void) importClasses: (NSArray *)classes withDictionary: (NSDictionary *)dict;
57 - (NSDictionary *) importedClasses;
58 - (void) importImages: (NSArray *)images withBundle: (NSBundle *) bundle;
59 - (NSArray *) importedImages;
60 - (void) importSounds: (NSArray *)sounds withBundle: (NSBundle *) bundle;
61 - (NSArray *) importedSounds;
62 - (NSDictionary *) substituteClasses;
63 @end
64 
65 #endif
66