mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 02:11:01 +00:00
107 lines
2.8 KiB
C
107 lines
2.8 KiB
C
|
/*
|
||
|
GSNibCompatibility.h
|
||
|
|
||
|
Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
||
|
|
||
|
Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||
|
Date: 2002
|
||
|
|
||
|
This file is part of the GNUstep GUI Library.
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library 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
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public
|
||
|
License along with this library; if not, write to the Free
|
||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
||
|
*/
|
||
|
|
||
|
#ifndef _GNUstep_H_GSNibCompatibility
|
||
|
#define _GNUstep_H_GSNibCompatibility
|
||
|
|
||
|
#include <Foundation/NSObject.h>
|
||
|
#include <AppKit/NSWindow.h>
|
||
|
#include <AppKit/NSMenu.h>
|
||
|
#include <AppKit/NSView.h>
|
||
|
#include <AppKit/NSText.h>
|
||
|
#include <AppKit/NSTextView.h>
|
||
|
#include <AppKit/NSControl.h>
|
||
|
#include <AppKit/NSButton.h>
|
||
|
|
||
|
/*
|
||
|
As these classes are deprecated, they should disappear from the gnustep
|
||
|
distribution in the next major release. They are for backwards compatibility
|
||
|
ONLY.
|
||
|
*/
|
||
|
|
||
|
// DO NOT USE.
|
||
|
|
||
|
// templates
|
||
|
@protocol __DeprecatedTemplate__
|
||
|
- (void) setClassName: (NSString *)className;
|
||
|
- (NSString *)className;
|
||
|
- (id) instantiateObject: (NSCoder *)coder;
|
||
|
@end
|
||
|
|
||
|
@interface NSWindowTemplate : NSWindow <__DeprecatedTemplate__>
|
||
|
{
|
||
|
NSString *_className;
|
||
|
NSString *_parentClassName;
|
||
|
BOOL _deferFlag;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
@interface NSViewTemplate : NSView <__DeprecatedTemplate__>
|
||
|
{
|
||
|
NSString *_className;
|
||
|
NSString *_parentClassName;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
@interface NSTextTemplate : NSText <__DeprecatedTemplate__>
|
||
|
{
|
||
|
NSString *_className;
|
||
|
NSString *_parentClassName;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
@interface NSTextViewTemplate : NSTextView <__DeprecatedTemplate__>
|
||
|
{
|
||
|
NSString *_className;
|
||
|
NSString *_parentClassName;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
@interface NSMenuTemplate : NSMenu <__DeprecatedTemplate__>
|
||
|
{
|
||
|
NSString *_className;
|
||
|
NSString *_parentClassName;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
@interface NSControlTemplate : NSControl <__DeprecatedTemplate__>
|
||
|
{
|
||
|
NSString *_className;
|
||
|
NSString *_parentClassName;
|
||
|
id _delegate;
|
||
|
id _dataSource;
|
||
|
BOOL _usesDataSource;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
@interface NSButtonTemplate : NSButton <__DeprecatedTemplate__>
|
||
|
{
|
||
|
NSString *_className;
|
||
|
NSString *_parentClassName;
|
||
|
NSButtonType _buttonType;
|
||
|
}
|
||
|
@end
|
||
|
#endif /* _GNUstep_H_GSNibCompatibility */
|