Commit graph

114 commits

Author SHA1 Message Date
Adam Fedor
77dde4b8bc Remove typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14865 72102866-910b-0410-8b05-ffd578937521
2002-10-29 04:54:44 +00:00
Adam Fedor
06a5c62fa5 Load prolog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14863 72102866-910b-0410-8b05-ffd578937521
2002-10-29 03:46:39 +00:00
Richard Frith-Macdonald
63ed41067f Attempted fix for multiple dealloc problems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14855 72102866-910b-0410-8b05-ffd578937521
2002-10-28 08:08:57 +00:00
Richard Frith-Macdonald
20247dac50 Rewrite key view handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14805 72102866-910b-0410-8b05-ffd578937521
2002-10-21 13:03:23 +00:00
Richard Frith-Macdonald
d73d397164 Fix error in last mod.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14759 72102866-910b-0410-8b05-ffd578937521
2002-10-13 10:13:38 +00:00
Richard Frith-Macdonald
47ee0f0312 Tidied for documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14758 72102866-910b-0410-8b05-ffd578937521
2002-10-13 09:16:17 +00:00
Nicola Pero
72d35ad13a Implemented pageUp: and pageDown:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14709 72102866-910b-0410-8b05-ffd578937521
2002-10-10 19:05:02 +00:00
Nicola Pero
4c709da872 Fixed sending out the controlTextDidBeginEditingNotification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14626 72102866-910b-0410-8b05-ffd578937521
2002-10-02 10:36:37 +00:00
Nicola Pero
e660df30bf Fixed moving to the end of the 'one before the last' line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14618 72102866-910b-0410-8b05-ffd578937521
2002-10-01 16:17:23 +00:00
Nicola Pero
dc4ff73bed Added FIXME
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14528 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:29:14 +00:00
Alexander Malmberg
6b9b10409f Don't set uses_font_panel and uses_ruler to YES until initialization is done.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14511 72102866-910b-0410-8b05-ffd578937521
2002-09-22 14:35:22 +00:00
Pierre-Yves Rivaille
f9bdd044b1 * Source/NSSplitView.m ([NSSplitView -initWithCoder:]):
set _never_displayed_before to YES.
* Source/NSFont.m: rearrange the last change to make
  it look like other classes' initWithCoder/encodeWithCoder
* Source/NSTextView.m: do not call _blink directly
  (suggested by Nicola Pero).
* Source/NSButtonCell.m
  ([NSButtonCell -drawInteriorWithFrame:inView:]):
  if the button is NSImageOnly, draw the dotted frame at
  the right location.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14483 72102866-910b-0410-8b05-ffd578937521
2002-09-18 18:00:30 +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
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
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
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
Nicola Pero
2347af5422 Implemented becomeKeyWindow
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14164 72102866-910b-0410-8b05-ffd578937521
2002-07-17 13:29:41 +00:00
Nicola Pero
a3a02d0f05 Added resignKeyWindow so that we don't try blinking when we are no longer
the key window


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14007 72102866-910b-0410-8b05-ffd578937521
2002-07-02 15:07:08 +00:00
Nicola Pero
aebc25e676 Removed check for height of line being 0, which should not be needed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13959 72102866-910b-0410-8b05-ffd578937521
2002-06-24 12:16:07 +00:00
Nicola Pero
4dcab12c71 More clean up in dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13633 72102866-910b-0410-8b05-ffd578937521
2002-05-12 11:23:12 +00:00
Nicola Pero
be371e47d7 Added missing #includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13442 72102866-910b-0410-8b05-ffd578937521
2002-04-11 23:17:42 +00:00
Fred Kiefer
bef97ec33b In [updateRuler] set the client view of the ruler view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13381 72102866-910b-0410-8b05-ffd578937521
2002-04-06 23:36:40 +00:00
Fred Kiefer
5c40c0f312 Made [updateRuler] save against missing rulers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13332 72102866-910b-0410-8b05-ffd578937521
2002-04-03 00:30:38 +00:00
Richard Frith-Macdonald
c1ffddcdc8 Rename middl toother mouse
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12948 72102866-910b-0410-8b05-ffd578937521
2002-03-02 07:23:18 +00:00
Nicola Pero
9bd438fbd4 Fixed bug in deleting characters in a textfield
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12865 72102866-910b-0410-8b05-ffd578937521
2002-02-28 01:25:49 +00:00
Fred Kiefer
cfc7234d1a Implemented [moveToBeginningOfParagraph:] and [moveToEndOfParagraph:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12858 72102866-910b-0410-8b05-ffd578937521
2002-02-27 23:36:13 +00:00
Fred Kiefer
742a2bc434 Added method [copySelection] and [pasteSelection] to put the
selected text in special pasteboard. The first gets called by
[setSelectedRange:affinity:stillSelecting:] while the later is
bound to [middleMouseUp:]. (This is hard coded, could the key
binding code handle this?)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12815 72102866-910b-0410-8b05-ffd578937521
2002-02-27 09:41:20 +00:00
Richard Frith-Macdonald
d95eb2ac84 More layout fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12608 72102866-910b-0410-8b05-ffd578937521
2002-02-20 19:39:15 +00:00
Nicola Pero
b7845d2a17 Fix for release count going below zero in dealloc :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12563 72102866-910b-0410-8b05-ffd578937521
2002-02-19 12:03:08 +00:00
Nicola Pero
6a3a289ea7 Updated setup of the text system for changes in NSLayoutManager
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12482 72102866-910b-0410-8b05-ffd578937521
2002-02-11 02:02:10 +00:00
Nicola Pero
4197a3cdd4 Tidied indentation of a line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12432 72102866-910b-0410-8b05-ffd578937521
2002-02-08 02:01:34 +00:00
Nicola Pero
1b09f51ad0 Simplified existing code for moving by words; added moving by words
and modifying selection


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12429 72102866-910b-0410-8b05-ffd578937521
2002-02-08 01:54:21 +00:00
Nicola Pero
f1dd23a32f Implemented moveBackwardsAndModifySelection: and moveForwardAndModifySelection:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12410 72102866-910b-0410-8b05-ffd578937521
2002-02-05 13:21:54 +00:00
Nicola Pero
ec39a9cf5e Implemented transpose: (which is bound to Control-t)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12394 72102866-910b-0410-8b05-ffd578937521
2002-02-03 14:00:40 +00:00
Nicola Pero
a0ef678ef1 Fixed declaration of the _blink method ... should take a NSTimer * arg
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12132 72102866-910b-0410-8b05-ffd578937521
2002-01-17 22:51:15 +00:00
Nicola Pero
e1f54eb120 Implemented activation of links when you click on them; only activate
attachments on the first click


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11959 72102866-910b-0410-8b05-ffd578937521
2002-01-03 09:46:00 +00:00
Nicola Pero
df7e037dab Minor cleaning/tidying up in -mouseDown:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11937 72102866-910b-0410-8b05-ffd578937521
2002-01-02 09:53:24 +00:00
Nicola Pero
431a40577f Tidied up the clickedOnLink:atIndex: method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11935 72102866-910b-0410-8b05-ffd578937521
2002-01-02 08:39:48 +00:00
Fred Kiefer
0adc332777 [dragOperationForDraggingInfo:type:] added NSDragOperationCopy to
the valid drag actions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11891 72102866-910b-0410-8b05-ffd578937521
2001-12-24 15:02:25 +00:00
Fred Kiefer
2d05f0e6a9 Added some NSResponder methods with empty code to keep the
NSInputManager quiet.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11887 72102866-910b-0410-8b05-ffd578937521
2001-12-23 13:29:37 +00:00
Fred Kiefer
7f8dba0b2f [writeSelectionToPasteboard:types:] corrected C binary operator
short cut logic	that prevented us froam adding more than one
string type to the pasteboard. Remember that || wont evaluate the
second operand if the first is true.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11885 72102866-910b-0410-8b05-ffd578937521
2001-12-23 02:15:40 +00:00
Nicola Pero
aac4630c79 Fixed typo in my last commit - a couple of lines being repeated twice
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11836 72102866-910b-0410-8b05-ffd578937521
2001-12-19 17:56:26 +00:00
Nicola Pero
800a2241d4 Fixed moveToEndOfLine: for empty lines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11828 72102866-910b-0410-8b05-ffd578937521
2001-12-19 00:31:20 +00:00
Adam Fedor
d47e202fbe Markup for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
2001-12-17 16:51:51 +00:00
Nicola Pero
832cd40f79 Implemented methods to move to the end/beginning of document/line, to move
forward/backward a word, and to select the current line


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11774 72102866-910b-0410-8b05-ffd578937521
2001-12-16 02:14:01 +00:00
Fred Kiefer
0944e78ce7 Corrected memory management in rulerview methods. Implemented
update ruler. Dummy implementation for new spell checking
methods. Implementation of new drag methods, use these in the
dragging protocol methods. Moved the NSTextInput methods into the
main category. Implemented some of them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11506 72102866-910b-0410-8b05-ffd578937521
2001-11-24 15:50:07 +00:00
Fred Kiefer
746cc159e4 Added code to rulerview delegate methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11491 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:28:43 +00:00
Fred Kiefer
cc9acbc54a Adopted implemtantion of [checkSpelling:] to changes in
NSSpellChecker. [updateSpellingPanelWithMisspelledWord:] is now
called from here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11301 72102866-910b-0410-8b05-ffd578937521
2001-11-03 09:56:02 +00:00
Fred Kiefer
6f2e0bf7a7 Added include for NSScrollView to avoid compiler warning.
[_blink] don't call [NSApp updateWindows], just redisplay our
window.
[mouseDown:] replaces all [_window flushWindow] with [self
displayIfNeeded].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11292 72102866-910b-0410-8b05-ffd578937521
2001-11-02 13:07:09 +00:00
Nicola Pero
b9e1b6d6ed Implemented blinking insertion point
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11287 72102866-910b-0410-8b05-ffd578937521
2001-10-31 01:09:07 +00:00