/* GormPalettesManager.h * * Copyright (C) 1999, 2003 Free Software Foundation, Inc. * * Author: Gregory John Casamento * Author: Richard Frith-Macdonald * Date: 1999, 2003 * * This file is part of GNUstep. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef INCLUDED_GormPalettesManager_h #define INCLUDED_GormPalettesManager_h #include @class NSMutableArray, NSMutableDictionary, NSDictionary, NSArray, NSBundle; @class NSPanel, NSMatrix, NSView; @interface GormPalettesManager : NSObject { NSPanel *panel; NSMatrix *selectionView; NSView *dragView; NSMutableArray *bundles; NSMutableArray *palettes; int current; BOOL hiddenDuringTest; NSMutableDictionary *importedClasses; NSMutableArray *importedImages; NSMutableArray *importedSounds; NSMutableDictionary *substituteClasses; } // methods for loading and display the palette panels - (BOOL) loadPalette: (NSString*)path; - (id) openPalette: (id) sender; - (NSPanel*) panel; - (void) setCurrentPalette: (id)anObject; // methods for importing stuff from palettes - (void) importClasses: (NSArray *)classes withDictionary: (NSDictionary *)dict; - (NSDictionary *) importedClasses; - (void) importImages: (NSArray *)images withBundle: (NSBundle *) bundle; - (NSArray *) importedImages; - (void) importSounds: (NSArray *)sounds withBundle: (NSBundle *) bundle; - (NSArray *) importedSounds; - (NSDictionary *) substituteClasses; @end #endif