mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:10:36 +00:00
Markup for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
86eca68043
commit
c51f4265da
289 changed files with 33853 additions and 23024 deletions
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
GSHbox.m
|
||||
/** <title>GSHbox</title>
|
||||
|
||||
The GSHbox class (a GNU extension)
|
||||
<abstract>The GSHbox class (a GNU extension)</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
GSHelpManagerPanel.m
|
||||
/** <title>GSHelpManagerPanel.m</title>
|
||||
|
||||
GSHelpManagerPanel displays a help message for an item.
|
||||
<abstract>GSHelpManagerPanel displays a help message for an item.</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
GSInfoPanel.m
|
||||
/** <title>GSInfoPanel.m</title>
|
||||
|
||||
Standard GNUstep info panel
|
||||
<abstract>Standard GNUstep info panel</abstract>
|
||||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
GSTable.m
|
||||
/** <titlt>GSTable.m</title>
|
||||
|
||||
The GSTable class (a GNU extension)
|
||||
<abstract>The GSTable class (a GNU extension)</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
GSVbox.m
|
||||
/** <title>GSVbox</title>
|
||||
|
||||
The GSVbox class (a GNU extension)
|
||||
<abstract>The GSVbox class (a GNU extension)</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSActionCell.m
|
||||
/** <title>NSActionCell</title>
|
||||
|
||||
Abstract cell for target/action paradigm
|
||||
<abstract>Abstract cell for target/action paradigm</abstract>
|
||||
|
||||
Copyright (C) 1996-1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
/*
|
||||
NSAffineTransform.m
|
||||
/** <title>NSAffineTransform.m</title>
|
||||
|
||||
Copyright (C) 1996,1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: August 1997
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: Mark 1999
|
||||
Date: March 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSApplication.m
|
||||
/** <title>NSApplication</title>
|
||||
|
||||
The one and only application class
|
||||
<abstract>The one and only application class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996,1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
@ -1261,7 +1260,7 @@ static NSCell* tileCell = nil;
|
|||
}
|
||||
}
|
||||
|
||||
- (NSEvent*) currentEvent;
|
||||
- (NSEvent*) currentEvent
|
||||
{
|
||||
return _current_event;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSAttributedString.m
|
||||
/** <title>NSAttributedStringAdditions</title>
|
||||
|
||||
Categories which add capabilities to NSAttributedString
|
||||
<abstract>Categories which add capabilities to NSAttributedString</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSBezierPath.m
|
||||
/** <title>NSBezierPath.m</title>
|
||||
|
||||
The NSBezierPath class
|
||||
<abstract>The NSBezierPath class</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSBitmapImageRep.m
|
||||
/** <title>NSBitmapImageRep.m</title>
|
||||
|
||||
Bitmap image representation.
|
||||
<abstract>Bitmap image representation.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Adam Fedor <fedor@colorado.edu>
|
||||
Author: Adam Fedor <fedor@gnu.org>
|
||||
Date: Feb 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
@ -192,7 +191,7 @@
|
|||
isPlanar: (BOOL)isPlanar
|
||||
colorSpaceName: (NSString *)colorSpaceName
|
||||
bytesPerRow: (int)rowBytes
|
||||
bitsPerPixel: (int)pixelBits;
|
||||
bitsPerPixel: (int)pixelBits
|
||||
{
|
||||
if (!bps || !spp || !width || !height)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSBox.m
|
||||
/** <title>NSBox</title>
|
||||
|
||||
Simple box view that can display a border and title
|
||||
<abstract>Simple box view that can display a border and title</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSBrowser.m
|
||||
/** <title>NSBrowser</title>
|
||||
|
||||
Control to display and select from hierarchal lists
|
||||
<abstract>Control to display and select from hierarchal lists</abstract>
|
||||
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
/*
|
||||
NSBrowserCell.m
|
||||
/** <title>NSBrowserCell</title>
|
||||
|
||||
Cell class for the NSBrowser
|
||||
<abstract>Cell class for the NSBrowser</abstract>
|
||||
|
||||
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: December 1999
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSBundle.m
|
||||
/** <title>NSBundleAdditions</title>
|
||||
|
||||
Implementation of NSBundle Additions
|
||||
<abstract>Implementation of NSBundle Additions</abstract>
|
||||
|
||||
Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSButton.m
|
||||
/** <title>NSButton</title>
|
||||
|
||||
The button class
|
||||
<abstract>The button class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
/*
|
||||
NSButtonCell.m
|
||||
/** <title>NSButtonCell</title>
|
||||
|
||||
The button cell class
|
||||
<abstract>The button cell class</abstract>
|
||||
|
||||
Copyright (C) 1996-1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: 1996
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: August 1998
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSCachedImageRep.m
|
||||
/** <title>NSCachedImageRep</title>
|
||||
|
||||
Cached image representation.
|
||||
<abstract>Cached image representation.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Adam Fedor <fedor@colorado.edu>
|
||||
Author: Adam Fedor <fedor@gnu.org>
|
||||
Date: Feb 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSCell.m
|
||||
/** <title>NSCell</title>
|
||||
|
||||
The abstract cell class
|
||||
<abstract>The abstract cell class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSClipView.m
|
||||
/** <title>NSClipView</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSColor.m
|
||||
/** <title>NSColor</title>
|
||||
|
||||
The colorful color class
|
||||
<abstract>The colorful color class</abstract>
|
||||
|
||||
Copyright (C) 1996, 1998 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
@ -495,7 +494,7 @@ systemColorWithName(NSString *name)
|
|||
alpha: 1.0];
|
||||
}
|
||||
|
||||
+ (NSColor*) orangeColor;
|
||||
+ (NSColor*) orangeColor
|
||||
{
|
||||
return [self colorWithCalibratedRed: 1.0
|
||||
green: 0.5
|
||||
|
@ -503,7 +502,7 @@ systemColorWithName(NSString *name)
|
|||
alpha: 1.0];
|
||||
}
|
||||
|
||||
+ (NSColor*) purpleColor;
|
||||
+ (NSColor*) purpleColor
|
||||
{
|
||||
return [self colorWithCalibratedRed: 0.5
|
||||
green: 0.0
|
||||
|
@ -511,7 +510,7 @@ systemColorWithName(NSString *name)
|
|||
alpha: 1.0];
|
||||
}
|
||||
|
||||
+ (NSColor*) redColor;
|
||||
+ (NSColor*) redColor
|
||||
{
|
||||
return [self colorWithCalibratedRed: 1.0
|
||||
green: 0.0
|
||||
|
@ -519,7 +518,7 @@ systemColorWithName(NSString *name)
|
|||
alpha: 1.0];
|
||||
}
|
||||
|
||||
+ (NSColor*) whiteColor;
|
||||
+ (NSColor*) whiteColor
|
||||
{
|
||||
return [self colorWithCalibratedWhite: NSWhite alpha: 1.0];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSColorList.m
|
||||
/** <title>NSColorList</title>
|
||||
|
||||
Manage named lists of NSColors.
|
||||
<abstract>Manage named lists of NSColors.</abstract>
|
||||
|
||||
Copyright (C) 1996, 2000 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSColorPanel.m
|
||||
/** <title>NSColorPanel</title>
|
||||
|
||||
System generic color panel
|
||||
<abstract>System generic color panel</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/*
|
||||
NSColorPicker.m
|
||||
/** <title>NSColorPicker</title>
|
||||
|
||||
Abstract superclass for NSColorPanel color pickers
|
||||
<abstract>Abstract superclass for NSColorPanel color pickers</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Jonathan Gapen <jagapen@whitewater.chem.wisc.edu>
|
||||
Author: Jonathan Gapen <jagapen@whitewater.chem.wisc.edu>
|
||||
Date: March 2000
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/*
|
||||
NSColorWell.m
|
||||
/** <title>NSColorWell</title>
|
||||
|
||||
NSControl for selecting and display a single color value.
|
||||
<abstract>Control for selecting and display a single color value.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: May 1998
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSComboBox.m
|
||||
/** <title>NSComboBox</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Gerrit van Dyk <gerritvd@decillion.net>
|
||||
Author: Gerrit van Dyk <gerritvd@decillion.net>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSComboBoxCell.m
|
||||
/** <title>NSComboBoxCell</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/*
|
||||
NSControl.m
|
||||
/** <title>NSControl</title>
|
||||
|
||||
The abstract control class
|
||||
<abstract>The abstract control class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: August 1998
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
/*
|
||||
NSCursor.m
|
||||
/** <title>NSCursor</title>
|
||||
|
||||
Holds an image to use as a cursor
|
||||
<abstract>Holds an image to use as a cursor</abstract>
|
||||
|
||||
Copyright (C) 1996,1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996,1999,2001 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Adam Fedor <fedor@gnu.org>
|
||||
Date: Dec 2001
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
@ -215,11 +216,11 @@ static NSMutableDictionary *cursorDict = nil;
|
|||
hotSpot: NSMakePoint(0,15)];
|
||||
}
|
||||
|
||||
- (id) initWithImage: (NSImage *)newImage hotSpot: (NSPoint)spot
|
||||
- (id) initWithImage: (NSImage *)newImage hotSpot: (NSPoint)hotSpot
|
||||
{
|
||||
//_is_set_on_mouse_entered = NO;
|
||||
//_is_set_on_mouse_exited = NO;
|
||||
_hot_spot = spot;
|
||||
_hot_spot = hotSpot;
|
||||
[self setImage: newImage];
|
||||
|
||||
return self;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSCustomImageRep.m
|
||||
/** <title>NSCustomImageRep</title>
|
||||
|
||||
Custom image representation.
|
||||
<abstract>Custom image representation.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
/*
|
||||
NSDataLink.m
|
||||
|
||||
Description...
|
||||
/** <title>NSDataLink</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
/*
|
||||
NSDataLinkManager.m
|
||||
|
||||
Description...
|
||||
/** <title>NSDataLinkManager</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
/*
|
||||
NSDataLinkPanel.m
|
||||
|
||||
Description...
|
||||
/** <title>NSDataLinkPanel</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSDocument.m
|
||||
/** <title>NSDocument</title>
|
||||
|
||||
The abstract document class
|
||||
<abstract>The abstract document class</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSDocumentController.m
|
||||
/** <title>NSDocumentController</title>
|
||||
|
||||
The document controller class
|
||||
<abstract>The document controller class</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -426,7 +425,7 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
|
|||
}
|
||||
|
||||
- (BOOL) application:(NSApplication *)sender
|
||||
openTempFile: (NSString *)filename;
|
||||
openTempFile: (NSString *)filename
|
||||
{
|
||||
return [self openDocumentWithContentsOfFile:filename display:YES] ? YES : NO;
|
||||
}
|
||||
|
@ -462,7 +461,7 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
|
|||
return _documents;
|
||||
}
|
||||
|
||||
- (BOOL) hasEditedDocuments;
|
||||
- (BOOL) hasEditedDocuments
|
||||
{
|
||||
int i, count = [_documents count];
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSDrawer.m
|
||||
/** <title>NSDrawer</title>
|
||||
|
||||
The drawer class
|
||||
<abstract>The drawer class</abstract>
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Date: 2001
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSEPSImageRep.m
|
||||
/** <title>NSEPSImageRep</title>
|
||||
|
||||
EPS image representation.
|
||||
<abstract>EPS image representation.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
/*
|
||||
NSEvent.m
|
||||
/** <title>NSEvent</title>
|
||||
|
||||
The event class
|
||||
<abstract>The event class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: 1996
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: Sept 1998
|
||||
Updated: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Updated: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: June 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/*
|
||||
NSFileWrapper.m
|
||||
/** <title>NSFileWrapper</title>
|
||||
|
||||
NSFileWrapper objects hold a file's contents in dynamic memory.
|
||||
<abstract>Hold a file's contents in dynamic memory.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: Sept 1998
|
||||
Author: Jonathan Gapen <jagapen@whitewater.chem.wisc.edu>
|
||||
Author: Jonathan Gapen <jagapen@whitewater.chem.wisc.edu>
|
||||
Date: Dec 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
@ -265,7 +264,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (NSString*) preferredFilename;
|
||||
- (NSString*) preferredFilename
|
||||
{
|
||||
return _preferredFilename;
|
||||
}
|
||||
|
@ -326,7 +325,7 @@
|
|||
ASSIGN(_iconImage, icon);
|
||||
}
|
||||
|
||||
- (NSImage*) icon;
|
||||
- (NSImage*) icon
|
||||
{
|
||||
if (_iconImage == nil)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSFont.m
|
||||
/** <title>NSFont</title>
|
||||
|
||||
The font class
|
||||
<abstract>The font class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
/*
|
||||
NSFontManager.m
|
||||
/** <title>NSFontManager</title>
|
||||
|
||||
Manages system and user fonts
|
||||
<abstract>Manages system and user fonts</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Modified: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Date: January 2000
|
||||
Almost complete rewrite.
|
||||
|
||||
|
@ -798,7 +795,7 @@ static Class fontPanelClass = Nil;
|
|||
}
|
||||
|
||||
- (BOOL) fontNamed: (NSString*)typeface
|
||||
hasTraits: (NSFontTraitMask)fontTraitMask;
|
||||
hasTraits: (NSFontTraitMask)fontTraitMask
|
||||
{
|
||||
// TODO: This method is implemented very slow, but I dont
|
||||
// see any use for it, so why change it?
|
||||
|
|
|
@ -1,18 +1,12 @@
|
|||
/*
|
||||
NSFontPanel.m
|
||||
/** <title>NSFontPanel</title>
|
||||
|
||||
System generic panel for selecting and previewing fonts
|
||||
<abstract>System generic panel for selecting and previewing fonts</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
Modified: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Date: Febuary 2000
|
||||
Almost complete rewrite.
|
||||
|
||||
Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: January 2001 - sizings and resizings
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSForm.m
|
||||
/** <title>NSForm</title>
|
||||
|
||||
Form class, a matrix of text fields with labels
|
||||
<abstract>Form class, a matrix of text fields with labels</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSFormCell.m
|
||||
/** <title>NSFormCell</title>
|
||||
|
||||
The cell class for the NSForm control
|
||||
<abstract>The cell class for the NSForm control</abstract>
|
||||
|
||||
Copyright (C) 1996, 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
/* NSGraphicsContext - GNUstep drawing context class.
|
||||
/** <title>NSGraphicsContext</title>
|
||||
|
||||
<abstract>GNUstep drawing context class.</abstract>
|
||||
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Adam Fedor <fedor@gnu.org>
|
||||
Written by: Adam Fedor <fedor@gnu.org>
|
||||
Date: Nov 1998
|
||||
Updated by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Updated by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: Feb 1999
|
||||
|
||||
This file is part of the GNUStep GUI Library.
|
||||
|
@ -137,7 +139,7 @@ NSGraphicsContext *GSCurrentContext()
|
|||
return [GSCurrentContext() isDrawingToScreen];
|
||||
}
|
||||
|
||||
+ defaultContextWithInfo: (NSDictionary *)info;
|
||||
+ defaultContextWithInfo: (NSDictionary *)info
|
||||
{
|
||||
return [self graphicsContextWithAttributes: info];
|
||||
}
|
||||
|
@ -192,7 +194,7 @@ NSGraphicsContext *GSCurrentContext()
|
|||
|
||||
/* Just remove ourselves from the context list so we will be dealloced on
|
||||
the next autorelease pool end */
|
||||
- (void) destroyContext;
|
||||
- (void) destroyContext
|
||||
{
|
||||
[contextLock lock];
|
||||
[contextList removeObject: self];
|
||||
|
@ -1936,77 +1938,77 @@ NSGraphicsContext *GSCurrentContext()
|
|||
/*-------------------------------------------------------------------------*/
|
||||
/* Window Extension Ops */
|
||||
/*-------------------------------------------------------------------------*/
|
||||
- (void) DPSwindow: (float) x : (float) y : (float) w : (float) h : (int) type : (int *) num ;
|
||||
- (void) DPSwindow: (float) x : (float) y : (float) w : (float) h : (int) type : (int *) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPStermwindow: (int) num ;
|
||||
- (void) DPStermwindow: (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSstylewindow: (int) style : (int) num ;
|
||||
- (void) DPSstylewindow: (int) style : (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPStitlewindow: (const char *) window_title : (int) num ;
|
||||
- (void) DPStitlewindow: (const char *) window_title : (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSminiwindow: (int) num ;
|
||||
- (void) DPSminiwindow: (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSwindowdevice: (int) num ;
|
||||
- (void) DPSwindowdevice: (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSwindowdeviceround: (int) num ;
|
||||
- (void) DPSwindowdeviceround: (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentwindow: (int *) num ;
|
||||
- (void) DPScurrentwindow: (int *) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSorderwindow: (int) op : (int) otherWin : (int) winNum ;
|
||||
- (void) DPSorderwindow: (int) op : (int) otherWin : (int) winNum
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSmovewindow: (float) x : (float) y : (int) num ;
|
||||
- (void) DPSmovewindow: (float) x : (float) y : (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSupdatewindow: (int) win ;
|
||||
- (void) DPSupdatewindow: (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSplacewindow: (float) x : (float) y : (float) w : (float) h : (int) win ;
|
||||
- (void) DPSplacewindow: (float) x : (float) y : (float) w : (float) h : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSfrontwindow: (int *) num ;
|
||||
- (void) DPSfrontwindow: (int *) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSfindwindow: (float) x : (float) y : (int) op : (int) otherWin : (float *) lx : (float *) ly : (int *) winFound : (int *) didFind ;
|
||||
- (void) DPSfindwindow: (float) x : (float) y : (int) op : (int) otherWin : (float *) lx : (float *) ly : (int *) winFound : (int *) didFind
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentwindowbounds: (int) num : (float *) x : (float *) y : (float *) w : (float *) h ;
|
||||
- (void) DPScurrentwindowbounds: (int) num : (float *) x : (float *) y : (float *) w : (float *) h
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
@ -2016,112 +2018,112 @@ NSGraphicsContext *GSCurrentContext()
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetsendexposed: (int) truth : (int) num ;
|
||||
- (void) DPSsetsendexposed: (int) truth : (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetautofill: (int) truth : (int) num ;
|
||||
- (void) DPSsetautofill: (int) truth : (int) num
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentwindowalpha: (int) win : (int *) alpha ;
|
||||
- (void) DPScurrentwindowalpha: (int) win : (int *) alpha
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScountscreenlist: (int) context : (int *) count ;
|
||||
- (void) DPScountscreenlist: (int) context : (int *) count
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSscreenlist: (int) context : (int) count : (int *) windows ;
|
||||
- (void) DPSscreenlist: (int) context : (int) count : (int *) windows
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetowner: (int) owner : (int) win ;
|
||||
- (void) DPSsetowner: (int) owner : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentowner: (int) win : (int *) owner ;
|
||||
- (void) DPScurrentowner: (int) win : (int *) owner
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetwindowtype: (int) type : (int) win ;
|
||||
- (void) DPSsetwindowtype: (int) type : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetwindowlevel: (int) level : (int) win ;
|
||||
- (void) DPSsetwindowlevel: (int) level : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentwindowlevel: (int) win : (int *) level ;
|
||||
- (void) DPScurrentwindowlevel: (int) win : (int *) level
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScountwindowlist: (int) context : (int *) count ;
|
||||
- (void) DPScountwindowlist: (int) context : (int *) count
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSwindowlist: (int) context : (int) count : (int *) windows ;
|
||||
- (void) DPSwindowlist: (int) context : (int) count : (int *) windows
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetwindowdepthlimit: (int) limit : (int) win ;
|
||||
- (void) DPSsetwindowdepthlimit: (int) limit : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentwindowdepthlimit: (int) win : (int *) limit ;
|
||||
- (void) DPScurrentwindowdepthlimit: (int) win : (int *) limit
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentwindowdepth: (int) win : (int *) depth ;
|
||||
- (void) DPScurrentwindowdepth: (int) win : (int *) depth
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetdefaultdepthlimit: (int) limit ;
|
||||
- (void) DPSsetdefaultdepthlimit: (int) limit
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScurrentdefaultdepthlimit: (int *) limit ;
|
||||
- (void) DPScurrentdefaultdepthlimit: (int *) limit
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetmaxsize: (float) width : (float) height : (int) win ;
|
||||
- (void) DPSsetmaxsize: (float) width : (float) height : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetminsize: (float) width : (float) height : (int) win ;
|
||||
- (void) DPSsetminsize: (float) width : (float) height : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetresizeincrements: (float) width : (float) height : (int) win ;
|
||||
- (void) DPSsetresizeincrements: (float) width : (float) height : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSflushwindowrect: (float) x : (float) y : (float) w : (float) h : (int) win ;
|
||||
- (void) DPSflushwindowrect: (float) x : (float) y : (float) w : (float) h : (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPScapturemouse: (int) win ;
|
||||
- (void) DPScapturemouse: (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
@ -2131,7 +2133,7 @@ NSGraphicsContext *GSCurrentContext()
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetinputfocus: (int) win ;
|
||||
- (void) DPSsetinputfocus: (int) win
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
@ -2146,27 +2148,27 @@ NSGraphicsContext *GSCurrentContext()
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSstandardcursor: (int) style : (void **) cid ;
|
||||
- (void) DPSstandardcursor: (int) style : (void **) cid
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSimagecursor: (float) hotx : (float) hoty : (float) w : (float) h : (int) colors : (const char *) image : (void **) cid ;
|
||||
- (void) DPSimagecursor: (float) hotx : (float) hoty : (float) w : (float) h : (int) colors : (const char *) image : (void **) cid
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSsetcursorcolor: (float) fr : (float) fg : (float) fb : (float) br : (float) bg : (float) bb : (void *) cid ;
|
||||
- (void) DPSsetcursorcolor: (float) fr : (float) fg : (float) fb : (float) br : (float) bg : (float) bb : (void *) cid
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSstyleoffsets: (float *) r : (float *) l : (float *) t : (float *) b : (int) style ;
|
||||
- (void) DPSstyleoffsets: (float *) r : (float *) l : (float *) t : (float *) b : (int) style
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSdocedited: (int) edited : (int) window ;
|
||||
- (void) DPSdocedited: (int) edited : (int) window
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
/*
|
||||
NSHelpManager.m
|
||||
/** <title>NSHelpManager</title>
|
||||
|
||||
NSHelpManager is the class responsible for managing context help
|
||||
for the application, and its mapping to the graphic elements.
|
||||
<abstract>NSHelpManager is the class responsible for managing context help
|
||||
for the application, and its mapping to the graphic elements.</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
/*
|
||||
NSHelpPanel.m
|
||||
|
||||
Description...
|
||||
/** <title>NSHelpPanel</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSImage.m
|
||||
/** <title>NSImage</title>
|
||||
|
||||
Load, manipulate and display images
|
||||
<abstract>Load, manipulate and display images</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Adam Fedor <fedor@colorado.edu>
|
||||
Author: Adam Fedor <fedor@colorado.edu>
|
||||
Date: Feb 1996
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
|
@ -23,13 +22,6 @@
|
|||
If not, write to the Free Software Foundation,
|
||||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
/*
|
||||
FIXME:
|
||||
[1] Filter services not implemented.
|
||||
[2] Should there be a place to look for system bitmaps?
|
||||
(findImageNamed: ).
|
||||
[3] bestRepresentation is not complete.
|
||||
*/
|
||||
#include <gnustep/gui/config.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -340,7 +332,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithData: (NSData *)data;
|
||||
- (id) initWithData: (NSData *)data
|
||||
{
|
||||
self = [self init];
|
||||
|
||||
|
@ -653,7 +645,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
|
||||
// Using the Image
|
||||
- (void) compositeToPoint: (NSPoint)aPoint
|
||||
operation: (NSCompositingOperation)op;
|
||||
operation: (NSCompositingOperation)op
|
||||
{
|
||||
NSRect rect;
|
||||
// Might not be computed up to now
|
||||
|
@ -665,7 +657,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
|
||||
- (void) compositeToPoint: (NSPoint)aPoint
|
||||
fromRect: (NSRect)aRect
|
||||
operation: (NSCompositingOperation)op;
|
||||
operation: (NSCompositingOperation)op
|
||||
{
|
||||
NSImageRep *rep;
|
||||
|
||||
|
@ -735,7 +727,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
// FIXME We need another PS command for this
|
||||
}
|
||||
|
||||
- (void) dissolveToPoint: (NSPoint)aPoint fraction: (float)aFloat;
|
||||
- (void) dissolveToPoint: (NSPoint)aPoint fraction: (float)aFloat
|
||||
{
|
||||
NSRect rect;
|
||||
NSSize size = [self size];
|
||||
|
@ -746,7 +738,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
|
||||
- (void) dissolveToPoint: (NSPoint)aPoint
|
||||
fromRect: (NSRect)aRect
|
||||
fraction: (float)aFloat;
|
||||
fraction: (float)aFloat
|
||||
{
|
||||
NSImageRep *rep;
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSImageCell.m
|
||||
/** <title>NSImageCell</title>
|
||||
|
||||
The image cell class
|
||||
<abstract>The image cell class</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSImageRep.m
|
||||
/** <title>NSImageRep</title>
|
||||
|
||||
Abstract representation of an image.
|
||||
<abstract>Abstract representation of an image.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Adam Fedor <fedor@colorado.edu>
|
||||
Author: Adam Fedor <fedor@colorado.edu>
|
||||
Date: Feb 1996
|
||||
|
||||
This file is part of the GNUstep Application Kit Library.
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSImageView.m
|
||||
/** <title>NSImageView</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* -*-objc-*-
|
||||
NSInputManager.m
|
||||
/** <title>NSInputManager</title> -*-objc-*-
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -40,7 +39,7 @@
|
|||
+ (void) cycleToNextInputLanguage: (id)sender
|
||||
{}
|
||||
|
||||
+ (void) cycleToNextInputServerInLanguage: (id)sender;
|
||||
+ (void) cycleToNextInputServerInLanguage: (id)sender
|
||||
{}
|
||||
|
||||
|
||||
|
@ -125,7 +124,7 @@
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (NSAttributedString *) attributedSubstringFromRange: (NSRange)theRange;
|
||||
- (NSAttributedString *) attributedSubstringFromRange: (NSRange)theRange
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*-objc-*-
|
||||
NSInputServer.m
|
||||
/** <title>NSInputServer</title> -*-objc-*-
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Date: August 2001
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSInterfaceStyle.m
|
||||
/** <title>NSInterfaceStyle</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSLayoutManager.m
|
||||
/** <title>NSLayoutManager</title>
|
||||
|
||||
The text layout manager class
|
||||
<abstract>The text layout manager class</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Date: July 1999
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: August 1999
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
/*
|
||||
NSMatrix.m
|
||||
/** <title>NSMatrix</title>
|
||||
|
||||
Matrix class for grouping controls
|
||||
<abstract>Matrix class for grouping controls</abstract>
|
||||
|
||||
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: March 1997
|
||||
A completely rewritten version of the original source by Pascal Forget and
|
||||
Scott Christley.
|
||||
Modified: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Modified: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: August 1998
|
||||
Cell handling rewritten: <richard@brainstorm.co.uk>
|
||||
Cell handling rewritten: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: November 1999
|
||||
Implementation of Editing: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: November 1999
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSMenu.m
|
||||
/** <title>NSMenu</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -7,9 +6,9 @@
|
|||
Date: Aug 2001
|
||||
Author: David Lazaro Saz <khelekir@encomix.es>
|
||||
Date: Oct 1999
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: July 1998
|
||||
and:
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/*
|
||||
NSMenuItem.m
|
||||
/** <title>NSMenuItem</title>
|
||||
|
||||
The menu cell class.
|
||||
<abstract>The menu cell class.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: May 1997
|
||||
Author: David Lazaro Saz <khelekir@encomix.es>
|
||||
Date: Sep 1999
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: May 1997
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSMenuItemCell.m
|
||||
/** <title>NSMenuItemCell</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/*
|
||||
NSMenuView.m
|
||||
/** <title>NSMenuView</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Date: Sep 2001
|
||||
Author: David Lazaro Saz <khelekir@encomix.es>
|
||||
Author: David Lazaro Saz <khelekir@encomix.es>
|
||||
Date: Oct 1999
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
/* -*-objc-*-
|
||||
NSOpenPanel.m
|
||||
/** <title>NSOpenPanel</title> -*-objc-*-
|
||||
|
||||
Standard open panel for opening files
|
||||
<abstract>Standard open panel for opening files</abstract>
|
||||
|
||||
Copyright (C) 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
Author: Daniel Bðhringer <boehring@biomed.ruhr-uni-bochum.de>
|
||||
Author: Daniel Bðhringer <boehring@biomed.ruhr-uni-bochum.de>
|
||||
Date: August 1998
|
||||
|
||||
Source by Daniel Bðhringer integrated into Scott Christley's preliminary
|
||||
|
@ -17,7 +16,7 @@
|
|||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: October 1999 Completely Rewritten.
|
||||
|
||||
Author: Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
Author: Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
Date: September 2000
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSOutlineView.h
|
||||
/** <title>NSOutlineView</title>
|
||||
|
||||
The outline class.
|
||||
<abstract>The outline class.</abstract>
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
<abstract>Standard panel for querying user about page layout.</abstract>
|
||||
|
||||
Copyright <copy>(C) 2001 Free Software Foundation, Inc.</copy>
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
Written By: <author name="Adam Fedor"><email>fedor@gnu.org</email></author>
|
||||
Written By: Adam Fedor <fedor@gnu.org>
|
||||
Date: Oct 2001
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,20 +1,18 @@
|
|||
/*
|
||||
NSPanel.m
|
||||
/** <title>NSPanel</title>
|
||||
|
||||
Panel window class and related functions
|
||||
<abstract>Panel window class and related functions</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
NSPanel implementation
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
GSAlertPanel and alert panel functions implementation
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: 1998
|
||||
|
||||
GSAlertPanel and alert panel functions cleanup and improvements (scroll view)
|
||||
Author: Pascal J. Bourguignon <pjb@imaginet.fr>
|
||||
Author: Pascal J. Bourguignon <pjb@imaginet.fr>>
|
||||
Date: 2000-03-08
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
/*
|
||||
NSParagraphStyle.m
|
||||
/** <title>NSParagraphStyle</title>
|
||||
|
||||
NSParagraphStyle and NSMutableParagraphStyle hold paragraph style
|
||||
information NSTextTab holds information about a single tab stop
|
||||
<abstract>NSParagraphStyle and NSMutableParagraphStyle hold paragraph style
|
||||
information NSTextTab holds information about a single tab stop</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Daniel Bðhringer <boehring@biomed.ruhr-uni-bochum.de>
|
||||
Date: August 1998 - skeleton
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date March 1999 - implementation
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date March 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
/*
|
||||
NSPasteboard.m
|
||||
/** <title>NSPasteboard</title>
|
||||
|
||||
Description... Implementation of class for communicating with the
|
||||
pasteboard server.
|
||||
<abstract>Implementation of class for communicating with the
|
||||
pasteboard server.</abstract>
|
||||
|
||||
Copyright (C) 1997,1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: 1997
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSPopUpButton.m
|
||||
/** <title>NSPopUpButton</title>
|
||||
|
||||
Popup list class
|
||||
<abstract>Popup list class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: June 1999
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSPopUpButtonCell.m
|
||||
/** <title>NSPopUpButtonCell</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
<abstract>Standard panel for querying user about printing.</abstract>
|
||||
|
||||
Copyright <copy>(C) 2001 Free Software Foundation, Inc.</copy>
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
Written By: <author name="Adam Fedor"><email>fedor@gnu.org</email></author>
|
||||
Written By: Adam Fedor <fedor@gnu.org>
|
||||
Date: Oct 2001
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
/*
|
||||
NSPrinter.m
|
||||
/** <title>NSPrinter</title>
|
||||
|
||||
Class representing a printer's or printer model's capabilities.
|
||||
<abstract>Class representing a printer's or printer model's capabilities.</abstract>
|
||||
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
|
||||
Authors: Simon Frankau <sgf@frankau.demon.co.uk>
|
||||
Date: June 1997 - January 1998
|
||||
Authors: Simon Frankau <sgf@frankau.demon.co.uk>
|
||||
Date: June 1997
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSProgressIndicator.m
|
||||
/** <title>NSProgressIndicator</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSResponder.m
|
||||
/** <title>NSResponder</title>
|
||||
|
||||
Abstract class which is basis of command and event processing
|
||||
<abstract>Abstract class which is basis of command and event processing</abstract>
|
||||
|
||||
Copyright (C) 1996,1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSRulerMarker.m
|
||||
/** <title>NSRulerMarker</title>
|
||||
|
||||
Displays a symbol in a NSRulerView.
|
||||
<abstract>Displays a symbol in a NSRulerView.</abstract>
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSRulerView.m
|
||||
/** <title>NSRulerView</title>
|
||||
|
||||
The NSRulerView class.
|
||||
<abstract>The NSRulerView class.</abstract>
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -260,7 +259,7 @@ unitToPointsConversionFactor:(float)conversionFactor
|
|||
return 0.0;
|
||||
}
|
||||
|
||||
- (float)baselineLocation;
|
||||
- (float)baselineLocation
|
||||
{
|
||||
// FIXME
|
||||
return 0.0;
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
/*
|
||||
NSSavePanel.m
|
||||
/** <title>NSSavePanel</title>
|
||||
|
||||
Standard save panel for saving files
|
||||
<abstract>Standard save panel for saving files</abstract>
|
||||
|
||||
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Date: 1999
|
||||
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: 1999
|
||||
|
||||
Author: Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
/*
|
||||
NSScreen.m
|
||||
|
||||
Description...
|
||||
/** <title>NSScreen</title>
|
||||
|
||||
Copyright (C) 1996, 2000 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
Major modifications and updates
|
||||
Author: Gregory John Casamento <borgheron@yahoo.com>
|
||||
Date: 2000
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/*
|
||||
NSScrollView.m
|
||||
/** <title>NSScrollView</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: July 1997
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: October 1998
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: February 1999
|
||||
Table View Support: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: March 2000
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
/*
|
||||
NSScroller.m
|
||||
/** <title>NSScroller</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
A completely rewritten version of the original source by Scott Christley.
|
||||
Date: July 1997
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: August 1998
|
||||
Author: Richard frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: Mar 1999 - Use flipped views and make conform to spec
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
/* -*- C++ -*-
|
||||
NSSecureTextField.m
|
||||
/** <title>NSSecureTextField</title>
|
||||
|
||||
Secure Text field control class for hidden text entry
|
||||
<abstract>Secure Text field control class for hidden text entry</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Original Author: Lyndon Tremblay <humasect@coolmail.com>
|
||||
Date: 1999
|
||||
|
||||
Rewrite by: Gregory John Casamento <borgheron@yahoo.com>
|
||||
Author: Gregory John Casamento <borgheron@yahoo.com>
|
||||
Date: 2000
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/*
|
||||
NSSelection.m
|
||||
/** <title>NSSelection</title>
|
||||
|
||||
Description: NSSelection is used by NSDataLink to refer to a
|
||||
selection within a document.
|
||||
<abstract>NSSelection is used by NSDataLink to refer to a
|
||||
selection within a document.</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
Author: Gregory John Casamento <borgheron@yahoo.com>
|
||||
Date: 2001
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSSlider.m
|
||||
/** <title>NSSlider</title>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: September 1997
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: August 1998
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
@ -88,6 +87,36 @@ float _floatValueForMousePoint (NSPoint point, NSRect knobRect,
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
<unit>
|
||||
<heading>Class Description</heading>
|
||||
|
||||
<p>An NSSlider displays, and allows control of, some value in the
|
||||
application. It represents a continuous stream of values of type
|
||||
<code>float</code>, which can be retrieved by the method
|
||||
<code>floatValue</code> and set by the method
|
||||
<code>setFloatValue:</code>.</p>
|
||||
|
||||
<p>This control is a continuous control. It sends its action
|
||||
message as long as the user is manipulating it. This can be changed
|
||||
by passing <code>NO</code> to the <code>setContinuous:</code>
|
||||
message of a given NSSlider.</p>
|
||||
|
||||
<p>Although methods for adding and managing a title are provided,
|
||||
the slider's knob can cover this title, so it is recommended that a
|
||||
label be added near the slider, for identification.</p>
|
||||
|
||||
<p>As with many controls, NSSlider relies on its cell counterpart,
|
||||
NSSliderCell. For more information, please see the specification
|
||||
for NSSliderCell.</p>
|
||||
|
||||
<p>Use of an NSSlider to do the role of an NSScroller is not
|
||||
recommended. A scroller is intended to represent the visible
|
||||
portion of a view, whereas a slider is intended to represent some
|
||||
value.</p>
|
||||
|
||||
</unit>
|
||||
*/
|
||||
@implementation NSSlider
|
||||
|
||||
static Class cellClass;
|
||||
|
@ -123,101 +152,144 @@ static Class cellClass;
|
|||
return self;
|
||||
}
|
||||
|
||||
/**
|
||||
Returns the value by which the slider will be incremented if the
|
||||
user holds down the ALT key. */
|
||||
- (double) altIncrementValue
|
||||
{
|
||||
return [_cell altIncrementValue];
|
||||
}
|
||||
|
||||
/**
|
||||
Returns the image drawn in the slider's track. Returns
|
||||
<code>nil</code> if this has not been set. */
|
||||
- (NSImage *) image
|
||||
{
|
||||
return [_cell image];
|
||||
}
|
||||
|
||||
/**
|
||||
Returns whether or not the slider is vertical. If, for some reason,
|
||||
this cannot be determined, for such reasons as the slider is not yet
|
||||
displayed, this method returns -1. Generally, a slider is
|
||||
considered vertical if its height is greater than its width. */
|
||||
- (int) isVertical
|
||||
{
|
||||
return [_cell isVertical];
|
||||
}
|
||||
|
||||
/**
|
||||
Returns the thickness of the slider's knob. This value is in
|
||||
pixels, and is the size of the knob along the slider's track. */
|
||||
- (float) knobThickness
|
||||
{
|
||||
return [_cell knobThickness];
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the value by which the slider will be incremented, when the
|
||||
ALT key is held down, to <var>increment</var>. */
|
||||
- (void) setAltIncrementValue: (double)increment
|
||||
{
|
||||
[_cell setAltIncrementValue: increment];
|
||||
}
|
||||
|
||||
/** Sets the image to be displayed in the slider's track to <var>barImage</var>.
|
||||
*/
|
||||
- (void) setImage: (NSImage *)backgroundImage
|
||||
{
|
||||
[_cell setImage: backgroundImage];
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the thickness of the knob to <var>thickness</var>, in pixels.
|
||||
This value sets the amount of space which the knob takes up in the
|
||||
slider's track. */
|
||||
- (void) setKnobThickness: (float)aFloat
|
||||
{
|
||||
[_cell setKnobThickness: aFloat];
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the title of the slider to <var>barTitle</var>. This title is displayed
|
||||
on the slider's track, behind the knob.
|
||||
*/
|
||||
- (void) setTitle: (NSString *)aString
|
||||
{
|
||||
[_cell setTitle: aString];
|
||||
}
|
||||
|
||||
/** Sets the cell used to draw the title to <var>titleCell</var>. */
|
||||
- (void) setTitleCell: (NSCell *)aCell
|
||||
{
|
||||
[_cell setTitleCell: aCell];
|
||||
}
|
||||
|
||||
/** Sets the colour with which the title will be drawn to <var>color</var>. */
|
||||
- (void) setTitleColor: (NSColor *)aColor
|
||||
{
|
||||
[_cell setTitleColor: aColor];
|
||||
}
|
||||
|
||||
/** Sets the font with which the title will be drawm to <var>font</var>. */
|
||||
- (void) setTitleFont: (NSFont *)fontObject
|
||||
{
|
||||
[_cell setTitleFont: fontObject];
|
||||
}
|
||||
|
||||
/** Returns the title of the slider as an <code>NSString</code>. */
|
||||
- (NSString *) title
|
||||
{
|
||||
return [_cell title];
|
||||
}
|
||||
|
||||
/** Returns the cell used to draw the title. */
|
||||
- (id) titleCell
|
||||
{
|
||||
return [_cell titleCell];
|
||||
}
|
||||
|
||||
/** Returns the colour used to draw the title. */
|
||||
- (NSColor *) titleColor
|
||||
{
|
||||
return [_cell titleColor];
|
||||
}
|
||||
|
||||
/** Returns the font used to draw the title. */
|
||||
- (NSFont *) titleFont
|
||||
{
|
||||
return [_cell titleFont];
|
||||
}
|
||||
|
||||
/** Returns the maximum value that the slider represents. */
|
||||
- (double) maxValue
|
||||
{
|
||||
return [_cell maxValue];
|
||||
}
|
||||
|
||||
/** Returns the minimum value that the slider represents. */
|
||||
- (double) minValue
|
||||
{
|
||||
return [_cell minValue];
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the maximum value that the sliders represents to <var>maxValue</var>. */
|
||||
- (void) setMaxValue: (double)aDouble
|
||||
{
|
||||
[_cell setMaxValue: aDouble];
|
||||
}
|
||||
|
||||
/** Sets the minimum value that the slider represents to <var>minValue</var>. */
|
||||
- (void) setMinValue: (double)aDouble
|
||||
{
|
||||
[_cell setMinValue: aDouble];
|
||||
}
|
||||
|
||||
/**
|
||||
Returns <code>YES</code> by default. This will allow the first
|
||||
click sent to the slider, when in an inactive window, to both bring
|
||||
the window into focus and manipulate the slider. */
|
||||
- (BOOL) acceptsFirstMouse: (NSEvent *)theEvent
|
||||
{
|
||||
return YES;
|
||||
|
@ -234,7 +306,7 @@ static Class cellClass;
|
|||
return [_cell closestTickMarkValueToValue: aValue];
|
||||
}
|
||||
|
||||
- (int) indexOfTickMarkAtPoint: (NSPoint)point;
|
||||
- (int) indexOfTickMarkAtPoint: (NSPoint)point
|
||||
{
|
||||
return [_cell indexOfTickMarkAtPoint: point];
|
||||
}
|
||||
|
@ -244,32 +316,32 @@ static Class cellClass;
|
|||
return [_cell numberOfTickMarks];
|
||||
}
|
||||
|
||||
- (NSRect) rectOfTickMarkAtIndex: (int)index;
|
||||
- (NSRect) rectOfTickMarkAtIndex: (int)index
|
||||
{
|
||||
return [_cell rectOfTickMarkAtIndex: index];
|
||||
}
|
||||
|
||||
- (void) setAllowsTickMarkValuesOnly: (BOOL)flag;
|
||||
- (void) setAllowsTickMarkValuesOnly: (BOOL)flag
|
||||
{
|
||||
[_cell setAllowsTickMarkValuesOnly: flag];
|
||||
}
|
||||
|
||||
- (void) setNumberOfTickMarks: (int)numberOfTickMarks;
|
||||
- (void) setNumberOfTickMarks: (int)numberOfTickMarks
|
||||
{
|
||||
[_cell setNumberOfTickMarks: numberOfTickMarks];
|
||||
}
|
||||
|
||||
- (void) setTickMarkPosition: (NSTickMarkPosition)position;
|
||||
- (void) setTickMarkPosition: (NSTickMarkPosition)position
|
||||
{
|
||||
[_cell setTickMarkPosition: position];
|
||||
}
|
||||
|
||||
- (NSTickMarkPosition) tickMarkPosition;
|
||||
- (NSTickMarkPosition) tickMarkPosition
|
||||
{
|
||||
return [_cell tickMarkPosition];
|
||||
}
|
||||
|
||||
- (double) tickMarkValueAtIndex: (int)index;
|
||||
- (double) tickMarkValueAtIndex: (int)index
|
||||
{
|
||||
return [_cell tickMarkValueAtIndex: index];
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSSliderCell.m
|
||||
/** <title>NSSliderCell</title>
|
||||
|
||||
Copyright (C) 1996,1999 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -35,6 +34,26 @@
|
|||
#include <AppKit/NSTextFieldCell.h>
|
||||
|
||||
|
||||
/**
|
||||
<unit>
|
||||
<heading>Class Description</heading>
|
||||
|
||||
<p>
|
||||
An NSSliderCell controls the behaviour and appearance of an
|
||||
associated NSSlider, or a single slider in an NSMatrix. Tick marks
|
||||
are defined in the official standard, but are not implemented in
|
||||
GNUstep.
|
||||
</p>
|
||||
<p>
|
||||
An NSSliderCell can be customized through its
|
||||
<code>set...</code> methods. If these do not provide enough
|
||||
customization, a subclass can be created, which overrides any of the
|
||||
follwing methods: <code>knobRectFlipped:</code>,
|
||||
<code>drawBarInside:flipped:</code>, <code>drawKnob:</code>, or
|
||||
<code>prefersTrackingUntilMouseUp</code>.
|
||||
</p>
|
||||
</unit>
|
||||
*/
|
||||
@implementation NSSliderCell
|
||||
|
||||
- (id) init
|
||||
|
@ -68,12 +87,29 @@
|
|||
return YES;
|
||||
}
|
||||
|
||||
/**
|
||||
<p>Draws the slider's track, not including the bezel, in <var>aRect</var>
|
||||
<var>flipped</var> indicates whether the control view has a flipped
|
||||
coordinate system.</p>
|
||||
|
||||
<p>Do not call this method directly, it is provided for subclassing
|
||||
only.</p> */
|
||||
- (void) drawBarInside: (NSRect)rect flipped: (BOOL)flipped
|
||||
{
|
||||
[[NSColor scrollBarColor] set];
|
||||
NSRectFill(rect);
|
||||
}
|
||||
|
||||
/**
|
||||
<p>Returns the rect in which to draw the knob, based on the
|
||||
coordinate system of the NSSlider or NSMatrix this NSSliderCell is
|
||||
associated with. <var>flipped</var> indicates whether or not that
|
||||
coordinate system is flipped, which can be determined by sending the
|
||||
<code>isFlipped</code> message to the associated NSSlider or
|
||||
NSMatrix.</p>
|
||||
|
||||
<p>Do not call this method directly. It is included for subclassing
|
||||
only.</p> */
|
||||
- (NSRect) knobRectFlipped: (BOOL)flipped
|
||||
{
|
||||
NSImage *image = [_knobCell image];
|
||||
|
@ -104,11 +140,26 @@
|
|||
return NSMakeRect (origin.x, origin.y, size.width, size.height);
|
||||
}
|
||||
|
||||
/**
|
||||
<p>Calculates the rect in which to draw the knob, then calls
|
||||
<code>drawKnob:</code> Before calling this method, a
|
||||
<code>lockFocus</code> message must be sent to the cell's control
|
||||
view.</p>
|
||||
|
||||
<p>When subclassing NSSliderCell, do not override this method.
|
||||
Override <code>drawKnob:</code> instead.</p> */
|
||||
- (void) drawKnob
|
||||
{
|
||||
[self drawKnob: [self knobRectFlipped: [_control_view isFlipped]]];
|
||||
}
|
||||
|
||||
/**
|
||||
<p>Draws the knob in <var>knobRect</var>. Before calling this
|
||||
method, a <code>lockFocus</code> message must be sent to the cell's
|
||||
control view.</p>
|
||||
|
||||
<p>Do not call this method directly. It is included for subclassing
|
||||
only.</p> */
|
||||
- (void) drawKnob: (NSRect)knobRect
|
||||
{
|
||||
[_knobCell drawInteriorWithFrame: knobRect inView: _control_view];
|
||||
|
@ -162,6 +213,9 @@
|
|||
return YES;
|
||||
}
|
||||
|
||||
/**
|
||||
Returns the thickness of the slider's knob. This value is in
|
||||
pixels, and is the size of the knob along the slider's track. */
|
||||
- (float) knobThickness
|
||||
{
|
||||
NSImage *image = [_knobCell image];
|
||||
|
@ -170,6 +224,10 @@
|
|||
return _isVertical ? size.height : size.width;
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the thickness of the knob to <var>thickness</var>, in pixels.
|
||||
This value sets the amount of space which the knob takes up in the
|
||||
slider's track. */
|
||||
- (void) setKnobThickness: (float)thickness
|
||||
{
|
||||
NSImage *image = [_knobCell image];
|
||||
|
@ -183,36 +241,50 @@
|
|||
[image setSize: size];
|
||||
}
|
||||
|
||||
/** Sets the value by which the slider will be be incremented when with the
|
||||
ALT key down to <var>increment</var>. */
|
||||
- (void) setAltIncrementValue: (double)increment
|
||||
{
|
||||
_altIncrementValue = increment;
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the minimum value that the sliders represents to <var>maxValue</var>.
|
||||
*/
|
||||
- (void) setMinValue: (double)aDouble
|
||||
{
|
||||
_minValue = aDouble;
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the maximum value that the sliders represents to <var>maxValue</var>.
|
||||
*/
|
||||
- (void) setMaxValue: (double)aDouble
|
||||
{
|
||||
_maxValue = aDouble;
|
||||
}
|
||||
|
||||
/** Returns the cell used to draw the title. */
|
||||
- (id) titleCell
|
||||
{
|
||||
return _titleCell;
|
||||
}
|
||||
|
||||
/** Returns the colour used to draw the title. */
|
||||
- (NSColor*) titleColor
|
||||
{
|
||||
return [_titleCell textColor];
|
||||
}
|
||||
|
||||
/** Returns the font used to draw the title. */
|
||||
- (NSFont*) titleFont
|
||||
{
|
||||
return [_titleCell font];
|
||||
}
|
||||
|
||||
/**
|
||||
Sets the title of the slider to <var>barTitle</var>. This title is
|
||||
displayed on the slider's track, behind the knob. */
|
||||
- (void) setTitle: (NSString*)title
|
||||
{
|
||||
[_titleCell setStringValue: title];
|
||||
|
@ -223,46 +295,68 @@
|
|||
return [_titleCell stringValue];
|
||||
}
|
||||
|
||||
/** Sets the cell used to draw the title to <var>titleCell</var>. */
|
||||
- (void) setTitleCell: (NSCell*)aCell
|
||||
{
|
||||
ASSIGN(_titleCell, aCell);
|
||||
}
|
||||
|
||||
/** Sets the colour with which the title will be drawn to <var>color</var>. */
|
||||
- (void) setTitleColor: (NSColor*)color
|
||||
{
|
||||
[_titleCell setTextColor: color];
|
||||
}
|
||||
|
||||
/** Sets the font with which the title will be drawm to <var>font</var>. */
|
||||
- (void) setTitleFont: (NSFont*)font
|
||||
{
|
||||
[_titleCell setFont: font];
|
||||
}
|
||||
|
||||
/**
|
||||
Returns whether or not the slider is vertical. If, for some
|
||||
reason, this cannot be determined, for such reasons as the slider is
|
||||
not yet displayed, this method returns -1. Generally, a slider is
|
||||
considered vertical if its height is greater than its width. */
|
||||
- (int) isVertical
|
||||
{
|
||||
return _isVertical;
|
||||
}
|
||||
|
||||
/** Returns the value by which the slider is incremented when the user
|
||||
holds down the ALT key.
|
||||
*/
|
||||
- (double) altIncrementValue
|
||||
{
|
||||
return _altIncrementValue;
|
||||
}
|
||||
|
||||
/**
|
||||
<p>The default implementation returns <code>YES</code>, so that the
|
||||
slider continues to track the user's movement even if the cursor
|
||||
leaves the slider's track.</p>
|
||||
|
||||
<p>Do not call this method directly. Override it in subclasses
|
||||
where the tracking behaviour needs to be different.</p>
|
||||
*/
|
||||
+ (BOOL) prefersTrackingUntilMouseUp
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
/** Returns the rect of the track, minus the bezel. */
|
||||
- (NSRect) trackRect
|
||||
{
|
||||
return _trackRect;
|
||||
}
|
||||
|
||||
/** Returns the minimum value that the slider represents. */
|
||||
- (double) minValue
|
||||
{
|
||||
return _minValue;
|
||||
}
|
||||
|
||||
/** Returns the maximum value that the slider represents. */
|
||||
- (double) maxValue
|
||||
{
|
||||
return _maxValue;
|
||||
|
@ -299,44 +393,44 @@
|
|||
return 0.0;
|
||||
}
|
||||
|
||||
- (int) indexOfTickMarkAtPoint: (NSPoint)point;
|
||||
- (int) indexOfTickMarkAtPoint: (NSPoint)point
|
||||
{
|
||||
// FIXME
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (int) numberOfTickMarks;
|
||||
- (int) numberOfTickMarks
|
||||
{
|
||||
return _numberOfTickMarks;
|
||||
}
|
||||
|
||||
- (NSRect) rectOfTickMarkAtIndex: (int)index;
|
||||
- (NSRect) rectOfTickMarkAtIndex: (int)index
|
||||
{
|
||||
// FIXME
|
||||
return NSZeroRect;
|
||||
}
|
||||
|
||||
- (void) setAllowsTickMarkValuesOnly: (BOOL)flag;
|
||||
- (void) setAllowsTickMarkValuesOnly: (BOOL)flag
|
||||
{
|
||||
_allowsTickMarkValuesOnly = flag;
|
||||
}
|
||||
|
||||
- (void) setNumberOfTickMarks: (int)numberOfTickMarks;
|
||||
- (void) setNumberOfTickMarks: (int)numberOfTickMarks
|
||||
{
|
||||
_numberOfTickMarks = numberOfTickMarks;
|
||||
}
|
||||
|
||||
- (void) setTickMarkPosition: (NSTickMarkPosition)position;
|
||||
- (void) setTickMarkPosition: (NSTickMarkPosition)position
|
||||
{
|
||||
_tickMarkPosition = position;
|
||||
}
|
||||
|
||||
- (NSTickMarkPosition) tickMarkPosition;
|
||||
- (NSTickMarkPosition) tickMarkPosition
|
||||
{
|
||||
return _tickMarkPosition;
|
||||
}
|
||||
|
||||
- (double) tickMarkValueAtIndex: (int)index;
|
||||
- (double) tickMarkValueAtIndex: (int)index
|
||||
{
|
||||
if (index >= _numberOfTickMarks)
|
||||
return _maxValue;
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/*
|
||||
NSSpellChecker.m
|
||||
/** <title>NSSpellChecker</title>
|
||||
|
||||
Class to provide the graphical interface to the spell checking
|
||||
service.
|
||||
<abstract>Class to provide the graphical interface to the spell checking
|
||||
service.</abstract>
|
||||
|
||||
Copyright (C) 2001, 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
Author: Gregory John Casamento <borgheron@yahoo.com>
|
||||
Date: 2001
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
@ -228,7 +227,7 @@ static int __documentTag = 0;
|
|||
return _serverProxy;
|
||||
}
|
||||
|
||||
- (void)_populateDictionaryPulldown: (NSArray *)dictionaries;
|
||||
- (void)_populateDictionaryPulldown: (NSArray *)dictionaries
|
||||
{
|
||||
[_dictionaryPulldown removeAllItems];
|
||||
[_dictionaryPulldown addItemsWithTitles: dictionaries];
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
/*
|
||||
NSSpellServer.m
|
||||
/** <title>NSSpellServer</title>
|
||||
|
||||
Class to allow a spell checker to be available to other apps.
|
||||
<abstract>Class to allow a spell checker to be available to other apps.</abstract>
|
||||
|
||||
Copyright (C) 2001, 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author by: Gregory Casamento <greg_casamento@yahoo.com>
|
||||
Author by: Gregory John Casamento <borgheron@yahoo.com>
|
||||
Date: 2001
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSSplitView.m
|
||||
/** <title>NSSplitView</title>
|
||||
|
||||
Allows multiple views to share a region in a window
|
||||
<abstract>Allows multiple views to share a region in a window</abstract>
|
||||
|
||||
Copyright (C) 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSStepper.m
|
||||
/** <title>NSStepper</title>
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
Author: Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
Author: Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
Date: August 2001
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
NSStepperCell.m
|
||||
/** <title>NSStepperCell</title>
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
/*
|
||||
NSStringDrawing.m
|
||||
/** <title>NSStringAdditions</title>
|
||||
|
||||
Categories which add drawing capabilities to NSAttributedString
|
||||
and NSString.
|
||||
<abstract>Categories which add drawing capabilities to NSAttributedString
|
||||
and NSString.</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: Mar 1999 - rewrite from scratch
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSTabView.m
|
||||
/** <title>NSTabView</title>
|
||||
|
||||
The tabular view class
|
||||
<abstract>The tabular view class</abstract>
|
||||
|
||||
Copyright (C) 1999,2000 Free Software Foundation, Inc.
|
||||
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSTabViewItem.m
|
||||
/** <title>NSTabViewItem</title>
|
||||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
/*
|
||||
NSTableColumn.m
|
||||
/** <title>NSTableColumn</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
First Implementation.
|
||||
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: December 1999
|
||||
Completely Rewritten.
|
||||
|
@ -34,6 +29,48 @@
|
|||
#include <AppKit/NSTableColumn.h>
|
||||
#include <AppKit/NSTableView.h>
|
||||
|
||||
/**
|
||||
<unit>
|
||||
<heading>Class Description</heading>
|
||||
|
||||
<p>
|
||||
NSTableColumn objects represent columns in NSTableViews.
|
||||
</p>
|
||||
<section>
|
||||
<heading>The Column Identifier</heading>
|
||||
<p>
|
||||
Each NSTableColumn object is identified by an object, called
|
||||
the column identifier. The reason is that, after a column has been
|
||||
added to a table view, the user might move the columns around, so
|
||||
there is a need to identify the columns regardless of their position
|
||||
in the table.
|
||||
</p>
|
||||
<p>
|
||||
The identifier is typically a string describing the column.
|
||||
This identifier object is never displayed to the user !
|
||||
It is only used internally by the program to identify
|
||||
the column - so yes, you may use a funny string for it
|
||||
and nobody will know, except people reading the code.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<heading>Information Stored in an NSTableColumn Object</heading>
|
||||
<p>
|
||||
An NSTableColumn object mainly keeps information about the width
|
||||
of the column, its minimum and maximum width; whether the column
|
||||
can be edited or resized; and the cells used to draw the column
|
||||
header and the data in the column. You can change all these
|
||||
attributes of the column by calling the appropriate methods.
|
||||
Please note that the table column does not hold nor has access
|
||||
to the data to be displayed in the column; this data is maintained
|
||||
in the table view's data source, as described in the NSTableView
|
||||
documentation. A last hint: to set the title of a table column,
|
||||
ask the table column for its header cell, and set the string value
|
||||
of this header cell to the desired title.
|
||||
</p>
|
||||
</section>
|
||||
</unit>
|
||||
*/
|
||||
@implementation NSTableColumn
|
||||
|
||||
/*
|
||||
|
@ -53,9 +90,10 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Initializing an NSTableColumn instance
|
||||
*/
|
||||
/**
|
||||
Initialize the column. anObject is an object used to identify the
|
||||
column; it is usually a string, but might be any kind of object.
|
||||
anObject is retained. */
|
||||
- (id)initWithIdentifier: (id)anObject
|
||||
{
|
||||
self = [super init];
|
||||
|
@ -84,11 +122,18 @@
|
|||
/*
|
||||
* Managing the Identifier
|
||||
*/
|
||||
/**
|
||||
Set the identifier used to identify the table. The old identifier
|
||||
is released, and the new one is retained. */
|
||||
- (void)setIdentifier: (id)anObject
|
||||
{
|
||||
ASSIGN (_identifier, anObject);
|
||||
}
|
||||
|
||||
/**
|
||||
Return the column identifier, an object used to identify the column.
|
||||
This object is usually a string, but might be any kind of object.
|
||||
*/
|
||||
- (id)identifier
|
||||
{
|
||||
return _identifier;
|
||||
|
@ -96,6 +141,12 @@
|
|||
/*
|
||||
* Setting the NSTableView
|
||||
*/
|
||||
/**
|
||||
Set the table view corresponding to this table column. This method
|
||||
is invoked internally by the table view, and you should not call it
|
||||
directly; it is exposed because you may want to override it in
|
||||
subclasses. To use the table column in a table view, you should use
|
||||
NSTableView's addTableColumn: instead. */
|
||||
- (void)setTableView: (NSTableView*)aTableView
|
||||
{
|
||||
// We do *not* RETAIN aTableView.
|
||||
|
@ -103,6 +154,9 @@
|
|||
_tableView = aTableView;
|
||||
}
|
||||
|
||||
/**
|
||||
Return the table view the column belongs to, or nil if the table
|
||||
column was not added to any table view. */
|
||||
- (NSTableView *)tableView
|
||||
{
|
||||
return _tableView;
|
||||
|
@ -111,6 +165,17 @@
|
|||
/*
|
||||
* Controlling size
|
||||
*/
|
||||
/**
|
||||
Set the width of the table column. Before being resized, the new
|
||||
width is constrained to the table column minimum and maximum width:
|
||||
if newWidth is smaller than the table column's min width, the table
|
||||
column is simply resized to its min width. If newWidth is bigger
|
||||
than the table column's max width, the table column is simply
|
||||
resized to its max width. Otherwise, it is resized to newWidth. If
|
||||
the width of the table was actually changed, the table view (if any)
|
||||
is redisplayed (by calling tile), and the
|
||||
NSTableViewColumnDidResizeNotification is posted on behalf of the
|
||||
table view. */
|
||||
- (void)setWidth: (float)newWidth
|
||||
{
|
||||
float oldWidth = _width;
|
||||
|
@ -139,11 +204,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
/** Return the width of the table column. */
|
||||
- (float)width
|
||||
{
|
||||
return _width;
|
||||
}
|
||||
|
||||
/**
|
||||
Set the min width of the table column, eventually adjusting the
|
||||
width of the column if it is smaller than the new min width. In no
|
||||
way a table column can be made smaller than its min width. */
|
||||
- (void)setMinWidth: (float)minWidth
|
||||
{
|
||||
_min_width = minWidth;
|
||||
|
@ -151,11 +221,19 @@
|
|||
[self setWidth: _min_width];
|
||||
}
|
||||
|
||||
/**
|
||||
Return the column's min width. The column can in no way be resized
|
||||
to a width smaller than this min width. The default min width is
|
||||
zero. */
|
||||
- (float)minWidth
|
||||
{
|
||||
return _min_width;
|
||||
}
|
||||
|
||||
/**
|
||||
Set the max width of the table column, eventually adjusting the
|
||||
width of the column if it is bigger than the new max width. In no
|
||||
way a table column can be made bigger than its max width. */
|
||||
- (void)setMaxWidth: (float)maxWidth
|
||||
{
|
||||
_max_width = maxWidth;
|
||||
|
@ -163,21 +241,38 @@
|
|||
[self setWidth: _max_width];
|
||||
}
|
||||
|
||||
/**
|
||||
Return the column's max width. The column can in no way be resized
|
||||
to a width bigger than this max width. The default max width is
|
||||
100000. */
|
||||
- (float)maxWidth
|
||||
{
|
||||
return _max_width;
|
||||
}
|
||||
|
||||
/**
|
||||
Set whether the user can resize the table column by dragging the
|
||||
border of its header with the mouse. The table column can be
|
||||
resized programmatically regardless of this setting. */
|
||||
- (void)setResizable: (BOOL)flag
|
||||
{
|
||||
_is_resizable = flag;
|
||||
}
|
||||
|
||||
/**
|
||||
Return whether the column might be resized by the user by dragging
|
||||
the column header border. */
|
||||
- (BOOL)isResizable
|
||||
{
|
||||
return _is_resizable;
|
||||
}
|
||||
|
||||
/**
|
||||
Change the width of the column to be just enough to display its
|
||||
header; change the minimum width and maximum width to allow the
|
||||
column to have this width (if the minimum width is bigger than the
|
||||
column header width, it is reduced to it; if the maximum width is
|
||||
smaller than the column header width, it is increased to it). */
|
||||
- (void)sizeToFit
|
||||
{
|
||||
float new_width;
|
||||
|
@ -197,11 +292,17 @@
|
|||
/*
|
||||
* Controlling editability
|
||||
*/
|
||||
/**
|
||||
Set whether data in the column might be edited by the user by
|
||||
double-cliking on them. */
|
||||
- (void)setEditable: (BOOL)flag
|
||||
{
|
||||
_is_editable = flag;
|
||||
}
|
||||
|
||||
/**
|
||||
Return whether data displayed in the column can be edited by the
|
||||
user by double-cliking on them. */
|
||||
- (BOOL)isEditable
|
||||
{
|
||||
return _is_editable;
|
||||
|
@ -210,6 +311,10 @@
|
|||
/*
|
||||
* Setting component cells
|
||||
*/
|
||||
/**
|
||||
Set the cell used to display the column header. aCell can't be nil,
|
||||
otherwise a warning will be generated and the method call ignored.
|
||||
The old cell is released, the new one is retained. */
|
||||
- (void)setHeaderCell: (NSCell*)aCell
|
||||
{
|
||||
if (aCell == nil)
|
||||
|
@ -220,11 +325,21 @@
|
|||
ASSIGN (_headerCell, aCell);
|
||||
}
|
||||
|
||||
/**
|
||||
Return the cell used to display the column title. The default
|
||||
header cell is an NSTableHeaderCell. */
|
||||
- (NSCell*)headerCell
|
||||
{
|
||||
return _headerCell;
|
||||
}
|
||||
|
||||
/**
|
||||
Set the cell used to display data in the column. aCell can't be
|
||||
nil, otherwise a warning will be generated and the method ignored.
|
||||
The old cell is released, the new one is retained. If you want to
|
||||
change the attributes in which a single row in a column is
|
||||
displayed, you should better use a delegate for your NSTableView
|
||||
implementing tableView:willDisplayCell:forTableColumn:row:. */
|
||||
- (void)setDataCell: (NSCell*)aCell
|
||||
{
|
||||
if (aCell == nil)
|
||||
|
@ -235,6 +350,9 @@
|
|||
ASSIGN (_dataCell, aCell);
|
||||
}
|
||||
|
||||
/**
|
||||
Return the cell used to display data in the column. The default
|
||||
data cell is an NSTextFieldCell. */
|
||||
- (NSCell*)dataCell
|
||||
{
|
||||
return _dataCell;
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSTableHeaderCell.m
|
||||
/** <title>NSTableHeaderCell</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
/*
|
||||
NSTableHeaderView.m
|
||||
/** <title>NSTableHeaderView</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
Skeleton.
|
||||
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: December 1999
|
||||
First actual coding.
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSTableView.m
|
||||
/** <title>NSTableView</title>
|
||||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: March 2000, June 2000, August 2000, September 2000
|
||||
|
||||
Author: Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/*
|
||||
NSText.m
|
||||
/** <title>NSText</title>
|
||||
|
||||
The RTFD text class
|
||||
<abstract>The RTFD text class</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: July 1998
|
||||
Author: Daniel Bðhringer <boehring@biomed.ruhr-uni-bochum.de>
|
||||
Author: Daniel Bðhringer <boehring@biomed.ruhr-uni-bochum.de></email></author>
|
||||
Date: August 1998
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Date: March 2000
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSTextAttachment.m
|
||||
/** <title>NSTextAttachment</title>
|
||||
|
||||
Classes to represent text attachments.
|
||||
<abstract>Classes to represent text attachments.</abstract>
|
||||
|
||||
NSTextAttachment is used to represent text attachments. When inline,
|
||||
text attachments appear as the value of the NSAttachmentAttributeName
|
||||
|
@ -15,7 +14,7 @@
|
|||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Author: Fred Kiefer <fredkiefer@gmx.de>
|
||||
Author: Fred Kiefer <FredKiefer@gmx.de>
|
||||
Date: June 2000
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSTextContainer.m
|
||||
/** <title>NSTextContainer</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
@ -298,7 +297,7 @@
|
|||
- (NSRect) lineFragmentRectForProposedRect: (NSRect)proposedRect
|
||||
sweepDirection: (NSLineSweepDirection)sweepDir
|
||||
movementDirection: (NSLineMovementDirection)moveDir
|
||||
remainingRect: (NSRect*)remainingRect;
|
||||
remainingRect: (NSRect*)remainingRect
|
||||
{
|
||||
// line fragment rectangle simply must fit within the container rectangle
|
||||
*remainingRect = NSZeroRect;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
NSTextField.m
|
||||
/** <title>NSTextField</title>
|
||||
|
||||
Text field control class for text entry
|
||||
<abstract>Text field control class for text entry</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/*
|
||||
NSTextFieldCell.m
|
||||
/** <title>NSTextFieldCell</title>
|
||||
|
||||
Cell class for the text field entry control
|
||||
<abstract>Cell class for the text field entry control</abstract>
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
Date: November 1999
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/*
|
||||
NSTextStorage.m
|
||||
/** <title>NSTextStorage</title>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: 1999
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue