mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-29 19:11:08 +00:00
STRICT_OPENSTEP fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16367 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c09eb5bbf0
commit
4e87de4e7a
8 changed files with 43 additions and 6 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2003-04-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/gnustep/gui/NSAttributedString.h:
|
||||
* Headers/gnustep/gui/NSDocumentController.h:
|
||||
* Headers/gnustep/gui/NSGraphicsContext.h:
|
||||
* Headers/gnustep/gui/NSResponder.h:
|
||||
* Headers/gnustep/gui/NSStringDrawing.h:
|
||||
* Headers/gnustep/gui/NSTextView.h:
|
||||
* Headers/gnustep/gui/NSWindow.h:
|
||||
Fixes to allow compliation of apps with STRICT_OPENSTEP defined.
|
||||
This does *NOT* mean I've checked that STRICT_OPENSTEP is defined
|
||||
where it should be, just that I've stopped it preventing compilation.
|
||||
|
||||
2003-03-28 Serg Stoyan <stoyan@on.com.ua>
|
||||
|
||||
* Source/NSMenuView.m:
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#ifndef _GNUstep_H_NSAttributedString
|
||||
#define _GNUstep_H_NSAttributedString
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
|
||||
#include <Foundation/NSAttributedString.h>
|
||||
#include <Foundation/NSRange.h>
|
||||
#include <AppKit/NSFontManager.h>
|
||||
|
@ -116,3 +118,5 @@ enum
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#ifndef _GNUstep_H_NSDocumentController
|
||||
#define _GNUstep_H_NSDocumentController
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <AppKit/NSNibDeclarations.h>
|
||||
#include <AppKit/NSUserInterfaceValidation.h>
|
||||
|
@ -117,5 +119,7 @@
|
|||
|
||||
@end
|
||||
|
||||
#endif // STRICT_OPENSTEP
|
||||
|
||||
#endif // _GNUstep_H_NSDocumentController
|
||||
|
||||
|
|
|
@ -89,7 +89,12 @@ typedef enum _NSImageInterpolation
|
|||
NSImageInterpolationHigh
|
||||
} NSImageInterpolation;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
|
||||
/*
|
||||
* The following graphics context stuff is needed by inline functions,
|
||||
* so it must always be available even when STRICT_OPENSTEP is defined.
|
||||
*/
|
||||
|
||||
|
||||
typedef enum _GSTextDrawingMode
|
||||
{
|
||||
|
@ -180,9 +185,10 @@ typedef enum _GSColorSpace
|
|||
|
||||
@end
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
APPKIT_EXPORT NSGraphicsContext *GSCurrentContext(void);
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
|
||||
@interface NSGraphicsContext (GNUstep)
|
||||
+ (void) setDefaultContextClass: (Class)defaultContextClass;
|
||||
|
||||
|
@ -404,5 +410,3 @@ APPKIT_EXPORT NSString *GSColorSpaceColorTable;
|
|||
|
||||
#endif /* _NSGraphicsContext_h_INCLUDE */
|
||||
|
||||
#endif /* STRICT_OPENSTEP */
|
||||
|
||||
|
|
|
@ -41,7 +41,11 @@
|
|||
|
||||
@interface NSResponder : NSObject <NSCoding>
|
||||
{
|
||||
#ifdef STRICT_OPENSTEP
|
||||
int _interface_style;
|
||||
#else
|
||||
NSInterfaceStyle _interface_style;
|
||||
#endif
|
||||
NSResponder *_next_responder;
|
||||
NSMenu *_menu;
|
||||
/*
|
||||
|
@ -146,8 +150,10 @@
|
|||
*/
|
||||
- (NSInterfaceStyle) interfaceStyle;
|
||||
- (void) setInterfaceStyle: (NSInterfaceStyle)aStyle;
|
||||
#endif
|
||||
@end
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
@interface NSResponder (OptionalActionMethods)
|
||||
- (void) capitalizeWord: (id)sender;
|
||||
- (void) centerSelectionInVisibleArea: (id)sender;
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#ifndef _GNUstep_H_NSStringDrawing
|
||||
#define _GNUstep_H_NSStringDrawing
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSAttributedString.h>
|
||||
#include <Foundation/NSGeometry.h>
|
||||
|
@ -53,4 +55,8 @@
|
|||
|
||||
@end
|
||||
|
||||
#else
|
||||
@class NSAttributedString;
|
||||
#endif
|
||||
|
||||
#endif /* _GNUstep_H_NSStringDrawing */
|
||||
|
|
|
@ -537,6 +537,7 @@ for that text view has been invalidated.
|
|||
/* Note that all delegation messages come from the first text view of a
|
||||
layout manager. */
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
@interface NSObject (NSTextViewDelegate)
|
||||
|
||||
-(void) textView: (NSTextView *)textView
|
||||
|
@ -587,6 +588,7 @@ replacementString will be nil. */
|
|||
|
||||
-(NSUndoManager *) undoManagerForTextView: (NSTextView *)view;
|
||||
@end
|
||||
#endif // STRICT_OPENSTEP
|
||||
|
||||
/* NSOldNotifyingTextView -> the old view, NSNewNotifyingTextView ->
|
||||
the new view. The text view delegate is not automatically
|
||||
|
|
|
@ -90,13 +90,11 @@ enum {
|
|||
NSMiniWindowMask = 128 /* GNUstep extension - miniwindows */
|
||||
};
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
typedef enum _NSSelectionDirection {
|
||||
NSDirectSelection,
|
||||
NSSelectingNext,
|
||||
NSSelectingPrevious
|
||||
} NSSelectionDirection;
|
||||
#endif
|
||||
|
||||
APPKIT_EXPORT NSSize NSIconSize;
|
||||
APPKIT_EXPORT NSSize NSTokenSize;
|
||||
|
|
Loading…
Reference in a new issue