mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Add GSInternal.h
This commit is contained in:
parent
110b650a95
commit
8e2df65156
3 changed files with 18 additions and 2 deletions
|
@ -26,7 +26,9 @@
|
|||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
|
||||
#import "GNUstepGUI/GSXibKeyedUnarchiver.h"
|
||||
|
||||
@class GSXibElement;
|
||||
|
|
|
@ -170,6 +170,8 @@ static NSString *ApplicationClass = nil;
|
|||
|
||||
@implementation GSXib5KeyedUnarchiver
|
||||
|
||||
// Singleton dictionary that holds any cached XIB data... cells, etc.
|
||||
static NSMutableDictionary *CachedXibDictionary = nil;
|
||||
static NSDictionary *XmlTagToObjectClassMap = nil;
|
||||
static NSArray *XmlTagsNotStacked = nil;
|
||||
static NSArray *XmlTagsToSkip = nil;
|
||||
|
@ -207,7 +209,7 @@ static NSArray *XmlBoolDefaultYes = nil;
|
|||
@"NSMutableArray", @"resources",
|
||||
@"NSMutableArray", @"segments",
|
||||
@"NSMutableArray", @"objectValues",
|
||||
@"NSMutableArray", @"prototypeCellViews",
|
||||
// @"NSMutableArray", @"prototypeCellViews",
|
||||
@"NSMutableArray", @"allowedToolbarItems",
|
||||
@"NSMutableArray", @"defaultToolbarItems",
|
||||
@"NSMutableArray", @"rowTemplates",
|
||||
|
@ -452,6 +454,7 @@ static NSArray *XmlBoolDefaultYes = nil;
|
|||
@"decodeTransitionStyle:", @"NSTransitionStyle",
|
||||
@"decodeShadowOffsetHoriz:", @"NSShadowHoriz",
|
||||
@"decodeShadowOffsetVert:", @"NSShadowVert",
|
||||
@"decodePrototypeCellViews:", @"NSPrototypeCellViews",
|
||||
nil];
|
||||
RETAIN(XmlKeyToDecoderSelectorMap);
|
||||
|
||||
|
@ -3004,6 +3007,12 @@ didStartElement: (NSString*)elementName
|
|||
return [NSNumber numberWithFloat: size.height];
|
||||
}
|
||||
|
||||
- (id) decodePrototypeCellViews: (GSXibElement *)element
|
||||
{
|
||||
NSLog(@"element = %@", currentElement);
|
||||
return [NSArray array];
|
||||
}
|
||||
|
||||
- (id) _decodePlacementForObject: (id)obj
|
||||
{
|
||||
NSGridRowAlignment alignment = NSGridCellPlacementNone;
|
||||
|
|
|
@ -30,8 +30,13 @@
|
|||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GNUSTEP_H_GSXIBINTERNAL
|
||||
#define _GNUSTEP_H_GSXIBINTERNAL
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
#import "GSXib5KeyedUnarchiver.h"
|
||||
|
||||
@interface GSXibInternal : NSObject
|
||||
@end
|
||||
|
||||
#endif // _GNUSTEP_H_GSXIBINTERNAL
|
||||
|
|
Loading…
Reference in a new issue