* GNUmakefile: Added plugins as resources.

* GormCore/GNUmakefile: Remove classes from file
	* GormCore/GormGModelWrapperLoader.m
	* GormCore/GormGormWrapperBuilder.m
	* GormCore/GormGormWrapperLoader.m
	* GormCore/GormNibWrapperBuilder.m
	* GormCore/GormNibWrapperLoader.m: Removed the loaders from GormCore.
	* GormCore/GormProtocol.h: Added a new method.
	* GormLib/IBPlugin.m: Added implementations to some of the methods.
	* Gorm.m: Added a "pluginManager" method.
	* Palettes/1Windows/GNUmakefile.preamble
	* Palettes/2Controls/GNUmakefile.preamble
	* Palettes/3Containers/GNUmakefile.preamble
	* Palettes/4Data/GNUmakefile.preamble: Corrected issue with all
	of the palette makefiles pointing to the wrong name.
	* Plugins/GModel/GNUmakefile
	* Plugins/GModel/GNUmakefile.preamble
	* Plugins/GModel/GormGModelPlugin.m
	* Plugins/GModel/GormGModelWrapperLoader.h
	* Plugins/GModel/GormGModelWrapperLoader.m
	* Plugins/Gorm/GNUmakefile
	* Plugins/Gorm/GNUmakefile.preamble
	* Plugins/Gorm/GormGormPlugin.m
	* Plugins/Gorm/GormGormWrapperBuilder.m
	* Plugins/Gorm/GormGormWrapperLoader.h
	* Plugins/Gorm/GormGormWrapperLoader.m
	* Plugins/Nib/GNUmakefile
	* Plugins/Nib/GNUmakefile.preamble
	* Plugins/Nib/GormNibPlugin.m
	* Plugins/Nib/GormNibWrapperBuilder.m
	* Plugins/Nib/GormNibWrapperLoader.h
	* Plugins/Nib/GormNibWrapperLoader.m: Added new plugins for each
	supported file type.
	* Resources/Defaults.plist: Added the "BuiltinPlugins" default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26531 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-05-17 00:43:33 +00:00
parent 7c96ff63ca
commit 027ab2363a
28 changed files with 425 additions and 43 deletions

View file

@ -1,3 +1,40 @@
2008-05-16 20:41-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* GNUmakefile: Added plugins as resources.
* GormCore/GNUmakefile: Remove classes from file
* GormCore/GormGModelWrapperLoader.m
* GormCore/GormGormWrapperBuilder.m
* GormCore/GormGormWrapperLoader.m
* GormCore/GormNibWrapperBuilder.m
* GormCore/GormNibWrapperLoader.m: Removed the loaders from GormCore.
* GormCore/GormProtocol.h: Added a new method.
* GormLib/IBPlugin.m: Added implementations to some of the methods.
* Gorm.m: Added a "pluginManager" method.
* Palettes/1Windows/GNUmakefile.preamble
* Palettes/2Controls/GNUmakefile.preamble
* Palettes/3Containers/GNUmakefile.preamble
* Palettes/4Data/GNUmakefile.preamble: Corrected issue with all
of the palette makefiles pointing to the wrong name.
* Plugins/GModel/GNUmakefile
* Plugins/GModel/GNUmakefile.preamble
* Plugins/GModel/GormGModelPlugin.m
* Plugins/GModel/GormGModelWrapperLoader.h
* Plugins/GModel/GormGModelWrapperLoader.m
* Plugins/Gorm/GNUmakefile
* Plugins/Gorm/GNUmakefile.preamble
* Plugins/Gorm/GormGormPlugin.m
* Plugins/Gorm/GormGormWrapperBuilder.m
* Plugins/Gorm/GormGormWrapperLoader.h
* Plugins/Gorm/GormGormWrapperLoader.m
* Plugins/Nib/GNUmakefile
* Plugins/Nib/GNUmakefile.preamble
* Plugins/Nib/GormNibPlugin.m
* Plugins/Nib/GormNibWrapperBuilder.m
* Plugins/Nib/GormNibWrapperLoader.h
* Plugins/Nib/GormNibWrapperLoader.m: Added new plugins for each
supported file type.
* Resources/Defaults.plist: Added the "BuiltinPlugins" default.
2008-05-06 20:04-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* English.lproj/Gorm.gorm: Added shortcut to Page Layout menu.

View file

@ -64,6 +64,9 @@ Gorm_RESOURCE_FILES = \
Palettes/2Controls/2Controls.palette \
Palettes/3Containers/3Containers.palette \
Palettes/4Data/4Data.palette \
Plugins/Gorm/Gorm.plugin \
Plugins/Nib/Nib.plugin \
Plugins/GModel/GModel.plugin \
Images/GormClass.tiff \
Images/GormFilesOwner.tiff \
Images/GormFirstResponder.tiff \

17
Gorm.m
View file

@ -30,6 +30,7 @@
#include <GormCore/GormFontViewController.h>
#include <GormCore/GormSetNameController.h>
#include <GormCore/GormFunctions.h>
#include <GormCore/GormPluginManager.h>
#include <GNUstepBase/GSObjCRuntime.h>
#include <GormPrefs/GormPrefController.h>
@ -39,6 +40,7 @@
GormClassManager *classManager;
GormInspectorsManager *inspectorsManager;
GormPalettesManager *palettesManager;
GormPluginManager *pluginManager;
id<IBSelectionOwners> selectionOwner;
NSMutableArray *documents;
BOOL isConnecting;
@ -133,10 +135,12 @@
}
/*
* Make sure the palettes manager exists, so that the editors and
* inspectors provided in the standard palettes are available.
* Make sure the palettes/plugins managers exist, so that the
* editors and inspectors provided in the standard palettes
* are available.
*/
[self palettesManager];
[self pluginManager];
/*
* set the delegate.
@ -955,6 +959,15 @@
return palettesManager;
}
- (GormPluginManager*) pluginManager
{
if (pluginManager == nil)
{
pluginManager = [[GormPluginManager alloc] init];
}
return pluginManager;
}
- (id<IBSelectionOwners>) selectionOwner
{
return (id<IBSelectionOwners>)selectionOwner;

View file

@ -68,6 +68,8 @@ GormCore_HEADER_FILES = \
GormOutlineView.h \
GormPalettesManager.h \
GormPlacementInfo.h \
GormPlugin.h \
GormPluginManager.h \
GormPrivate.h \
GormProtocol.h \
GormResource.h \
@ -113,23 +115,20 @@ GormCore_OBJC_FILES = \
GormFunctions.m \
GormGenericEditor.m \
GormHelpInspector.m \
GormGormWrapperBuilder.m \
GormGormWrapperLoader.m \
GormGModelWrapperLoader.m \
GormImage.m \
GormImageEditor.m \
GormImageInspector.m \
GormInspectorsManager.m \
GormInternalViewEditor.m \
GormMatrixEditor.m \
GormNibWrapperBuilder.m \
GormNibWrapperLoader.m \
GormNSSplitViewInspector.m \
GormObjectEditor.m \
GormObjectInspector.m \
GormOpenGLView.m \
GormOutlineView.m \
GormPalettesManager.m \
GormPlugin.m \
GormPluginManager.m \
GormResource.m \
GormResourceEditor.m \
GormResourceManager.m \

View file

@ -27,7 +27,7 @@
#include <Foundation/NSObject.h>
@class GormClassManager, GormPalettesManager, GormInspectorsManager, NSString, NSMenu;
@class GormClassManager, GormPalettesManager, GormInspectorsManager, NSString, NSMenu, GormPluginManager;
@protocol Gorm
// Connections
@ -54,6 +54,7 @@
- (void) loadPalette: (id) sender;
- (GormPalettesManager*) palettesManager;
- (GormInspectorsManager*) inspectorsManager;
- (GormPluginManager*) pluginManager;
// testing the interface
- (void) testInterface: (id)sender;

View file

@ -1,4 +1,4 @@
/* IBPlugin.h
/* IBPlugin.m
*
* Copyright (C) 2007 Free Software Foundation, Inc.
*
@ -27,15 +27,36 @@
#include <AppKit/NSView.h>
#include <InterfaceBuilder/IBPlugin.h>
static NSMapTable *instanceMap = 0;
@implementation IBPlugin
+ (void) initialize
{
if (instanceMap == 0)
{
instanceMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
NSObjectMapValueCallBacks, 2);
}
}
// Getting the shared plugin...
/**
* Returns the shared instance of the plugin.
*/
+ (id)sharedInstance
{
return nil;
NSString *className = [self className];
id instance = NSMapGet(instanceMap, className);
if(instance == nil)
{
instance = [[[self class] alloc] init];
NSMapInsert(instanceMap, className, instance);
RELEASE(instance);
}
return instance;
}
// Loading and unloading plugin resources.
@ -71,7 +92,7 @@
*/
- (NSString *) label
{
return nil;
return [self className];
}
/**
@ -111,5 +132,10 @@ fromDraggedLibraryView: (NSView *)view
// do nothing;
}
- (void) dealloc
{
NSMapRemove(instanceMap,[self className]);
[super dealloc];
}
@end

View file

@ -17,5 +17,5 @@ ADDITIONAL_LIB_DIRS += \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
0Menus_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
1Windows_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
endif

View file

@ -17,5 +17,5 @@ ADDITIONAL_LIB_DIRS += \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
0Menus_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
2Controls_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
endif

View file

@ -17,5 +17,5 @@ ADDITIONAL_LIB_DIRS += \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
0Menus_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
3Containers_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
endif

View file

@ -17,5 +17,5 @@ ADDITIONAL_LIB_DIRS += \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
0Menus_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
4Data_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
endif

View file

@ -24,9 +24,11 @@
include $(GNUSTEP_MAKEFILES)/common.make
BUNDLE_NAME = GModel
GModel_PRINCIPAL_CLASS = GormPlugin
BUNDLE_EXTENSION = .plugin
GModel_PRINCIPAL_CLASS = GormGModelPlugin
GModel_OBJC_FILES =
GModel_OBJC_FILES = GormGModelPlugin.m \
GormGModelWrapperLoader.m
GModel_RESOURCE_FILES =
@ -36,7 +38,7 @@ GModel_STANDARD_INSTALL = no
-include GNUmakefile.local
include $(GNUSTEP_MAKEFILES)/palette.make
include $(GNUSTEP_MAKEFILES)/bundle.make
-include GNUmakefile.postamble

View file

@ -0,0 +1,21 @@
# Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS += -I../..
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
ADDITIONAL_LIB_DIRS += \
-L../../GormLib/$(GNUSTEP_OBJ_DIR) \
-L../../GormObjCHeaderParser/$(GNUSTEP_OBJ_DIR) \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
ADDITIONAL_GUI_LIBS += -lGorm -lGormCore
endif
ifeq ($(GNUSTEP_TARGET_OS),cygwin)
ADDITIONAL_LIB_DIRS += \
-L../../GormLib/$(GNUSTEP_OBJ_DIR) \
-L../../GormObjCHeaderParser/$(GNUSTEP_OBJ_DIR) \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
GModel_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
endif

View file

@ -0,0 +1,40 @@
/* GormGModelModule.m
*
* Copyright (C) 2007 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2007
*
* 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 3 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
*/
#include <GormCore/GormPlugin.h>
#include <GormCore/GormWrapperLoader.h>
#include <Foundation/NSArray.h>
#include "GormGModelWrapperLoader.h"
@interface GormGModelPlugin : GormPlugin
@end
@implementation GormGModelPlugin
- (void) didLoad
{
[self registerDocumentTypeName: [GormGModelWrapperLoader type]
humanReadableName: @"GNUstep GModel"
forExtensions: [NSArray arrayWithObjects: @"gmodel",nil]];
}
@end

View file

@ -0,0 +1,36 @@
/* GormNibWrapperLoader
*
*
* Copyright (C) 2006 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2006
*
* 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 3 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
*/
#ifndef GORM_GMODELWRAPPERLOADER
#define GORM_GMODELWRAPPERLOADER
#include <GormCore/GormWrapperLoader.h>
@class NSMutableArray, NSString;
@interface GormGModelWrapperLoader : GormWrapperLoader
+ (NSString *) type;
@end
#endif

View file

@ -25,15 +25,15 @@
#include <AppKit/NSWindow.h>
#include <AppKit/NSNibConnector.h>
#include <AppKit/NSFileWrapper.h>
#include <GormWrapperLoader.h>
#include <GNUstepGUI/GMArchiver.h>
#include <GNUstepGUI/IMLoading.h>
#include <GNUstepGUI/IMCustomObject.h>
#include <GNUstepGUI/GSDisplayServer.h>
#include "GormPrivate.h"
#include "GormCustomView.h"
#include "GormDocument.h"
#include "GormFunctions.h"
#include <GormCore/GormPrivate.h>
#include <GormCore/GormCustomView.h>
#include <GormCore/GormDocument.h>
#include <GormCore/GormFunctions.h>
#include "GormGModelWrapperLoader.h"
static Class gmodel_class(NSString *className);
@ -432,9 +432,6 @@ static BOOL gormFileOwnerDecoded;
}
@end
@interface GormGModelWrapperLoader : GormWrapperLoader
@end
@implementation GormGModelWrapperLoader
+ (NSString *) type
{

View file

@ -24,9 +24,12 @@
include $(GNUSTEP_MAKEFILES)/common.make
BUNDLE_NAME = Gorm
Gorm_PRINCIPAL_CLASS = GormPlugin
BUNDLE_EXTENSION = .plugin
Gorm_PRINCIPAL_CLASS = GormGormPlugin
Gorm_OBJC_FILES =
Gorm_OBJC_FILES = GormGormPlugin.m \
GormGormWrapperBuilder.m \
GormGormWrapperLoader.m
Gorm_RESOURCE_FILES =
@ -36,7 +39,7 @@ Gorm_STANDARD_INSTALL = no
-include GNUmakefile.local
include $(GNUSTEP_MAKEFILES)/palette.make
include $(GNUSTEP_MAKEFILES)/bundle.make
-include GNUmakefile.postamble

View file

@ -0,0 +1,21 @@
# Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS += -I../..
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
ADDITIONAL_LIB_DIRS += \
-L../../GormLib/$(GNUSTEP_OBJ_DIR) \
-L../../GormObjCHeaderParser/$(GNUSTEP_OBJ_DIR) \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
ADDITIONAL_GUI_LIBS += -lGorm -lGormCore
endif
ifeq ($(GNUSTEP_TARGET_OS),cygwin)
ADDITIONAL_LIB_DIRS += \
-L../../GormLib/$(GNUSTEP_OBJ_DIR) \
-L../../GormObjCHeaderParser/$(GNUSTEP_OBJ_DIR) \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
Gorm_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
endif

View file

@ -0,0 +1,40 @@
/* GormNibModule.m
*
* Copyright (C) 2007 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2007
*
* 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 3 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
*/
#include <GormCore/GormPlugin.h>
#include <GormCore/GormWrapperLoader.h>
#include <Foundation/NSArray.h>
#include "GormGormWrapperLoader.h"
@interface GormGormPlugin : GormPlugin
@end
@implementation GormGormPlugin
- (void) didLoad
{
[self registerDocumentTypeName: [GormGormWrapperLoader type]
humanReadableName: @"GNUstep Gorm"
forExtensions: [NSArray arrayWithObjects: @"gorm",nil]];
}
@end

View file

@ -0,0 +1,42 @@
/* GormNibWrapperLoader
*
*
* Copyright (C) 2006 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2006
*
* 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 3 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
*/
#ifndef GORM_GORMWRAPPERLOADER
#define GORM_GORMWRAPPERLOADER
#include <GormCore/GormWrapperLoader.h>
@class NSMutableArray, NSString;
@interface GormGormWrapperLoader : GormWrapperLoader
{
NSMutableArray *_repairLog;
id message;
id textField;
id panel;
}
+ (NSString *) type;
@end
#endif

View file

@ -24,9 +24,12 @@
include $(GNUSTEP_MAKEFILES)/common.make
BUNDLE_NAME = Nib
Nib_PRINCIPAL_CLASS = NibPlugin
BUNDLE_EXTENSION = .plugin
Nib_PRINCIPAL_CLASS = GormNibPlugin
Nib_OBJC_FILES =
Nib_OBJC_FILES = GormNibPlugin.m \
GormNibWrapperBuilder.m \
GormNibWrapperLoader.m
Nib_RESOURCE_FILES =
@ -36,7 +39,7 @@ Nib_STANDARD_INSTALL = no
-include GNUmakefile.local
include $(GNUSTEP_MAKEFILES)/palette.make
include $(GNUSTEP_MAKEFILES)/bundle.make
-include GNUmakefile.postamble

View file

@ -0,0 +1,21 @@
# Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS += -I../..
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
ADDITIONAL_LIB_DIRS += \
-L../../GormLib/$(GNUSTEP_OBJ_DIR) \
-L../../GormObjCHeaderParser/$(GNUSTEP_OBJ_DIR) \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
ADDITIONAL_GUI_LIBS += -lGorm -lGormCore
endif
ifeq ($(GNUSTEP_TARGET_OS),cygwin)
ADDITIONAL_LIB_DIRS += \
-L../../GormLib/$(GNUSTEP_OBJ_DIR) \
-L../../GormObjCHeaderParser/$(GNUSTEP_OBJ_DIR) \
-L../../GormPrefs/$(GNUSTEP_OBJ_DIR) \
-L../../GormCore/$(GNUSTEP_OBJ_DIR)
Nib_LIBRARIES_DEPEND_UPON += -lGorm -lGormCore
endif

View file

@ -0,0 +1,39 @@
/* GormNibModule.m
*
* Copyright (C) 2007 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2007
*
* 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 3 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
*/
#include <GormCore/GormPlugin.h>
#include <GormCore/GormWrapperLoader.h>
#include "GormNibWrapperLoader.h"
@interface GormNibPlugin : GormPlugin
@end
@implementation GormNibPlugin
- (void) didLoad
{
[self registerDocumentTypeName: [GormNibWrapperLoader type]
humanReadableName: @"Cocoa Nib"
forExtensions: [NSArray arrayWithObjects: @"nib",nil]];
}
@end

View file

@ -0,0 +1,40 @@
/* GormNibWrapperLoader
*
*
* Copyright (C) 2006 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2006
*
* 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 3 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
*/
#ifndef GORM_NIBWRAPPERLOADER
#define GORM_NIBWRAPPERLOADER
#include <GormCore/GormWrapperLoader.h>
#include <GNUstepGUI/GSNibCompatibility.h>
@interface GormNibWrapperLoader : GormWrapperLoader
{
NSIBObjectData *container;
id nibFilesOwner;
}
+ (NSString *)type;
- (BOOL) isTopLevelObject: (id)obj;
@end
#endif

View file

@ -24,7 +24,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
*/
#include <GormCore/GormWrapperLoader.h>
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#include <GormCore/GormPalettesManager.h>
@ -35,7 +34,7 @@
#include <GormCore/NSView+GormExtensions.h>
#include <GormCore/GormFunctions.h>
#include <GormCore/GormCustomView.h>
#include <GNUstepGUI/GSNibCompatibility.h>
#include "GormNibWrapperLoader.h"
@interface NSWindowTemplate (Private)
- (void) setBaseWindowClass: (Class) clz;
@ -48,14 +47,6 @@
}
@end
@interface GormNibWrapperLoader : GormWrapperLoader
{
NSIBObjectData *container;
id nibFilesOwner;
}
- (BOOL) isTopLevelObject: (id)obj;
@end
@implementation GormNibWrapperLoader
+ (NSString *) type
{
@ -342,7 +333,9 @@
return YES;
}
- (void) unarchiver: (NSKeyedUnarchiver *)unarchiver willReplaceObject: (id)obj withObject: (id)newObj
- (void) unarchiver: (NSKeyedUnarchiver *)unarchiver
willReplaceObject: (id)obj
withObject: (id)newObj
{
// Nothing for now...
}

View file

@ -8,6 +8,11 @@
3Containers.palette,
4Data.palette
);
BuiltinPlugins = (
Gorm.plugin,
Nib.plugin,
GModel.plugin
);
CellSizeWidth = 72;
ClassViewType = Browser;
GuideColor = {