Fixes to compile shared on Windows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10611 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-07-30 21:30:51 +00:00
parent 911b5993e8
commit 6fc3726a02
51 changed files with 527 additions and 382 deletions

View file

@ -1,3 +1,19 @@
2001-07-30 Adam Fedor <fedor@gnu.org>
* Fixes to compile shared (DLL) on Windows.
* GNUmakefile.postamble (header-links): Add rules for MingW target.
* configure.in: Check for rint.
* Source/GNUmakefile: Add dll def file.
* Source/GNUmakefile.postamble: Rule to make dll def file.
* Source/GNUmakefile.preamble: Add libobjc depend for Windows targets.
* Headers/gnustep/gui/AppKitDefines.h: New file.
* Headers/gnustep/gui/*: Change extern to APPKIT_EXPORT.
* Headers/gnustep/gui/config.h.in: Regenerate using autoheader.
* Source/NSAffineTransform.m: Use pi consistantly.
* Source/NSBrowser.m: Define rint if we don't have it.
2001-07-30 Georg Fleischmann
* gui/Source/NSWindow.m

View file

@ -45,11 +45,11 @@ before-all:: header-links
# The following rule is important mainly for packaging, because in that case
# you install into a fake system tree, and the directory is not there.
#
$(INSTALL_ROOT_DIR)/$(GNUSTEP_MAKEFILES)/Additional:
$(MKDIRS) $(INSTALL_ROOT_DIR)/$(GNUSTEP_MAKEFILES)/Additional
$(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional:
$(MKDIRS) $(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional
# Things to do before installing
before-install:: $(INSTALL_ROOT_DIR)/$(GNUSTEP_MAKEFILES)/Additional
before-install:: $(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional
$(INSTALL_DATA) gui.make \
$(INSTALL_ROOT_DIR)/$(GNUSTEP_MAKEFILES)/Additional/gui.make
@ -77,9 +77,8 @@ after-clean::
# before-distclean::
# Things to do after distcleaning
after-distclean::
after-distclean:: remove-header-links
rm -f config.status config.log config.cache TAGS config.mak
cd Headers ; rm -rf AppKit ; rm -rf DPSClient
# Things to do before checking
# before-check::
@ -87,9 +86,28 @@ after-distclean::
# Things to do after checking
# after-check::
.PHONY: header-links remove-header-links
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
header-links: $(HEADER_LINK_DEPENDS)
-rm -rf Headers/AppKit
-rm -rf Headers/DPSClient
-mkdir Headers/AppKit
-mkdir Headers/DPSClient
cp -f Headers/gnustep/gui/*.h Headers/AppKit
cp -f Headers/gnustep/gui/*.h Headers/DPSClient
remove-header-links:
-rm -rf Headers/AppKit
-rm -rf Headers/DPSClient
else
header-links: $(HEADER_LINK_DEPENDS)
-rm -rf Headers/AppKit
-rm -rf Headers/DPSClient
$(LN_S) gnustep/gui Headers/AppKit
$(LN_S) gnustep/gui Headers/DPSClient
remove-header-links:
-rm -f Headers/AppKit
-rm -f Headers/DPSClient
endif

View file

@ -0,0 +1,38 @@
/* Plateform specific definitions for externs
Copyright (C) 2001 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@gnu.org>
Date: Jul, 2001
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 __AppKitDefines_INCLUDE
#define __AppKitDefines_INCLUDE
#if BUILD_libgnustep_gui_DLL
# define APPKIT_EXPORT __declspec(dllexport)
# define APPKIT_DECLARE __declspec(dllexport)
#elif libgnustep_gui_ISDLL
# define APPKIT_EXPORT extern __declspec(dllimport)
# define APPKIT_DECLARE __declspec(dllimport)
#else
# define APPKIT_EXPORT extern
# define APPKIT_DECLARE
#endif
#endif /* __AppKitDefines_INCLUDE */

View file

@ -25,43 +25,45 @@
#ifndef __AppKit_AppKitExceptions_h__
#define __AppKit_AppKitExceptions_h__
#include <AppKit/AppKitDefines.h>
@class NSString;
extern NSString *NSAbortModalException;
extern NSString *NSAbortPrintingException;
extern NSString *NSAppKitIgnoredException;
extern NSString *NSAppKitVirtualMemoryException;
extern NSString *NSBadBitmapParametersException;
extern NSString *NSBadComparisonException;
extern NSString *NSBadRTFColorTableException;
extern NSString *NSBadRTFDirectiveException;
extern NSString *NSBadRTFFontTableException;
extern NSString *NSBadRTFStyleSheetException;
extern NSString *NSBrowserIllegalDelegateException;
extern NSString *NSColorListIOException;
extern NSString *NSColorListNotEditableException;
extern NSString *NSDraggingException;
extern NSString *NSFontUnavailableException;
extern NSString *NSIllegalSelectorException;
extern NSString *NSImageCacheException;
extern NSString *NSNibLoadingException;
extern NSString *NSPPDIncludeNotFoundException;
extern NSString *NSPPDIncludeStackOverflowException;
extern NSString *NSPPDIncludeStackUnderflowException;
extern NSString *NSPPDParseException;
extern NSString *NSPasteboardCommunicationException;
extern NSString *NSPrintOperationExistsException;
extern NSString *NSPrintPackageException;
extern NSString *NSPrintingCommunicationException;
extern NSString *NSRTFPropertyStackOverflowException;
extern NSString *NSTIFFException;
extern NSString *NSTextLineTooLongException;
extern NSString *NSTextNoSelectionException;
extern NSString *NSTextReadException;
extern NSString *NSTextWriteException;
extern NSString *NSTypedStreamVersionException;
extern NSString *NSWindowServerCommunicationException;
extern NSString *NSWordTablesReadException;
extern NSString *NSWordTablesWriteException;
APPKIT_EXPORT NSString *NSAbortModalException;
APPKIT_EXPORT NSString *NSAbortPrintingException;
APPKIT_EXPORT NSString *NSAppKitIgnoredException;
APPKIT_EXPORT NSString *NSAppKitVirtualMemoryException;
APPKIT_EXPORT NSString *NSBadBitmapParametersException;
APPKIT_EXPORT NSString *NSBadComparisonException;
APPKIT_EXPORT NSString *NSBadRTFColorTableException;
APPKIT_EXPORT NSString *NSBadRTFDirectiveException;
APPKIT_EXPORT NSString *NSBadRTFFontTableException;
APPKIT_EXPORT NSString *NSBadRTFStyleSheetException;
APPKIT_EXPORT NSString *NSBrowserIllegalDelegateException;
APPKIT_EXPORT NSString *NSColorListIOException;
APPKIT_EXPORT NSString *NSColorListNotEditableException;
APPKIT_EXPORT NSString *NSDraggingException;
APPKIT_EXPORT NSString *NSFontUnavailableException;
APPKIT_EXPORT NSString *NSIllegalSelectorException;
APPKIT_EXPORT NSString *NSImageCacheException;
APPKIT_EXPORT NSString *NSNibLoadingException;
APPKIT_EXPORT NSString *NSPPDIncludeNotFoundException;
APPKIT_EXPORT NSString *NSPPDIncludeStackOverflowException;
APPKIT_EXPORT NSString *NSPPDIncludeStackUnderflowException;
APPKIT_EXPORT NSString *NSPPDParseException;
APPKIT_EXPORT NSString *NSPasteboardCommunicationException;
APPKIT_EXPORT NSString *NSPrintOperationExistsException;
APPKIT_EXPORT NSString *NSPrintPackageException;
APPKIT_EXPORT NSString *NSPrintingCommunicationException;
APPKIT_EXPORT NSString *NSRTFPropertyStackOverflowException;
APPKIT_EXPORT NSString *NSTIFFException;
APPKIT_EXPORT NSString *NSTextLineTooLongException;
APPKIT_EXPORT NSString *NSTextNoSelectionException;
APPKIT_EXPORT NSString *NSTextReadException;
APPKIT_EXPORT NSString *NSTextWriteException;
APPKIT_EXPORT NSString *NSTypedStreamVersionException;
APPKIT_EXPORT NSString *NSWindowServerCommunicationException;
APPKIT_EXPORT NSString *NSWordTablesReadException;
APPKIT_EXPORT NSString *NSWordTablesWriteException;
#endif /* __AppKit_AppKitExceptions_h__ */

View file

@ -56,8 +56,8 @@ enum {
NSRunContinuesResponse
};
extern NSString *NSModalPanelRunLoopMode;
extern NSString *NSEventTrackingRunLoopMode;
APPKIT_EXPORT NSString *NSModalPanelRunLoopMode;
APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
@interface NSApplication : NSResponder <NSCoding>
{
@ -284,10 +284,6 @@ extern NSString *NSEventTrackingRunLoopMode;
#endif
@end
/* Backend functions */
extern BOOL initialize_gnustep_backend (void);
#ifndef NO_GNUSTEP
/*
* A formal protocol that duplicates the informal protocol for delegates.
@ -325,62 +321,62 @@ extern BOOL initialize_gnustep_backend (void);
/*
* Notifications
*/
extern NSString *NSApplicationDidBecomeActiveNotification;
extern NSString *NSApplicationDidFinishLaunchingNotification;
extern NSString *NSApplicationDidHideNotification;
extern NSString *NSApplicationDidResignActiveNotification;
extern NSString *NSApplicationDidUnhideNotification;
extern NSString *NSApplicationDidUpdateNotification;
extern NSString *NSApplicationWillBecomeActiveNotification;
extern NSString *NSApplicationWillFinishLaunchingNotification;
extern NSString *NSApplicationWillHideNotification;
extern NSString *NSApplicationWillResignActiveNotification;
extern NSString *NSApplicationWillTerminateNotification;
extern NSString *NSApplicationWillUnhideNotification;
extern NSString *NSApplicationWillUpdateNotification;
APPKIT_EXPORT NSString *NSApplicationDidBecomeActiveNotification;
APPKIT_EXPORT NSString *NSApplicationDidFinishLaunchingNotification;
APPKIT_EXPORT NSString *NSApplicationDidHideNotification;
APPKIT_EXPORT NSString *NSApplicationDidResignActiveNotification;
APPKIT_EXPORT NSString *NSApplicationDidUnhideNotification;
APPKIT_EXPORT NSString *NSApplicationDidUpdateNotification;
APPKIT_EXPORT NSString *NSApplicationWillBecomeActiveNotification;
APPKIT_EXPORT NSString *NSApplicationWillFinishLaunchingNotification;
APPKIT_EXPORT NSString *NSApplicationWillHideNotification;
APPKIT_EXPORT NSString *NSApplicationWillResignActiveNotification;
APPKIT_EXPORT NSString *NSApplicationWillTerminateNotification;
APPKIT_EXPORT NSString *NSApplicationWillUnhideNotification;
APPKIT_EXPORT NSString *NSApplicationWillUpdateNotification;
/*
* Determine Whether an Item Is Included in Services Menus
*/
int
APPKIT_EXPORT int
NSSetShowsServicesMenuItem(NSString *item, BOOL showService);
BOOL
APPKIT_EXPORT BOOL
NSShowsServicesMenuItem(NSString *item);
/*
* Programmatically Invoke a Service
*/
BOOL
APPKIT_EXPORT BOOL
NSPerformService(NSString *item, NSPasteboard *pboard);
/*
* Force Services Menu to Update Based on New Services
*/
void
APPKIT_EXPORT void
NSUpdateDynamicServices(void);
/*
* Register object to handle services requests.
*/
void
APPKIT_EXPORT void
NSRegisterServicesProvider(id provider, NSString *name);
void
APPKIT_EXPORT void
NSUnRegisterServicesProvider(NSString *name);
int
APPKIT_EXPORT int
NSApplicationMain(int argc, const char **argv);
NSString*
APPKIT_EXPORT NSString*
NSOpenStepRootDirectory(void);
void
APPKIT_EXPORT void
NSShowSystemInfoPanel(NSDictionary *options);
/*
* The NSApp global variable.
*/
extern NSApplication *NSApp;
APPKIT_EXPORT NSApplication *NSApp;
#endif // _GNUstep_H_NSApplication

View file

@ -28,10 +28,11 @@
#ifndef _GNUstep_H_NSAttributedString
#define _GNUstep_H_NSAttributedString
#import <Foundation/Foundation.h>
#import <AppKit/NSFileWrapper.h>
#import <AppKit/NSFontManager.h>
#import <AppKit/NSText.h>
#include <Foundation/Foundation.h>
#include <AppKit/NSFileWrapper.h>
#include <AppKit/NSFontManager.h>
#include <AppKit/NSText.h>
#include <AppKit/AppKitDefines.h>
@class NSTextAttachment;
@ -39,17 +40,17 @@
// the respective property in a text attributes
// dictionary. if the key is not in the dictionary
// the default value is assumed
extern NSString *NSFontAttributeName;
extern NSString *NSParagraphStyleAttributeName;
extern NSString *NSForegroundColorAttributeName;
extern NSString *NSUnderlineStyleAttributeName;
extern NSString *NSSuperscriptAttributeName;
extern NSString *NSBackgroundColorAttributeName;
extern NSString *NSAttachmentAttributeName;
extern NSString *NSLigatureAttributeName;
extern NSString *NSBaselineOffsetAttributeName;
extern NSString *NSKernAttributeName;
extern NSString *NSLinkAttributeName;
APPKIT_EXPORT NSString *NSFontAttributeName;
APPKIT_EXPORT NSString *NSParagraphStyleAttributeName;
APPKIT_EXPORT NSString *NSForegroundColorAttributeName;
APPKIT_EXPORT NSString *NSUnderlineStyleAttributeName;
APPKIT_EXPORT NSString *NSSuperscriptAttributeName;
APPKIT_EXPORT NSString *NSBackgroundColorAttributeName;
APPKIT_EXPORT NSString *NSAttachmentAttributeName;
APPKIT_EXPORT NSString *NSLigatureAttributeName;
APPKIT_EXPORT NSString *NSBaselineOffsetAttributeName;
APPKIT_EXPORT NSString *NSKernAttributeName;
APPKIT_EXPORT NSString *NSLinkAttributeName;
// Currently supported values for NSUnderlineStyleAttributeName
enum

View file

@ -30,6 +30,7 @@
#define _GNUstep_H_NSColor
#include <Foundation/NSCoder.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSDictionary;
@ -225,7 +226,7 @@ typedef enum _NSControlTint {
@end
extern NSString *NSSystemColorsDidChangeNotification;
APPKIT_EXPORT NSString *NSSystemColorsDidChangeNotification;
#ifndef STRICT_MACOS_X
@interface NSCoder (NSCoderAdditions)

View file

@ -32,6 +32,7 @@
#define _GNUstep_H_NSColorList
#include <Foundation/NSCoder.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSArray;
@ -108,6 +109,6 @@
@end
/* Notifications */
extern NSString *NSColorListChangedNotification;
APPKIT_EXPORT NSString *NSColorListChangedNotification;
#endif // _GNUstep_H_NSColorList

View file

@ -128,6 +128,6 @@ enum {
@end
/* Notifications */
extern NSString *NSColorPanelColorChangedNotification;
APPKIT_EXPORT NSString *NSColorPanelColorChangedNotification;
#endif // _GNUstep_H_NSColorPanel

View file

@ -170,9 +170,9 @@
@end
extern NSString *NSControlTextDidBeginEditingNotification;
extern NSString *NSControlTextDidEndEditingNotification;
extern NSString *NSControlTextDidChangeNotification;
APPKIT_EXPORT NSString *NSControlTextDidBeginEditingNotification;
APPKIT_EXPORT NSString *NSControlTextDidEndEditingNotification;
APPKIT_EXPORT NSString *NSControlTextDidChangeNotification;
//
// Methods Implemented by the Delegate

View file

@ -30,6 +30,7 @@
#define _GNUstep_H_NSDataLink
#include <Foundation/NSCoder.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSArray;
@ -54,7 +55,7 @@ typedef enum _NSDataLinkUpdateMode {
NSUpdateNever
} NSDataLinkUpdateMode;
extern NSString *NSDataLinkFileNameExtension;
APPKIT_EXPORT NSString *NSDataLinkFileNameExtension;
@interface NSDataLink : NSObject <NSCoding>
{

View file

@ -33,6 +33,7 @@
#include <Foundation/NSCoder.h>
#include <Foundation/NSGeometry.h>
#include <Foundation/NSString.h>
#include <AppKit/AppKitDefines.h>
@class NSDictionary;
@ -57,7 +58,7 @@ typedef enum _NSMultibyteGlyphPacking {
NSFourByteGlyphPacking
} NSMultibyteGlyphPacking;
extern const float *NSFontIdentityMatrix;
APPKIT_EXPORT const float *NSFontIdentityMatrix;
@interface NSFont : NSObject <NSCoding, NSCopying>
{
@ -183,22 +184,22 @@ int NSConvertGlyphsToPackedGlyphs(NSGlyph *glBuf,
char *packedGlyphs);
#endif
extern NSString *NSAFMAscender;
extern NSString *NSAFMCapHeight;
extern NSString *NSAFMCharacterSet;
extern NSString *NSAFMDescender;
extern NSString *NSAFMEncodingScheme;
extern NSString *NSAFMFamilyName;
extern NSString *NSAFMFontName;
extern NSString *NSAFMFormatVersion;
extern NSString *NSAFMFullName;
extern NSString *NSAFMItalicAngle;
extern NSString *NSAFMMappingScheme;
extern NSString *NSAFMNotice;
extern NSString *NSAFMUnderlinePosition;
extern NSString *NSAFMUnderlineThickness;
extern NSString *NSAFMVersion;
extern NSString *NSAFMWeight;
extern NSString *NSAFMXHeight;
APPKIT_EXPORT NSString *NSAFMAscender;
APPKIT_EXPORT NSString *NSAFMCapHeight;
APPKIT_EXPORT NSString *NSAFMCharacterSet;
APPKIT_EXPORT NSString *NSAFMDescender;
APPKIT_EXPORT NSString *NSAFMEncodingScheme;
APPKIT_EXPORT NSString *NSAFMFamilyName;
APPKIT_EXPORT NSString *NSAFMFontName;
APPKIT_EXPORT NSString *NSAFMFormatVersion;
APPKIT_EXPORT NSString *NSAFMFullName;
APPKIT_EXPORT NSString *NSAFMItalicAngle;
APPKIT_EXPORT NSString *NSAFMMappingScheme;
APPKIT_EXPORT NSString *NSAFMNotice;
APPKIT_EXPORT NSString *NSAFMUnderlinePosition;
APPKIT_EXPORT NSString *NSAFMUnderlineThickness;
APPKIT_EXPORT NSString *NSAFMVersion;
APPKIT_EXPORT NSString *NSAFMWeight;
APPKIT_EXPORT NSString *NSAFMXHeight;
#endif // _GNUstep_H_NSFont

View file

@ -87,6 +87,6 @@
-(void) _setTitleWidthNeedsUpdate: (NSNotification*)notification;
@end
extern NSString *_NSFormCellDidChangeTitleWidthNotification;
APPKIT_EXPORT NSString *_NSFormCellDidChangeTitleWidthNotification;
#endif // _GNUstep_H_NSForm

View file

@ -77,6 +77,6 @@
@end
extern NSString *_NSFormCellDidChangeTitleWidthNotification;
APPKIT_EXPORT NSString *_NSFormCellDidChangeTitleWidthNotification;
#endif // _GNUstep_H_NSFormCell

View file

@ -29,8 +29,7 @@
#include <Foundation/NSGeometry.h>
#include <AppKit/NSGraphicsContext.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSColor;
@ -39,72 +38,72 @@
/*
* Colorspace Names
*/
extern NSString *NSCalibratedWhiteColorSpace;
extern NSString *NSCalibratedBlackColorSpace;
extern NSString *NSCalibratedRGBColorSpace;
extern NSString *NSDeviceWhiteColorSpace;
extern NSString *NSDeviceBlackColorSpace;
extern NSString *NSDeviceRGBColorSpace;
extern NSString *NSDeviceCMYKColorSpace;
extern NSString *NSNamedColorSpace;
extern NSString *NSCustomColorSpace;
APPKIT_EXPORT NSString *NSCalibratedWhiteColorSpace;
APPKIT_EXPORT NSString *NSCalibratedBlackColorSpace;
APPKIT_EXPORT NSString *NSCalibratedRGBColorSpace;
APPKIT_EXPORT NSString *NSDeviceWhiteColorSpace;
APPKIT_EXPORT NSString *NSDeviceBlackColorSpace;
APPKIT_EXPORT NSString *NSDeviceRGBColorSpace;
APPKIT_EXPORT NSString *NSDeviceCMYKColorSpace;
APPKIT_EXPORT NSString *NSNamedColorSpace;
APPKIT_EXPORT NSString *NSCustomColorSpace;
/*
* Color function externs
* Color function APPKIT_EXPORTs
*/
extern const NSWindowDepth _GSGrayBitValue;
extern const NSWindowDepth _GSRGBBitValue;
extern const NSWindowDepth _GSCMYKBitValue;
extern const NSWindowDepth _GSCustomBitValue;
extern const NSWindowDepth _GSNamedBitValue;
extern const NSWindowDepth *_GSWindowDepths[7];
extern const NSWindowDepth NSDefaultDepth;
extern const NSWindowDepth NSTwoBitGrayDepth;
extern const NSWindowDepth NSEightBitGrayDepth;
extern const NSWindowDepth NSEightBitRGBDepth;
extern const NSWindowDepth NSTwelveBitRGBDepth;
extern const NSWindowDepth GSSixteenBitRGBDepth;
extern const NSWindowDepth NSTwentyFourBitRGBDepth;
APPKIT_EXPORT const NSWindowDepth _GSGrayBitValue;
APPKIT_EXPORT const NSWindowDepth _GSRGBBitValue;
APPKIT_EXPORT const NSWindowDepth _GSCMYKBitValue;
APPKIT_EXPORT const NSWindowDepth _GSCustomBitValue;
APPKIT_EXPORT const NSWindowDepth _GSNamedBitValue;
APPKIT_EXPORT const NSWindowDepth *_GSWindowDepths[7];
APPKIT_EXPORT const NSWindowDepth NSDefaultDepth;
APPKIT_EXPORT const NSWindowDepth NSTwoBitGrayDepth;
APPKIT_EXPORT const NSWindowDepth NSEightBitGrayDepth;
APPKIT_EXPORT const NSWindowDepth NSEightBitRGBDepth;
APPKIT_EXPORT const NSWindowDepth NSTwelveBitRGBDepth;
APPKIT_EXPORT const NSWindowDepth GSSixteenBitRGBDepth;
APPKIT_EXPORT const NSWindowDepth NSTwentyFourBitRGBDepth;
/*
* Gray Values
*/
extern const float NSBlack;
extern const float NSDarkGray;
extern const float NSWhite;
extern const float NSLightGray;
extern const float NSGray;
APPKIT_EXPORT const float NSBlack;
APPKIT_EXPORT const float NSDarkGray;
APPKIT_EXPORT const float NSWhite;
APPKIT_EXPORT const float NSLightGray;
APPKIT_EXPORT const float NSGray;
/*
* Device Dictionary Keys
*/
extern NSString *NSDeviceResolution;
extern NSString *NSDeviceColorSpaceName;
extern NSString *NSDeviceBitsPerSample;
extern NSString *NSDeviceIsScreen;
extern NSString *NSDeviceIsPrinter;
extern NSString *NSDeviceSize;
APPKIT_EXPORT NSString *NSDeviceResolution;
APPKIT_EXPORT NSString *NSDeviceColorSpaceName;
APPKIT_EXPORT NSString *NSDeviceBitsPerSample;
APPKIT_EXPORT NSString *NSDeviceIsScreen;
APPKIT_EXPORT NSString *NSDeviceIsPrinter;
APPKIT_EXPORT NSString *NSDeviceSize;
/*
* Get Information About Color Space and Window Depth
*/
const NSWindowDepth *NSAvailableWindowDepths(void);
NSWindowDepth NSBestDepth(NSString *colorSpace,
APPKIT_EXPORT const NSWindowDepth *NSAvailableWindowDepths(void);
APPKIT_EXPORT NSWindowDepth NSBestDepth(NSString *colorSpace,
int bitsPerSample, int bitsPerPixel,
BOOL planar, BOOL *exactMatch);
int NSBitsPerPixelFromDepth(NSWindowDepth depth);
int NSBitsPerSampleFromDepth(NSWindowDepth depth);
NSString *NSColorSpaceFromDepth(NSWindowDepth depth);
int NSNumberOfColorComponents(NSString *colorSpaceName);
BOOL NSPlanarFromDepth(NSWindowDepth depth);
APPKIT_EXPORT int NSBitsPerPixelFromDepth(NSWindowDepth depth);
APPKIT_EXPORT int NSBitsPerSampleFromDepth(NSWindowDepth depth);
APPKIT_EXPORT NSString *NSColorSpaceFromDepth(NSWindowDepth depth);
APPKIT_EXPORT int NSNumberOfColorComponents(NSString *colorSpaceName);
APPKIT_EXPORT BOOL NSPlanarFromDepth(NSWindowDepth depth);
/*
* Functions for getting information about windows.
*/
void NSCountWindows(int *count);
void NSWindowList(int size, int list[]);
APPKIT_EXPORT void NSCountWindows(int *count);
APPKIT_EXPORT void NSWindowList(int size, int list[]);
static inline void
NSEraseRect(NSRect aRect)
@ -162,13 +161,13 @@ NSRectFillListWithGrays(const NSRect *rects,const float *grays,int count)
(ctxt, @selector(NSRectFillListWithGrays:::), rects, grays, count);
}
NSRect NSDrawTiledRects(NSRect aRect,const NSRect clipRect,
APPKIT_EXPORT NSRect NSDrawTiledRects(NSRect aRect,const NSRect clipRect,
const NSRectEdge * sides,
const float *grays, int count);
void NSDrawButton(const NSRect aRect, const NSRect clipRect);
void NSDrawGrayBezel(const NSRect aRect, const NSRect clipRect);
void NSDrawGroove(const NSRect aRect, const NSRect clipRect);
void NSDrawWhiteBezel(const NSRect aRect, const NSRect clipRect);
APPKIT_EXPORT void NSDrawButton(const NSRect aRect, const NSRect clipRect);
APPKIT_EXPORT void NSDrawGrayBezel(const NSRect aRect, const NSRect clipRect);
APPKIT_EXPORT void NSDrawGroove(const NSRect aRect, const NSRect clipRect);
APPKIT_EXPORT void NSDrawWhiteBezel(const NSRect aRect, const NSRect clipRect);
// This is from an old version of the specification
static inline void
@ -301,8 +300,8 @@ GSAvailableDepthsForScreen(NSGraphicsContext *ctxt, int screen_num)
@class NSArray;
@class NSWindow;
NSArray* GSAllWindows();
NSWindow* GSWindowWithNumber(int num);
APPKIT_EXPORT NSArray* GSAllWindows();
APPKIT_EXPORT NSWindow* GSWindowWithNumber(int num);
#endif
#ifndef STRICT_OPENSTEP

View file

@ -73,7 +73,7 @@
@end
// Notifications
extern NSString* NSContextHelpModeDidActivateNotification;
extern NSString* NSContextHelpModeDidDeactivateNotification;
APPKIT_EXPORT NSString* NSContextHelpModeDidActivateNotification;
APPKIT_EXPORT NSString* NSContextHelpModeDidDeactivateNotification;
#endif // GNUstep_H_NSHelpManager

View file

@ -31,6 +31,7 @@
#include <Foundation/NSCoder.h>
#include <Foundation/NSGeometry.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSArray;
@ -117,6 +118,6 @@ enum {
@end
extern NSString *NSImageRepRegistryChangedNotification;
APPKIT_EXPORT NSString *NSImageRepRegistryChangedNotification;
#endif // _GNUstep_H_NSImageRep

View file

@ -29,6 +29,8 @@
#ifndef _GNUstep_H_NSInterfaceStyle
#define _GNUstep_H_NSInterfaceStyle
#include <AppKit/AppKitDefines.h>
@class NSResponder;
@class NSString;
@ -46,12 +48,11 @@ typedef enum {
} NSInterfaceStyle;
extern NSString *NSInterfaceStyleDefault;
APPKIT_EXPORT NSString *NSInterfaceStyleDefault;
extern NSInterfaceStyle
APPKIT_EXPORT NSInterfaceStyle
NSInterfaceStyleForKey(NSString *key, NSResponder *responder);
#endif // _GNUstep_H_NSInterfaceStyle
#endif // STRICT_OPENSTEP

View file

@ -208,11 +208,11 @@
@end
extern NSString* const NSMenuDidSendActionNotification;
extern NSString* const NSMenuWillSendActionNotification;
extern NSString* const NSMenuDidAddItemNotification;
extern NSString* const NSMenuDidRemoveItemNotification;
extern NSString* const NSMenuDidChangeItemNotification;
APPKIT_EXPORT NSString* const NSMenuDidSendActionNotification;
APPKIT_EXPORT NSString* const NSMenuWillSendActionNotification;
APPKIT_EXPORT NSString* const NSMenuDidAddItemNotification;
APPKIT_EXPORT NSString* const NSMenuDidRemoveItemNotification;
APPKIT_EXPORT NSString* const NSMenuDidChangeItemNotification;
#endif // _GNUstep_H_NSMenu

View file

@ -31,6 +31,7 @@
#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSArray;
@ -40,39 +41,39 @@
//
// Pasteboard Type Globals
//
extern NSString *NSStringPboardType;
extern NSString *NSColorPboardType;
extern NSString *NSFileContentsPboardType;
extern NSString *NSFilenamesPboardType;
extern NSString *NSFontPboardType;
extern NSString *NSRulerPboardType;
extern NSString *NSPostScriptPboardType;
extern NSString *NSTabularTextPboardType;
extern NSString *NSRTFPboardType;
extern NSString *NSRTFDPboardType;
extern NSString *NSTIFFPboardType;
extern NSString *NSDataLinkPboardType;
extern NSString *NSGeneralPboardType;
APPKIT_EXPORT NSString *NSStringPboardType;
APPKIT_EXPORT NSString *NSColorPboardType;
APPKIT_EXPORT NSString *NSFileContentsPboardType;
APPKIT_EXPORT NSString *NSFilenamesPboardType;
APPKIT_EXPORT NSString *NSFontPboardType;
APPKIT_EXPORT NSString *NSRulerPboardType;
APPKIT_EXPORT NSString *NSPostScriptPboardType;
APPKIT_EXPORT NSString *NSTabularTextPboardType;
APPKIT_EXPORT NSString *NSRTFPboardType;
APPKIT_EXPORT NSString *NSRTFDPboardType;
APPKIT_EXPORT NSString *NSTIFFPboardType;
APPKIT_EXPORT NSString *NSDataLinkPboardType;
APPKIT_EXPORT NSString *NSGeneralPboardType;
#ifndef STRICT_OPENSTEP
extern NSString *NSPDFPboardType;
extern NSString *NSPICTPboardType;
extern NSString *NSURLPboardType;
APPKIT_EXPORT NSString *NSPDFPboardType;
APPKIT_EXPORT NSString *NSPICTPboardType;
APPKIT_EXPORT NSString *NSURLPboardType;
#endif
//
// Pasteboard Name Globals
//
extern NSString *NSDragPboard;
extern NSString *NSFindPboard;
extern NSString *NSFontPboard;
extern NSString *NSGeneralPboard;
extern NSString *NSRulerPboard;
APPKIT_EXPORT NSString *NSDragPboard;
APPKIT_EXPORT NSString *NSFindPboard;
APPKIT_EXPORT NSString *NSFontPboard;
APPKIT_EXPORT NSString *NSGeneralPboard;
APPKIT_EXPORT NSString *NSRulerPboard;
//
// Pasteboard Exceptions
//
extern NSString *NSPasteboardCommunicationException;
APPKIT_EXPORT NSString *NSPasteboardCommunicationException;
@interface NSPasteboard : NSObject
@ -164,10 +165,10 @@ provideDataForType:(NSString *)type
//
// Return File-related Pasteboard Types
//
NSString *NSCreateFileContentsPboardType(NSString *fileType);
NSString *NSCreateFilenamePboardType(NSString *filename);
NSString *NSGetFileType(NSString *pboardType);
NSArray *NSGetFileTypes(NSArray *pboardTypes);
APPKIT_EXPORT NSString *NSCreateFileContentsPboardType(NSString *fileType);
APPKIT_EXPORT NSString *NSCreateFilenamePboardType(NSString *filename);
APPKIT_EXPORT NSString *NSGetFileType(NSString *pboardType);
APPKIT_EXPORT NSArray *NSGetFileTypes(NSArray *pboardTypes);
#endif // _GNUstep_H_NSPasteboard

View file

@ -102,6 +102,6 @@
- (void) encodeWithCoder: (NSCoder*)aCoder;
@end
extern NSString *NSPopUpButtonWillPopUpNotification;
APPKIT_EXPORT NSString *NSPopUpButtonWillPopUpNotification;
#endif // _GNUstep_H_NSPopUpButton

View file

@ -128,6 +128,6 @@ typedef enum {
@end
/* Notifications */
extern NSString*NSPopUpButtonCellWillPopUpNotification;
APPKIT_EXPORT NSString*NSPopUpButtonCellWillPopUpNotification;
#endif // _GNUstep_H_NSPopUpButtonCell

View file

@ -31,6 +31,7 @@
#include <Foundation/NSCoder.h>
#include <Foundation/NSGeometry.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSDictionary;
@ -131,48 +132,48 @@ typedef enum _NSPrintingPaginationMode {
//
// Printing Information Dictionary Keys
//
extern NSString *NSPrintAllPages;
extern NSString *NSPrintBottomMargin;
extern NSString *NSPrintCopies;
extern NSString *NSPrintFaxCoverSheetName;
extern NSString *NSPrintFaxHighResolution;
extern NSString *NSPrintFaxModem;
extern NSString *NSPrintFaxReceiverNames;
extern NSString *NSPrintFaxReceiverNumbers;
extern NSString *NSPrintFaxReturnReceipt;
extern NSString *NSPrintFaxSendTime;
extern NSString *NSPrintFaxTrimPageEnds;
extern NSString *NSPrintFaxUseCoverSheet;
extern NSString *NSPrintFirstPage;
extern NSString *NSPrintHorizontalPagination;
extern NSString *NSPrintHorizontallyCentered;
extern NSString *NSPrintJobDisposition;
extern NSString *NSPrintJobFeatures;
extern NSString *NSPrintLastPage;
extern NSString *NSPrintLeftMargin;
extern NSString *NSPrintManualFeed;
extern NSString *NSPrintOrientation;
extern NSString *NSPrintPackageException;
extern NSString *NSPrintPagesPerSheet;
extern NSString *NSPrintPaperFeed;
extern NSString *NSPrintPaperName;
extern NSString *NSPrintPaperSize;
extern NSString *NSPrintPrinter;
extern NSString *NSPrintReversePageOrder;
extern NSString *NSPrintRightMargin;
extern NSString *NSPrintSavePath;
extern NSString *NSPrintScalingFactor;
extern NSString *NSPrintTopMargin;
extern NSString *NSPrintVerticalPagination;
extern NSString *NSPrintVerticallyCentered;
APPKIT_EXPORT NSString *NSPrintAllPages;
APPKIT_EXPORT NSString *NSPrintBottomMargin;
APPKIT_EXPORT NSString *NSPrintCopies;
APPKIT_EXPORT NSString *NSPrintFaxCoverSheetName;
APPKIT_EXPORT NSString *NSPrintFaxHighResolution;
APPKIT_EXPORT NSString *NSPrintFaxModem;
APPKIT_EXPORT NSString *NSPrintFaxReceiverNames;
APPKIT_EXPORT NSString *NSPrintFaxReceiverNumbers;
APPKIT_EXPORT NSString *NSPrintFaxReturnReceipt;
APPKIT_EXPORT NSString *NSPrintFaxSendTime;
APPKIT_EXPORT NSString *NSPrintFaxTrimPageEnds;
APPKIT_EXPORT NSString *NSPrintFaxUseCoverSheet;
APPKIT_EXPORT NSString *NSPrintFirstPage;
APPKIT_EXPORT NSString *NSPrintHorizontalPagination;
APPKIT_EXPORT NSString *NSPrintHorizontallyCentered;
APPKIT_EXPORT NSString *NSPrintJobDisposition;
APPKIT_EXPORT NSString *NSPrintJobFeatures;
APPKIT_EXPORT NSString *NSPrintLastPage;
APPKIT_EXPORT NSString *NSPrintLeftMargin;
APPKIT_EXPORT NSString *NSPrintManualFeed;
APPKIT_EXPORT NSString *NSPrintOrientation;
APPKIT_EXPORT NSString *NSPrintPackageException;
APPKIT_EXPORT NSString *NSPrintPagesPerSheet;
APPKIT_EXPORT NSString *NSPrintPaperFeed;
APPKIT_EXPORT NSString *NSPrintPaperName;
APPKIT_EXPORT NSString *NSPrintPaperSize;
APPKIT_EXPORT NSString *NSPrintPrinter;
APPKIT_EXPORT NSString *NSPrintReversePageOrder;
APPKIT_EXPORT NSString *NSPrintRightMargin;
APPKIT_EXPORT NSString *NSPrintSavePath;
APPKIT_EXPORT NSString *NSPrintScalingFactor;
APPKIT_EXPORT NSString *NSPrintTopMargin;
APPKIT_EXPORT NSString *NSPrintVerticalPagination;
APPKIT_EXPORT NSString *NSPrintVerticallyCentered;
//
// Print Job Disposition Values
//
extern NSString *NSPrintCancelJob;
extern NSString *NSPrintFaxJob;
extern NSString *NSPrintPreviewJob;
extern NSString *NSPrintSaveJob;
extern NSString *NSPrintSpoolJob;
APPKIT_EXPORT NSString *NSPrintCancelJob;
APPKIT_EXPORT NSString *NSPrintFaxJob;
APPKIT_EXPORT NSString *NSPrintPreviewJob;
APPKIT_EXPORT NSString *NSPrintSaveJob;
APPKIT_EXPORT NSString *NSPrintSpoolJob;
#endif // _GNUstep_H_NSPrintInfo

View file

@ -31,6 +31,7 @@
#include <Foundation/NSCoder.h>
#include <AppKit/NSInterfaceStyle.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSEvent;

View file

@ -88,7 +88,7 @@ constrainSplitPosition: (float)proposedPosition
@end
/* Notifications */
extern NSString *NSSplitViewDidResizeSubviewsNotification;
extern NSString *NSSplitViewWillResizeSubviewsNotification;
APPKIT_EXPORT NSString *NSSplitViewDidResizeSubviewsNotification;
APPKIT_EXPORT NSString *NSSplitViewWillResizeSubviewsNotification;
#endif

View file

@ -30,6 +30,8 @@
#ifndef _GNUstep_H_NSTableColumn
#define _GNUstep_H_NSTableColumn
#include <AppKit/AppKitDefines.h>
@class NSCell;
@class NSTableView;
@ -86,5 +88,5 @@
@end
/* Notifications */
extern NSString *NSTableViewColumnDidResizeNotification;
APPKIT_EXPORT NSString *NSTableViewColumnDidResizeNotification;
#endif

View file

@ -245,10 +245,10 @@ objectValueForTableColumn: (NSTableColumn *)aTableColumn
@end
extern NSString *NSTableViewColumnDidMoveNotification;
extern NSString *NSTableViewColumnDidResizeNotification;
extern NSString *NSTableViewSelectionDidChangeNotification;
extern NSString *NSTableViewSelectionIsChangingNotification;
APPKIT_EXPORT NSString *NSTableViewColumnDidMoveNotification;
APPKIT_EXPORT NSString *NSTableViewColumnDidResizeNotification;
APPKIT_EXPORT NSString *NSTableViewSelectionDidChangeNotification;
APPKIT_EXPORT NSString *NSTableViewSelectionIsChangingNotification;
/*
* Methods Implemented by the Delegate

View file

@ -294,9 +294,9 @@ enum {
@end
/* Notifications */
extern NSString *NSTextDidBeginEditingNotification;
extern NSString *NSTextDidEndEditingNotification;
extern NSString *NSTextDidChangeNotification;
APPKIT_EXPORT NSString *NSTextDidBeginEditingNotification;
APPKIT_EXPORT NSString *NSTextDidEndEditingNotification;
APPKIT_EXPORT NSString *NSTextDidChangeNotification;
@interface NSObject (NSTextDelegate)
- (BOOL) textShouldBeginEditing: (NSText*)textObject; /* YES means do it */

View file

@ -137,7 +137,7 @@ enum
/**** Notifications ****/
extern NSString *NSTextStorageWillProcessEditingNotification;
extern NSString *NSTextStorageDidProcessEditingNotification;
APPKIT_EXPORT NSString *NSTextStorageWillProcessEditingNotification;
APPKIT_EXPORT NSString *NSTextStorageDidProcessEditingNotification;
#endif

View file

@ -439,15 +439,15 @@ doCommandBySelector: (SEL)commandSelector;
- (NSUndoManager *) undoManagerForTextView: (NSTextView *)view;
@end
extern NSString *NSTextViewWillChangeNotifyingTextViewNotification;
APPKIT_EXPORT NSString *NSTextViewWillChangeNotifyingTextViewNotification;
// NSOldNotifyingTextView -> the old view, NSNewNotifyingTextView ->
// the new view. The text view delegate is not automatically
// registered to receive this notification because the text machinery
// will automatically switch over the delegate to observe the new
// first text view as the first text view changes.
extern NSString *NSTextViewDidChangeSelectionNotification;
extern NSString *NSOldSelectedCharacterRange;
APPKIT_EXPORT NSString *NSTextViewDidChangeSelectionNotification;
APPKIT_EXPORT NSString *NSOldSelectedCharacterRange;
#endif /* _GNUstep_H_NSTextView */

View file

@ -432,11 +432,11 @@ enum {
/*
* GNUstep specific function to determine the drag types registered for a view.
*/
extern NSArray *GSGetDragTypes(NSView* aView);
APPKIT_EXPORT NSArray *GSGetDragTypes(NSView* aView);
/* Notifications */
extern NSString *NSViewFrameDidChangeNotification;
extern NSString *NSViewBoundsDidChangeNotification;
extern NSString *NSViewFocusDidChangeNotification;
APPKIT_EXPORT NSString *NSViewFrameDidChangeNotification;
APPKIT_EXPORT NSString *NSViewBoundsDidChangeNotification;
APPKIT_EXPORT NSString *NSViewFocusDidChangeNotification;
#endif // _GNUstep_H_NSView

View file

@ -95,8 +95,8 @@ typedef enum _NSSelectionDirection {
} NSSelectionDirection;
#endif
extern NSSize NSIconSize;
extern NSSize NSTokenSize;
APPKIT_EXPORT NSSize NSIconSize;
APPKIT_EXPORT NSSize NSTokenSize;
@interface NSWindow : NSResponder <NSCoding>
{
@ -530,19 +530,19 @@ extern NSSize NSTokenSize;
#endif
/* Notifications */
extern NSString *NSWindowDidBecomeKeyNotification;
extern NSString *NSWindowDidBecomeMainNotification;
extern NSString *NSWindowDidChangeScreenNotification;
extern NSString *NSWindowDidDeminiaturizeNotification;
extern NSString *NSWindowDidExposeNotification;
extern NSString *NSWindowDidMiniaturizeNotification;
extern NSString *NSWindowDidMoveNotification;
extern NSString *NSWindowDidResignKeyNotification;
extern NSString *NSWindowDidResignMainNotification;
extern NSString *NSWindowDidResizeNotification;
extern NSString *NSWindowDidUpdateNotification;
extern NSString *NSWindowWillCloseNotification;
extern NSString *NSWindowWillMiniaturizeNotification;
extern NSString *NSWindowWillMoveNotification;
APPKIT_EXPORT NSString *NSWindowDidBecomeKeyNotification;
APPKIT_EXPORT NSString *NSWindowDidBecomeMainNotification;
APPKIT_EXPORT NSString *NSWindowDidChangeScreenNotification;
APPKIT_EXPORT NSString *NSWindowDidDeminiaturizeNotification;
APPKIT_EXPORT NSString *NSWindowDidExposeNotification;
APPKIT_EXPORT NSString *NSWindowDidMiniaturizeNotification;
APPKIT_EXPORT NSString *NSWindowDidMoveNotification;
APPKIT_EXPORT NSString *NSWindowDidResignKeyNotification;
APPKIT_EXPORT NSString *NSWindowDidResignMainNotification;
APPKIT_EXPORT NSString *NSWindowDidResizeNotification;
APPKIT_EXPORT NSString *NSWindowDidUpdateNotification;
APPKIT_EXPORT NSString *NSWindowWillCloseNotification;
APPKIT_EXPORT NSString *NSWindowWillMiniaturizeNotification;
APPKIT_EXPORT NSString *NSWindowWillMoveNotification;
#endif /* _GNUstep_H_NSWindow */

View file

@ -31,6 +31,7 @@
#include <Foundation/NSObject.h>
#include <Foundation/NSGeometry.h>
#include <AppKit/AppKitDefines.h>
@class NSString;
@class NSArray;
@ -168,36 +169,36 @@
#endif
/* Notifications */
extern NSString *NSWorkspaceDidLaunchApplicationNotification;
extern NSString *NSWorkspaceDidMountNotification;
extern NSString *NSWorkspaceDidPerformFileOperationNotification;
extern NSString *NSWorkspaceDidTerminateApplicationNotification;
extern NSString *NSWorkspaceDidUnmountNotification;
extern NSString *NSWorkspaceWillLaunchApplicationNotification;
extern NSString *NSWorkspaceWillPowerOffNotification;
extern NSString *NSWorkspaceWillUnmountNotification;
APPKIT_EXPORT NSString *NSWorkspaceDidLaunchApplicationNotification;
APPKIT_EXPORT NSString *NSWorkspaceDidMountNotification;
APPKIT_EXPORT NSString *NSWorkspaceDidPerformFileOperationNotification;
APPKIT_EXPORT NSString *NSWorkspaceDidTerminateApplicationNotification;
APPKIT_EXPORT NSString *NSWorkspaceDidUnmountNotification;
APPKIT_EXPORT NSString *NSWorkspaceWillLaunchApplicationNotification;
APPKIT_EXPORT NSString *NSWorkspaceWillPowerOffNotification;
APPKIT_EXPORT NSString *NSWorkspaceWillUnmountNotification;
//
// Workspace File Type Globals
//
extern NSString *NSPlainFileType;
extern NSString *NSDirectoryFileType;
extern NSString *NSApplicationFileType;
extern NSString *NSFilesystemFileType;
extern NSString *NSShellCommandFileType;
APPKIT_EXPORT NSString *NSPlainFileType;
APPKIT_EXPORT NSString *NSDirectoryFileType;
APPKIT_EXPORT NSString *NSApplicationFileType;
APPKIT_EXPORT NSString *NSFilesystemFileType;
APPKIT_EXPORT NSString *NSShellCommandFileType;
//
// Workspace File Operation Globals
//
extern NSString *NSWorkspaceCompressOperation;
extern NSString *NSWorkspaceCopyOperation;
extern NSString *NSWorkspaceDecompressOperation;
extern NSString *NSWorkspaceDecryptOperation;
extern NSString *NSWorkspaceDestroyOperation;
extern NSString *NSWorkspaceDuplicateOperation;
extern NSString *NSWorkspaceEncryptOperation;
extern NSString *NSWorkspaceLinkOperation;
extern NSString *NSWorkspaceMoveOperation;
extern NSString *NSWorkspaceRecycleOperation;
APPKIT_EXPORT NSString *NSWorkspaceCompressOperation;
APPKIT_EXPORT NSString *NSWorkspaceCopyOperation;
APPKIT_EXPORT NSString *NSWorkspaceDecompressOperation;
APPKIT_EXPORT NSString *NSWorkspaceDecryptOperation;
APPKIT_EXPORT NSString *NSWorkspaceDestroyOperation;
APPKIT_EXPORT NSString *NSWorkspaceDuplicateOperation;
APPKIT_EXPORT NSString *NSWorkspaceEncryptOperation;
APPKIT_EXPORT NSString *NSWorkspaceLinkOperation;
APPKIT_EXPORT NSString *NSWorkspaceMoveOperation;
APPKIT_EXPORT NSString *NSWorkspaceRecycleOperation;
#endif // _GNUstep_H_NSWorkspace

View file

@ -1,48 +1,10 @@
/*
config.h
/* Headers/gnustep/gui/config.h.in. Generated automatically from configure.in by autoheader. */
Copyright (C) 1996 Free Software Foundation, Inc.
Author: Scott Christley <scottc@net-community.com>
Author: Ovidiu Predescu <ovidiu@net-community.com>
Date: 1996
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_config
#define _GNUstep_H_config
#include <Foundation/NSGeometry.h>
/* Define NSDebugLog if not defined */
#include <Foundation/NSDebug.h>
#ifndef OBJC_MALLOC
# define OBJC_MALLOC(pointer, type, elements) \
(pointer = calloc (sizeof(type), elements))
#endif
#ifndef OBJC_FREE
# define OBJC_FREE(pointer) \
if (pointer) free(pointer)
#endif
/* Define if you have the rint function. */
#undef HAVE_RINT
/* Define if you have the rintf function. */
#undef HAVE_RINTF
#endif /* _GNUstep_H_config */
/* Define if you have the m library (-lm). */
#undef HAVE_LIBM

View file

@ -165,6 +165,7 @@ libgnustep-gui_HEADER_FILES_INSTALL_DIR = /AppKit
libgnustep-gui_HEADER_FILES = \
AppKit.h \
GSVersion.h \
AppKitDefines.h \
AppKitExceptions.h \
DPSOperators.h \
GMAppKit.h \
@ -290,6 +291,9 @@ NSWorkspace.h \
PSOperators.h \
nsimage-tiff.h
# Extra DLL exports file
libgnustep-gui_DLL_DEF = libgnustep-gui.def
include GNUmakefile.preamble
-include GNUmakefile.local

View file

@ -80,3 +80,18 @@ after-distclean::
Parsers/rtfGrammer.tab.c: Parsers/rtfGrammer.y
$(BISON) $(BISON_FLAGS) $<
#
# Make list of class names for DLL exports. I'm not sure how to make this
# work with the correct dependencies, so for now it should be regenerated
# by hand when new classes get added. Then mv libgnustep-gui.def.new to
# libgnustep-gui.def
#
libgnustep-gui.def.new: $(GNUSTEP_OBJ_DIR)/*o
rm -f $@
rm -f _tmp.def
cat win32-def.top > $@
nm $^ | grep '^........ [T] _' | sed 's/[^_]*_//' > _tmp.def
cat _tmp.def | grep "_class_name_" >> $@
rm -rf _tmp.def

View file

@ -88,3 +88,11 @@ ADDITIONAL_INCLUDE_DIRS += -I../Headers
# all the libraries the target library depends upon.
LIBRARIES_DEPEND_UPON = -l$(FOUNDATION_LIBRARY_NAME) $(ADDITIONAL_DEPENDS)
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
libgnustep-gui_LIBRARIES_DEPEND_UPON += -lobjc
endif
ifeq ($(GNUSTEP_TARGET_OS),cygwin)
libgnustep-gui_LIBRARIES_DEPEND_UPON += -lobjc
endif

View file

@ -429,7 +429,7 @@ static NSAffineTransformStruct identityTransform = {
if (rotationAngle < 0)
{
rotationAngle = atan2(matrix.m21, matrix.m11);
rotationAngle *= 180.0 / M_PI;
rotationAngle *= 180.0 / pi;
}
return rotationAngle;
}

View file

@ -34,6 +34,7 @@
#include <Foundation/NSException.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSData.h>
#include <Foundation/NSDebug.h>
#include <AppKit/NSGraphics.h>
#include <AppKit/NSView.h>
#include <AppKit/NSPasteboard.h>

View file

@ -57,6 +57,13 @@ static float scrollerWidth; // == [NSScroller scrollerWidth]
#ifndef HAVE_RINTF
#define rintf rint
#endif
#ifndef HAVE_RINT
static double rint(double a)
{
return (floor(a+0.5));
}
#endif
#define NSBR_COLUMN_SEP 6
#define NSBR_VOFFSET 2

View file

@ -34,6 +34,7 @@
#include <Foundation/NSNotification.h>
#include <Foundation/NSUserDefaults.h>
#include <Foundation/NSBundle.h>
#include <Foundation/NSDebug.h>
#include <AppKit/NSColor.h>
#include <AppKit/NSColorList.h>

View file

@ -39,6 +39,7 @@
#include <Foundation/NSThread.h>
#include <Foundation/NSValue.h>
#include <Foundation/NSException.h>
#include <Foundation/NSDebug.h>
#include <AppKit/NSEvent.h>
#include <AppKit/NSApplication.h>

View file

@ -39,7 +39,7 @@
#include <Foundation/NSException.h>
#include <Foundation/NSFileManager.h>
#include <Foundation/NSArchiver.h>
#include <Foundation/NSDebug.h>
@implementation NSFileWrapper

View file

@ -41,6 +41,7 @@
#include <Foundation/NSDictionary.h>
#include <Foundation/NSBundle.h>
#include <Foundation/NSString.h>
#include <Foundation/NSDebug.h>
#include <AppKit/NSImage.h>
#include <AppKit/AppKitExceptions.h>

View file

@ -35,6 +35,7 @@
#include <Foundation/NSException.h>
#include <Foundation/NSNotification.h>
#include <Foundation/NSUserDefaults.h>
#include <Foundation/NSDebug.h>
#include <AppKit/NSImageRep.h>
#include <AppKit/NSBitmapImageRep.h>
#include <AppKit/NSEPSImageRep.h>

View file

@ -42,6 +42,8 @@
#include <AppKit/NSPrintInfo.h>
#include <AppKit/NSPrintOperation.h>
#include <gnustep/base/GSLocale.h>
@interface NSGraphicsContext (Printing)
+ (NSGraphicsContext*) postscriptContextWithInfo: (NSDictionary*)info;

View file

@ -45,6 +45,7 @@
#include <Foundation/NSNotificationQueue.h>
#include <Foundation/NSDistributedNotificationCenter.h>
#include <Foundation/NSConnection.h>
#include <Foundation/NSDebug.h>
#define stringify_it(X) #X
#define mkpath(X) stringify_it(X) "/Tools"

View file

@ -378,6 +378,7 @@ readNSString (StringContext *ctxt)
@end
#undef IGNORE
#define FONTS ((RTFConsumer *)ctxt)->fonts
#define COLOURS ((RTFConsumer *)ctxt)->colours
#define RESULT ((RTFConsumer *)ctxt)->result

View file

@ -30,97 +30,155 @@
;
LIBRARY libgnustep-gui
EXPORTS
NSApplicationMain
__objc_class_name_GSComboWindow
__objc_class_name_GSFontEnumerator
__objc_class_name_GSFontInfo
__objc_class_name_GSHbox
__objc_class_name_GSHelpManagerPanel
__objc_class_name_GSInfoPanel
__objc_class_name__GSLabelListView
__objc_class_name_GSListener
__objc_class_name_GSServicesManager
__objc_class_name_GSSimpleLayoutManager
__objc_class_name__GNULineLayoutInfo
__objc_class_name_GSTable
__objc_class_name_GSTransparentView
__objc_class_name_GSTextInfo
__objc_class_name_GSTextStorage
__objc_class_name_GSTrackingRect
__objc_class_name_GSVbox
__objc_class_name_NSActionCell
__objc_category_name_NSApplication_GNUstepBackend
__objc_class_name_NSAffineTransform
__objc_class_name_NSAppIconView
__objc_class_name_NSApplication
__objc_class_name_NSIconWindow
__objc_class_name_GSBezierPath
__objc_class_name_NSBezierPath
__objc_class_name_NSBitmapImageRep
__objc_class_name_NSBox
__objc_class_name_GSBrowserTitleCell
__objc_class_name_NSBrowser
__objc_class_name_NSBrowserColumn
__objc_class_name_NSBrowserCell
__objc_category_name_NSBundle_NSBundleAdditions
__objc_class_name___dummy_class_in_NSBundle
__objc_class_name_GSNibContainer
__objc_class_name_GSNibItem
__objc_class_name_NSNibConnector
__objc_class_name_NSNibControlConnector
__objc_class_name_NSNibOutletConnector
__objc_class_name_NSButton
__objc_class_name_NSButtonCell
__objc_class_name_NSCStringText
__objc_class_name_GSCacheW
__objc_class_name_NSCachedImageRep
__objc_class_name_NSCell
__objc_class_name_NSClipView
NSBlack
NSDarkGray
NSGray
NSLightGray
NSWhite
__objc_category_name_NSCoder_NSCoderAdditions
__objc_category_name_NSColor_GNUstepPrivate
__objc_class_name_GSCalibratedRGBColor
__objc_class_name_GSCalibratedWhiteColor
__objc_class_name_GSDeviceCMYKColor
__objc_class_name_GSDeviceRGBColor
__objc_class_name_GSDeviceWhiteColor
__objc_class_name_GSNamedColor
__objc_class_name_GSPatternColor
__objc_class_name_GSRGBColor
__objc_class_name_GSWhiteColor
__objc_class_name_NSColor
__objc_category_name_NSColorList_GNUstepPrivate
__objc_class_name_NSColorList
__objc_class_name_NSColorPanel
__objc_class_name_NSColorPicker
__objc_category_name_NSColorWell_GNUstepBackend
__objc_class_name_NSColorWell
__objc_class_name_NSComboBox
__objc_class_name_NSComboBoxCell
__objc_class_name_NSControl
__objc_category_name_NSCursor_GNUstepBackend
__objc_class_name_NSCursor
__objc_class_name_NSCustomImageRep
__objc_class_name_NSDataLink
__objc_class_name_NSDataLinkManager
__objc_class_name_NSDataLinkPanel
__objc_class_name_NSDPSContext
__objc_class_name_NSDocument
__objc_class_name_NSDocumentController
__objc_class_name_NSEPSImageRep
__objc_class_name_NSEvent
getNSFont
setNSFont
__objc_class_name_NSFileWrapper
__objc_class_name_NSFont
__objc_category_name_NSFontManager_GNUstepBackend
__objc_class_name_NSFontManager
__objc_class_name_NSFontPanel
__objc_class_name_NSForm
__objc_class_name_NSFormCell
__objc_class_name_NSGraphicsContext
__objc_class_name_NSHelpManager
__objc_class_name_NSHelpPanel
__objc_class_name_GSRepData
__objc_class_name_NSImage
iterate_reps_for_types
repd_for_rep
set_repd_for_rep
__objc_class_name_NSImageCell
__objc_class_name_NSImageRep
__objc_category_name_NSMatrix_PrivateMethods
__objc_class_name_NSImageView
__objc_class_name_GSInterfaceStyle
__objc_class_name_GSGlyphLocation
__objc_class_name_GSLineLayoutInfo
__objc_class_name_GSRunStorage
__objc_class_name_GSTextContainerLayoutInfo
__objc_class_name_NSLayoutManager
__objc_class_name__GSRunSearchKey
__objc_class_name_NSMatrix
__objc_category_name_NSMenu_PrivateMethods2
__objc_class_name_NSMenu
__objc_class_name_NSMenuMatrix
__objc_class_name_NSMenuWindow
__objc_class_name_NSMenuWindowTitleView
__objc_class_name_NSMenuItem
__objc_class_name_NSMenuItemCell
__objc_class_name_NSMenuView
__objc_class_name_NSOpenPanel
__objc_class_name_NSPageLayout
__objc_class_name_GSAlertPanel
__objc_class_name_NSPanel
__objc_class_name_NSMutableParagraphStyle
__objc_class_name_NSParagraphStyle
__objc_class_name_NSTextTab
__objc_class_name_NSPasteboard
__objc_class_name_NSPrinter
__objc_class_name_NSPopUpButton
__objc_class_name_NSPopUpButtonCell
__objc_class_name_NSPrintInfo
__objc_class_name_GSEPSPrintOperation
__objc_class_name_GSPDFPrintOperation
__objc_class_name_GSPrintOperation
__objc_class_name_NSPrintOperation
__objc_class_name_NSPrintPanel
__objc_class_name_NSPopUpButton
__objc_class_name_NSPrinter
__objc_class_name_NSProgressIndicator
__objc_class_name_NSResponder
__objc_class_name_NSSavePanel
__objc_class_name_NSScreen
__objc_class_name_NSScroller
__objc_class_name_NSScrollView
__objc_class_name_NSScroller
__objc_class_name_GSSimpleSecureLayoutManager
__objc_class_name_NSSecureTextField
__objc_class_name_NSSecureTextFieldCell
__objc_class_name_NSSecureTextView
__objc_class_name_NSSelection
__objc_class_name_NSSlider
__objc_class_name_NSSliderCell
__objc_class_name_NSSpellChecker
__objc_class_name_NSSpellServer
__objc_class_name_NSSplitView
__objc_class_name_NSTabView
__objc_class_name_NSTabViewItem
__objc_class_name_NSTableColumn
__objc_class_name_NSTableHeaderCell
__objc_class_name_NSTableHeaderView
__objc_class_name_GSTableCornerView
__objc_class_name_NSTableView
__objc_class_name_NSText
__objc_class_name_NSTextAttachment
__objc_class_name_NSTextAttachmentCell
__objc_class_name_NSTextContainer
__objc_class_name_NSTextField
__objc_class_name_NSTextFieldCell
__objc_class_name_NSTextStorage
__objc_class_name_NSTextView
__objc_class_name_NSView
__objc_category_name_NSWindow_GNUstepBackend
__objc_class_name_GSWindowView
__objc_class_name_NSMiniWindow
__objc_class_name_NSMiniWindowView
__objc_class_name_NSWindow
__objc_class_name_NSWindowController
__objc_class_name_NSWorkspace
__objc_class_name_GSTrackingRect
NSTiffClose
NSTiffGetColormap
NSTiffGetInfo
NSTiffOpenData
NSTiffRead
NSTiffWrite
__objc_class_name__GSWorkspaceCenter

2
configure vendored
View file

@ -993,7 +993,7 @@ else
echo "$ac_t""no" 1>&6
fi
for ac_func in rintf
for ac_func in rint rintf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1000: checking for $ac_func" >&5

View file

@ -39,7 +39,7 @@ AC_PROG_CPP
AC_CANONICAL_SYSTEM
AC_CHECK_LIB(m, main)
AC_CHECK_FUNCS(rintf)
AC_CHECK_FUNCS(rint rintf)
#--------------------------------------------------------------------
# Find for JPEG