mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-31 09:11:11 +00:00
* GSWExtensions/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.gswd
* GSWExtensions/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.gswd * GSWExtensions/GNUmakefile * GSWExtensions/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.gswd * GSWExtensions/GSWExceptionPage.gswc/GSWExceptionPage.gswd use exclamation.png. exclamation.svg is not displayed inline in mozilla due to a bug in mozilla. * GSWExtensions/WebServerResources/exclamation.png * GSWExtensions/WebServerResources/exclamation.svg new file * GSWExtensions/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html * GSWExtensions/GSWExceptionPage.gswc/GSWExceptionPage.html better web design * GSWeb/GSWApplication.m -path get path from _resourceManager _resetCache do not call _clearCache, maybe we should trash the _componentDefinitionCache? _finishInitializingSession: make empty, still seems to work +_applicationClass don not use _applicationGSWBundle * GSWeb/GSWResourceManager.h * GSWeb/GSWResourceManager.m major redesign with WO 4.5 docs in mind. * GSWeb/GSWImageButton.m refactor resourceManager code * GSWeb/GSWeb.h remove GSWBundle class * Testing/DynamicElements added Image test. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30806 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5b731b3ca
commit
39c130d0f5
40 changed files with 1306 additions and 3053 deletions
|
@ -4,7 +4,8 @@
|
|||
|
||||
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
Date: Mar 1999
|
||||
|
||||
Written by: David Wetzel <dave@turbocat.de>
|
||||
|
||||
$Revision$
|
||||
$Date$
|
||||
|
||||
|
@ -33,116 +34,19 @@
|
|||
#define _GSWBundle_h__
|
||||
|
||||
|
||||
//====================================================================
|
||||
@interface GSWBundle : NSObject <NSLocking>
|
||||
{
|
||||
NSString* _path;
|
||||
NSString* _baseURL;
|
||||
NSString* _frameworkName;
|
||||
NSMutableDictionary* _archiveCache;
|
||||
NSMutableDictionary* _apiCache;//NDFN
|
||||
NSMutableDictionary* _encodingCache;
|
||||
NSMutableDictionary* _templateParserTypeCache;//NDFN
|
||||
NSMutableDictionary* _pathCache;
|
||||
NSMutableDictionary* _urlCache;
|
||||
NSMutableDictionary* _stringsTableCache;
|
||||
NSMutableDictionary* _stringsTableArrayCache; //NDFN
|
||||
NSMutableDictionary* _templateCache;
|
||||
NSMutableDictionary* _classCache;
|
||||
NSRecursiveLock* _selfLock;
|
||||
#ifndef NDEBUG
|
||||
int _selfLockn;
|
||||
#endif
|
||||
};
|
||||
|
||||
-(NSString*)baseURL;
|
||||
-(NSString*)path;
|
||||
-(NSString*)frameworkName;
|
||||
-(NSString*)description;
|
||||
-(void)dealloc;
|
||||
-(id)initWithPath:(NSString*)aPath
|
||||
baseURL:(NSString*)aBaseURL
|
||||
inFrameworkNamed:(NSString*)aFrameworkName;
|
||||
-(id)initWithPath:(NSString*)aPath
|
||||
baseURL:(NSString*)aBaseURL;
|
||||
-(void)unlock;
|
||||
-(void)lock;
|
||||
|
||||
// CHECKME: do we need this for WO 4.5? -- dw
|
||||
|
||||
-(void)clearCache;
|
||||
//-(void)loadCache;
|
||||
|
||||
//-(id)lockedResourceNamed:(NSString*)aName
|
||||
// ofType:(NSString*)aType
|
||||
// withLanguages:(NSArray*)languages
|
||||
// usingCache:(NSMutableDictionary*)cache
|
||||
// relativePath:(NSString**)relativePath
|
||||
// absolutePath:(NSString**)absolutePath;
|
||||
@interface NSBundle (WOResourceManagement)
|
||||
|
||||
-(void)initializeObject:(id)anObject
|
||||
fromArchiveNamed:(NSString*)aName;
|
||||
|
||||
-(void)initializeObject:(id)anObject
|
||||
fromArchive:(NSDictionary*)archive;
|
||||
|
||||
-(Class)scriptedClassWithName:(NSString*)aName
|
||||
superclassName:(NSString*)superclassName;
|
||||
|
||||
-(Class)lockedScriptedClassWithName:(NSString*)aName
|
||||
pathName:(NSString*)pathName
|
||||
superclassName:(NSString*)superclassName;
|
||||
|
||||
-(NSString*)lockedScriptedClassPathWithName:(NSString*)aName;
|
||||
|
||||
//-(Class)compiledClassWithName:(NSString*)aName
|
||||
// superclassName:(NSString*)superclassName;
|
||||
|
||||
-(GSWElement*)templateNamed:(NSString*)aName
|
||||
languages:(NSArray*)languages;
|
||||
|
||||
|
||||
-(GSWElement*)lockedTemplateNamed:(NSString*)aName
|
||||
languages:(NSArray*)languages;
|
||||
|
||||
|
||||
//-(NSString*)stringForKey:(NSString*)key_
|
||||
// inTableNamed:(NSString*)aName
|
||||
// withDefaultValue:(NSString*)defaultValue
|
||||
// languages:(NSArray*)languages;
|
||||
//
|
||||
|
||||
//NDFN
|
||||
-(NSDictionary*)stringsTableNamed:(NSString*)aName
|
||||
withLanguages:(NSArray*)languages;
|
||||
|
||||
//NDFN
|
||||
//-(NSArray*)stringsTableArrayNamed:(NSString*)aName
|
||||
// withLanguages:(NSArray*)languages;
|
||||
|
||||
//-(NSString*)urlForResourceNamed:(NSString*)aName
|
||||
// ofType:(NSString*)aType
|
||||
// languages:(NSArray*)languages
|
||||
// request:(GSWRequest*)aRequest;
|
||||
//
|
||||
|
||||
-(NSString*)pathForResourceNamed:(NSString*)aName
|
||||
ofType:(NSString*)aType
|
||||
languages:(NSArray*)languages;
|
||||
|
||||
|
||||
-(NSStringEncoding)encodingForResourcesNamed:(NSString*)aName;
|
||||
-(GSWTemplateParserType)templateParserTypeForResourcesNamed:(NSString*)aName;//NDFN
|
||||
|
||||
-(NSDictionary*)archiveNamed:(NSString*)aName;
|
||||
-(NSDictionary*)apiNamed:(NSString*)aName;//NDFN
|
||||
|
||||
-(NSDictionary*)lockedArchiveNamed:(NSString*)aName;
|
||||
-(NSDictionary*)lockedApiNamed:(NSString*)aName;//NDFN
|
||||
|
||||
//-(id)scriptedClassNameFromClassName:(NSString*)aName;
|
||||
//-(id)scriptPathNameFromScriptedClassName:(NSString*)aName;
|
||||
fromArchive:(NSDictionary*)anArchive;
|
||||
|
||||
@end
|
||||
|
||||
@interface GSWBundleUnarchiverDelegate : NSObject
|
||||
{
|
||||
id _object;
|
||||
}
|
||||
- (id) unarchiver:(NSKeyedUnarchiver*)unarchiver objectForReference:(NSString*)keyPath;
|
||||
- (id) initWithObject:(id)object;
|
||||
@end
|
||||
|
||||
#endif //_GSWBundle_h__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue