diff --git a/Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h b/Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h index f3b6bff2f..4b0dc74d6 100644 --- a/Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h +++ b/Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h @@ -42,6 +42,8 @@ -(void)setHelpText: (NSAttributedString*)helpText; +- (void)buttonAction:(id)sender; + @end #endif // _GNUstep_H_GSHelpManagerPanel diff --git a/Headers/Additions/GNUstepGUI/GSNibCompatibility.h b/Headers/Additions/GNUstepGUI/GSNibCompatibility.h index 039bb2a5e..91bf14eee 100644 --- a/Headers/Additions/GNUstepGUI/GSNibCompatibility.h +++ b/Headers/Additions/GNUstepGUI/GSNibCompatibility.h @@ -49,7 +49,6 @@ - (id) realObject; @end - typedef struct _GSWindowTemplateFlags { #ifdef WORDS_BIGENDIAN @@ -79,6 +78,21 @@ typedef struct _GSWindowTemplateFlags #endif } GSWindowTemplateFlags; +// help connector class... +@interface NSIBHelpConnector : NSNibConnector +@end + +/** + * Button image source class. + */ +@interface NSButtonImageSource : NSObject +{ + NSString *imageName; +} +- (id) initWithImageNamed: (NSString *)name; +- (NSString *)imageName; +@end + /** * This class acts as a placeholder for the window. It doesn't derive from * NSWindow for two reasons. First, it shouldn't instantiate a window immediately @@ -100,7 +114,15 @@ typedef struct _GSWindowTemplateFlags id _view; GSWindowTemplateFlags _flags; NSString *_autosaveName; + Class _baseWindowClass; } +- (id) initWithWindow: (NSWindow *)window + className: (NSString *)windowClass + isDeferred: (BOOL) deferred + isOneShot: (BOOL) oneShot + isVisible: (BOOL) visible + wantsToBeColor: (BOOL) wantsToBeColor + autoPositionMask: (int) autoPositionMask; - (void) setBackingStoreType: (NSBackingStoreType)type; - (NSBackingStoreType) backingStoreType; - (void) setDeferred: (BOOL)flag; @@ -122,6 +144,7 @@ typedef struct _GSWindowTemplateFlags - (id) realObject; - (void) setView: (id)view; - (id) view; +- (Class) baseWindowClass; @end @interface NSViewTemplate : NSView @@ -204,10 +227,17 @@ typedef struct _GSWindowTemplateFlags NSString *_originalClassName; id _template; } +- (id) initWithObject: (id)object + withClassName: (NSString *)className + originalClassName: (NSString *)origClassName; ++ (void) setIsInInterfaceBuilder: (BOOL)flag; ++ (BOOL) isInInterfaceBuilder; - (void) setTemplate: (id)temp; - (id) template; - (void) setClassName: (NSString *)className; - (NSString *)className; +- (void) setOriginalClassName: (NSString *)className; +- (NSString *)originalClassName; @end @interface NSIBObjectData : NSObject @@ -218,21 +248,34 @@ typedef struct _GSWindowTemplateFlags NSMapTable *_oids; NSMapTable *_classes; NSMapTable *_instantiatedObjs; - NSMutableSet *_visibleWindows; + NSMutableArray *_visibleWindows; NSMutableArray *_connections; id _firstResponder; id _fontManager; NSString *_framework; - id _document; unsigned _nextOid; NSMutableArray *_accessibilityConnectors; NSMapTable *_accessibilityOids; + NSMutableSet *_topLevelObjects; } - (id) instantiateObject: (id)obj; - (void) nibInstantiateWithOwner: (id)owner; - (void) nibInstantiateWithOwner: (id)owner topLevelObjects: (NSMutableArray *)toplevel; - (id) objectForName: (NSString *)name; - (NSString *) nameForObject: (id)name; +- (NSMapTable *) objects; +- (NSMapTable *) names; +- (NSMapTable *) classes; +- (NSMapTable *) oids; +- (NSMutableArray *) visibleWindows; +- (void) setRoot: (id)root; +- (id) root; +- (void) setNextOid: (int)noid; +- (int) nextOid; +@end + +// class needed for nib encoding/decoding by the progress bar... +@interface NSPSMatrix : NSObject @end #endif /* _GNUstep_H_GSNibCompatibility */ diff --git a/Headers/Additions/GNUstepGUI/GSNibContainer.h b/Headers/Additions/GNUstepGUI/GSNibContainer.h index cfb993f60..45fc3683b 100644 --- a/Headers/Additions/GNUstepGUI/GSNibContainer.h +++ b/Headers/Additions/GNUstepGUI/GSNibContainer.h @@ -33,9 +33,11 @@ @protocol GSNibContainer - (void) awakeWithContext: (NSDictionary *)context; -- (NSMutableDictionary*) nameTable; -- (NSMutableArray*) connections; -- (NSMutableSet*) topLevelObjects; +- (NSMutableDictionary *) nameTable; +- (NSMutableArray *) connections; +- (NSMutableSet *) topLevelObjects; +// - (NSSet *) visibleWindows; +// - (NSSet *) deferredWindows; @end #endif /* _GNUstep_H_GSNibContainer */ diff --git a/Headers/Additions/GNUstepGUI/GSNibTemplates.h b/Headers/Additions/GNUstepGUI/GSNibTemplates.h index 8e68a3687..dc20badc5 100644 --- a/Headers/Additions/GNUstepGUI/GSNibTemplates.h +++ b/Headers/Additions/GNUstepGUI/GSNibTemplates.h @@ -36,7 +36,7 @@ #include "GNUstepGUI/GSNibContainer.h" // version of the nib container and the templates. -#define GNUSTEP_NIB_VERSION 1 +#define GNUSTEP_NIB_VERSION 2 #define GSSWAPPER_VERSION 0 #define GSWINDOWT_VERSION 1 #define GSVIEWT_VERSION 0 @@ -67,9 +67,15 @@ enum { { NSMutableDictionary *nameTable; NSMutableArray *connections; + NSMutableArray *visibleWindows; + NSMutableArray *deferredWindows; NSMutableSet *topLevelObjects; + NSMutableDictionary *customClasses; BOOL isAwake; } +- (NSMutableArray*) visibleWindows; +- (NSMutableArray*) deferredWindows; +- (NSMutableDictionary *) customClasses; @end /*