Commit graph

6027 commits

Author SHA1 Message Date
Nicola Pero
8d8c5d93ff Added include guards
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14436 72102866-910b-0410-8b05-ffd578937521
2002-09-13 07:38:25 +00:00
Pierre-Yves Rivaille
46630bd6de * Source/NSText.m ([NSText -initWithCoder:]):
Retain the decoded background color.

	* Source/NSTextView.m :
	multiple location: don't ignore textContainer's inset
	([NSTextView -initWithCoder:])
	([NSTextView -encodeWithCoder:])
	Encode caret color, textContainer's size and whether the
	textContainer has widthTracksTextView or heightTracksTextView set.
	([NSTextView -sizeToFit]) Change width (height) only if
	is_horizontally_resizable (is_vertically_resizable).
	([NSTextView -scrollRangeToVisible:]) scrolls to the first char of
	the range.
	([NSTextView -invalidateTextContainerOrigin]): Don't ignore inset,
	set the origin so that the justification is preserved even if the
	textContainer's width is larger that the textview's width.
	([NSTextView -updateInsertionPointStateAndRestartTimer:]):
	update and place the insertion point properly.
	([NSTextView -moveDown:]) & ([NSTextView -moveUp:]):
	Don't ignore inset. Make insertion point visible.

	* Source/NSTextField.m ([NSTextField -acceptsFirstResponder:]):
	responds NO if the editing is still in progrss.

	* Source/NSLayoutManager.m
	([NSLayoutManager -drawBackgroundForGlyphRange:atPoint:]):
	Don't ignore textContainer's inset.

	* Source/GSSimpleLayoutManager.m
	Replaced [-drawLinesInLineRange:] with [-drawLinesInLineRange:atPoint:].
	Replaced [-drawSelectionAsRangeNoCaret:] with
	[-drawSelectionAsRangeNoCaret:atPoint:].
	Those replacements make it easier to take inset into account.
	([-lineFragmentUsedRectForGlyphAtIndex:effectiveRange:])
	([-locationForGlyphAtIndex:])
	([-boundingRectForGlyphRange:inTextContainer:])
	([-rectForCharacterIndex:])
	([-setNeedsDisplayForLineRange:inTextContainer:]):
	Various fixes.
	([-textStorage:edited:range:changeInLength:invalidatedRange:])
	Update insertion point if needed (useful when alignment changes).
	([-rebuildForRange:delta:inTextContainer:]):
	Update layout mechanism.

	* Source/NSCell.m
	([NSCell -highlight:withFrame:inView:]):
	Ask the control to draw the background if we are not opaque.
	([NSCell -editWithFrame:inView:editor:delegate:event:]):
	([NSCell -selectWithFrame:inView:editor:delegate:start:length:]):
	([NSCell -endEditing:]):
	instantiate (and remove) the textview so that it can be scrolled.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14429 72102866-910b-0410-8b05-ffd578937521
2002-09-11 20:26:27 +00:00
Adam Fedor
f11cd9a3e5 Switch to disable gsnd.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14424 72102866-910b-0410-8b05-ffd578937521
2002-09-10 03:03:39 +00:00
Adam Fedor
01765b367c Fix up for change in NSBrowser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14419 72102866-910b-0410-8b05-ffd578937521
2002-09-08 04:21:10 +00:00
Adam Fedor
9feb05cdf8 Add back +initialize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14418 72102866-910b-0410-8b05-ffd578937521
2002-09-08 03:23:31 +00:00
Adam Fedor
864071096e Convert comments for gsdoc. Updated delegate calls. Conformto MacOSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14417 72102866-910b-0410-8b05-ffd578937521
2002-09-08 03:06:45 +00:00
Fred Kiefer
74d17f06e4 New MacOSX methods for NSAttributedString.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14416 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:41:18 +00:00
Fred Kiefer
b5c268588a Corrected includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14415 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:39:52 +00:00
Fred Kiefer
fa182b53a4 Implemented [textFileTypes], [textPasteboardTypes],
[textUnfilteredFileTypes], [textUnfilteredPasteboardTypes].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14414 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:38:57 +00:00
Fred Kiefer
497a0d707f Define new MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14413 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:38:11 +00:00
Fred Kiefer
187c44c4aa Moved NSAttributedString text attachment method declarations to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14412 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:37:50 +00:00
Fred Kiefer
04a03d6a6a Define protocol for method [classForFormat:producer:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14411 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:37:12 +00:00
Fred Kiefer
3ab8125bb6 Define NSHTMLPboardType.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14410 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:36:28 +00:00
Fred Kiefer
24c9cc59c0 Release the invocation in [detachDrawingThread:toTarget:withObject:]
not in the helper method. (Patch by David Ayers <d.ayers@inode.at>).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14409 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:35:29 +00:00
Adam Fedor
6539cba2c9 Printing, cString fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14407 72102866-910b-0410-8b05-ffd578937521
2002-09-06 19:31:00 +00:00
Fred Kiefer
98e6a191af adopted NSApplication for MacOSX.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14406 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:35:57 +00:00
Fred Kiefer
08a0b57a5e Removed methods that belong to other files. Added types and method
definitions for MacOSX.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14405 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:34:58 +00:00
Fred Kiefer
4f17c96dc2 Moved the method [NSApplication runPageLayout:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14404 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:34:26 +00:00
Fred Kiefer
c996f959e8 Moved the method [NSApplication orderFrontDataLinkPanel:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14403 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:33:57 +00:00
Fred Kiefer
ba63a0123b Moved the method [NSApplication orderFrontHelpPanel:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14402 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:33:31 +00:00
Fred Kiefer
893f70929d Moved the method [NSApplication orderFrontColorPanel:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14401 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:33:06 +00:00
Fred Kiefer
f6b4091ddc Implemented [detachDrawingThread:toTarget:withObject:].
[sendAction:to:from:] now uses [targetForAction:to:from:]. Removed
moved methods. [orderFrontStandardAboutPanel:] now calles
[orderFrontStandardInfoPanelWithOptions:] so that subclasses only
have to overwritte this. Split up parts of [terminate:] into
[replyToApplicationShouldTerminate:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14400 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:30:07 +00:00
Nicola Pero
77df79e1fb Start blinking of insertion point from 'on' when typing in textviews
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14399 72102866-910b-0410-8b05-ffd578937521
2002-09-05 10:43:06 +00:00
Nicola Pero
1766f31c27 Make sure to start blinking of insertion point from the 'on' - makes much
nicer typing


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14398 72102866-910b-0410-8b05-ffd578937521
2002-09-05 10:42:07 +00:00
Adam Fedor
0789fe9ede Version 0.8.1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14392 72102866-910b-0410-8b05-ffd578937521
2002-09-01 21:37:00 +00:00
Adam Fedor
3b2a0b7447 New announce
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14391 72102866-910b-0410-8b05-ffd578937521
2002-09-01 21:35:55 +00:00
Alexander Malmberg
b52d785f08 Handle curves correctly when appending a path. Fix numerical stability issue in appendBezierPathWithArcFromPoint:toPoint:radius:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14369 72102866-910b-0410-8b05-ffd578937521
2002-08-29 22:14:48 +00:00
Richard Frith-Macdonald
80b0d5b3a9 Documentation fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14368 72102866-910b-0410-8b05-ffd578937521
2002-08-29 10:07:51 +00:00
Fred Kiefer
4c2cc83e47 Implemented [NSBezierPath appendBezierPathWithArcFromPoint:toPoint:radius:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14364 72102866-910b-0410-8b05-ffd578937521
2002-08-28 22:03:48 +00:00
Fred Kiefer
8e9fb492a7 Implemented [appendBezierPathWithArcFromPoint:toPoint:radius:]
with code from Alexander Malmberg <alexander@malmberg.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14363 72102866-910b-0410-8b05-ffd578937521
2002-08-28 22:02:42 +00:00
Adam Fedor
8a2511700f Set horizontal scroller frame only if we have one
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14354 72102866-910b-0410-8b05-ffd578937521
2002-08-27 15:49:06 +00:00
Adam Fedor
bdd9747e9b Get browser from defaults
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14338 72102866-910b-0410-8b05-ffd578937521
2002-08-27 03:16:54 +00:00
Adam Fedor
4ee8c3ff31 Don't add ourselves to the superview if we are the contentView of an NSBox.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14337 72102866-910b-0410-8b05-ffd578937521
2002-08-27 03:06:29 +00:00
Adam Fedor
24c44dd051 Fix window mouseUp. Doc building
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14327 72102866-910b-0410-8b05-ffd578937521
2002-08-25 02:47:00 +00:00
Alexander Malmberg
23625fe2a5 Use a compositerect to clear the alpha channel if the background color isn't opaque.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14320 72102866-910b-0410-8b05-ffd578937521
2002-08-23 00:40:41 +00:00
Adam Fedor
fade59e867 Define colorspace constants
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14293 72102866-910b-0410-8b05-ffd578937521
2002-08-16 14:11:16 +00:00
Adam Fedor
2a18e16f82 Typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14290 72102866-910b-0410-8b05-ffd578937521
2002-08-16 03:28:08 +00:00
Adam Fedor
22f15da30b Replace APPKIT_DECLARE with APPKIT_EXPORT
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14289 72102866-910b-0410-8b05-ffd578937521
2002-08-16 03:27:05 +00:00
Adam Fedor
bc77b5db89 Typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14288 72102866-910b-0410-8b05-ffd578937521
2002-08-16 03:17:22 +00:00
Adam Fedor
8346cb025d Add OpenBSD header/ldflags
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14286 72102866-910b-0410-8b05-ffd578937521
2002-08-16 03:12:17 +00:00
Nicola Pero
5d970ad3d3 Don't flip coordinates when autosaving window frames
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14261 72102866-910b-0410-8b05-ffd578937521
2002-08-09 10:15:24 +00:00
Nicola Pero
41d98526bc Dont' flip coordinates in frame autosaved strings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14260 72102866-910b-0410-8b05-ffd578937521
2002-08-09 10:14:45 +00:00
Pierre-Yves Rivaille
f4cc3d1d83 Source/NSSplitView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14235 72102866-910b-0410-8b05-ffd578937521
2002-08-05 11:56:29 +00:00
Pierre-Yves Rivaille
898524e393 Source/NSView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14233 72102866-910b-0410-8b05-ffd578937521
2002-08-03 15:45:11 +00:00
Adam Fedor
f51c1bbf10 Merge from 0.8.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14232 72102866-910b-0410-8b05-ffd578937521
2002-08-03 03:32:19 +00:00
Pierre-Yves Rivaille
ecd458c9cd Source/NSTabVIew.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14228 72102866-910b-0410-8b05-ffd578937521
2002-08-02 09:46:28 +00:00
Adam Fedor
7285af1d1b Check for recent version of audiofile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14223 72102866-910b-0410-8b05-ffd578937521
2002-08-01 18:58:32 +00:00
Adam Fedor
49c84e31ce Install NSSound.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14218 72102866-910b-0410-8b05-ffd578937521
2002-07-31 15:19:43 +00:00
Adam Fedor
22b5e4c517 Sound install fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14217 72102866-910b-0410-8b05-ffd578937521
2002-07-31 14:13:17 +00:00
Adam Fedor
b874ffa8f7 NSSound implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14216 72102866-910b-0410-8b05-ffd578937521
2002-07-30 21:19:05 +00:00