Commit graph

324 commits

Author SHA1 Message Date
Alexander Malmberg
eaec5ebcea (-initWithFrame:textContainer:): Make the default text container inset (2,0).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15751 72102866-910b-0410-8b05-ffd578937521
2003-01-28 21:23:51 +00:00
Alexander Malmberg
314e298be1 Avoid making calls to the layout manager with invalid arguments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15748 72102866-910b-0410-8b05-ffd578937521
2003-01-28 17:00:28 +00:00
Alexander Malmberg
31c38c8183 (-mouseDown:): Handle empty text views. (-drawRect:): Always draw glyphs' backgrounds.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15740 72102866-910b-0410-8b05-ffd578937521
2003-01-27 15:19:15 +00:00
Alexander Malmberg
5b78652c15 Make sure the typing attributes are always a mutable dictionary that we can modify.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15724 72102866-910b-0410-8b05-ffd578937521
2003-01-26 19:42:03 +00:00
Alexander Malmberg
66c63d5580 Make sure the typing attributes are always a mutable dictionary that we can modify.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15722 72102866-910b-0410-8b05-ffd578937521
2003-01-26 19:36:57 +00:00
Alexander Malmberg
9407b0bfca Merge in text-system-branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15718 72102866-910b-0410-8b05-ffd578937521
2003-01-26 19:21:40 +00:00
Fred Kiefer
f10e76e245 Changed all the internal methods ([replaceCharacterRange:withString:],
[setFont:range:], [setTextColor:range:], [setalignment:range:],
[replaceRange:withAttributedString:], [setAtrributes:range:]) not
to call [shouldChangeTextInRange:replacementString:], so that they
can be called for a non editable text view.
Added this call to the methods: [insertText:], [transpose:],
[changeColor:], [alignCenter:], [alignLeft:], [alignRight:],
[alignJustified:], [readSelectionFromPasteboard:type:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15546 72102866-910b-0410-8b05-ffd578937521
2003-01-08 16:35:28 +00:00
Nicola Pero
9cdaef32c7 Renamed setFont:ofRange: to setFont:range:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15333 72102866-910b-0410-8b05-ffd578937521
2002-12-25 16:58:28 +00:00
Adam Fedor
e43ebddc33 Remove comment of set editable, not ready to make this yet.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14908 72102866-910b-0410-8b05-ffd578937521
2002-11-02 23:20:58 +00:00
Adam Fedor
52b116f1f4 Add dragging of ruler markers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14907 72102866-910b-0410-8b05-ffd578937521
2002-11-02 23:17:23 +00:00
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
Nicola Pero
e9f5fe627b Check if an attachment was clicked every time we have attachments, not
only if we import graphics


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11227 72102866-910b-0410-8b05-ffd578937521
2001-10-23 20:58:11 +00:00
Nicola Pero
5128fe7499 Indentation tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10813 72102866-910b-0410-8b05-ffd578937521
2001-08-30 18:36:06 +00:00
Adam Fedor
08c97488f8 Prevent NSTextView from asking a text storage of zero length
for attributes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10731 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:28:27 +00:00
Nicola Pero
5320d8d0ec Fixed setString: when there is no previous string, so that it uses
the typingAttributes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10691 72102866-910b-0410-8b05-ffd578937521
2001-08-13 11:44:42 +00:00
Gregory John Casamento
016e021fc1 Added nextKeyView to views withing gmodel to allow user to tab between buttons. Fixed a bug in NSBrowser. Made some corrections to NSSpellChecker and [NSTextView checkSpelling:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10641 72102866-910b-0410-8b05-ffd578937521
2001-08-03 05:16:49 +00:00
Adam Fedor
a56278096e Merge from 0.7.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10329 72102866-910b-0410-8b05-ffd578937521
2001-07-09 02:49:03 +00:00
Nicola Pero
8ef9a8a337 Tidied macro syntax which was giving warnings on new compilers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10122 72102866-910b-0410-8b05-ffd578937521
2001-06-08 23:36:06 +00:00
Fred Kiefer
5e273a37d1 Implemented some basic handling for mouse down on attachment cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10072 72102866-910b-0410-8b05-ffd578937521
2001-06-04 16:25:32 +00:00
Mirko Viviani
60b8f20ce4 * Source/NSButtonCell.m ([NSButtonCell -setCellAttribute:to:]):
implemented.
([NSButtonCell -cellAttribute:]): implemented.

* Source/NSPopUpButton.m ([NSPopUpButton -keyDown:]): implemented
keyboard selection.
([NSPopUpButton -resignFirstResponder]): implemented.
([NSPopUpButton -resignKeyWindow]): implemented.

* Source/NSPopUpButtonCell.m ([NSPopUpButtonCell
-drawInteriorWithFrame:inView:]): from -drawWithFrame:inView:

* Source/NSButton.m ([NSButton -becomeFirstResponder]): set cell first
responder.
([NSButton -resignFirstResponder]): likewise.
([NSButton -becomeKeyWindow]): likewise.
([NSButton -resignKeyWindow]): likewise.

* Source/NSBrowserCell.m ([NSBrowserCell -drawInteriorWithFrame:
inView:]): draw correct dotted box.

* Source/NSBrowser.m ([NSBrowser -becomeFirstResponder]): make first
responder the latest column.
([NSBrowser -acceptsFirstResponder]): accepts first responder status.
([NSBrowser -keyDown:]): handle tabs to select next/previous key view.
([NSBrowser -moveRight:]): make browser column the first responder.
([NSBrowser -moveUp:]): likewise.
([NSBrowser -moveDown:]): likewise.
([NSBrowser -moveLeft:]): likewise.
([NSBrowser -_unloadFromColumn:]): remove columns from superview and
array.
([NSBrowser -_remapColumnSubviews:]): set the correct first responder.

* Source/NSWindow.m ([NSWindow -sendEvent:]): retain/release first
responder for keyUp/keyDown events. Discard NSLeftMouseDown for closed
windows.
([NSWindow -dealloc]): release _originalResponder

* Source/NSView.m ([NSView -removeSubview:]): remove next responder.

* Source/NSCell.m ([NSCell -setUpFieldEditorAttributes:]): clear
selected range.
([NSCell -editWithFrame:inView:editor:delegate:event:]): redisplay
textObject after invoking mouseDown:
([NSCell -drawInteriorWithFrame:inView:]): draw dotted-line outline
when first responder.
([NSCell -setCellAttribute:to:]): implemented.

* Source/NSTextView.m ([NSTextView -moveUp:]): don't call
_illegalMovement: for the text field editor.
([NSTextView -moveDown:]): likewise.
([NSTextView -moveLeft:]): likewise.
([NSTextView -moveRight:]): likewise.

* Source/NSTextField.m ([NSTextField -textDidEndEditing:]): fixed
return/tab/backtab text movement code.

* Headers/gnustep/gui/NSGraphics.h: added NSDottedFrameRect prototype.

* Headers/gnustep/gui/NSMatrix.h: added ivars for dotted frame rect.
* Source/NSMatrix.m ([NSMatrix -selectCell:]): implemented.
([NSMatrix -_selectCell:atRow:column:]): new method.
([NSMatrix -selectCellAtRow:column:]): call _selectCell:atRow:column:
([NSMatrix -selectCellWithTag:]): likewise.
([NSMatrix -selectAll:]): Do not select disabled or editable cells.
([NSMatrix -textDidEndEditing:]): fixed return/tab/backtab text
movement code.
([NSMatrix -_selectNextSelectableCellAfterRow:column:]): don't select
disabled cells.
([NSMatrix -_selectPreviousSelectableCellBeforeRow:column:]): likewise.
([NSMatrix -_privateFrame:mode:numberOfRows:numberOfColumns:]): set
dottedRow and dottedColumn.
([NSMatrix -insertRow:withCells:]): likewise.
([NSMatrix -removeColumn:]): likewise.
([NSMatrix -removeRow:]): likewise.
([NSMatrix -mouseDown:]): likewise and discard disabled cells.
([NSMatrix -drawRect:]): set shows cell first responder.
([NSMatrix -becomeFirstResponder]): draw dotted box for cell.
([NSMatrix -resignFirstResponder]): likewise.
([NSMatrix -becomeKeyWindow]): likewise.
([NSMatrix -resignKeyWindow]): likewise.
([NSMatrix -_setNeedsDisplayDottedCell]): likewise.
([NSMatrix -selectTextAtRow:column:]): set shows cell first responder.
([NSMatrix -setState:atRow:column:]): likewise. Deselect previous
selected cell in radio mode.

* Source/NSSavePanel.m (createRowsForColumn:): use _gsSavePanelCompare:
and check extension against _requiredFileType and not "app", "bundle",
etc.
([NSString -_gsSavePanelCompare:]): filename compare.
([NSSavePanel -_initWithoutGModel]): set key view for keyboard
interaction.
([NSSavePanel -keyDown:]): removed.
([NSSavePanel -controlTextDidEndEditing:]): removed.

* Source/NSOpenPanel.m ([NSOpenPanel -_shouldShowExtension:isDir:]):
added isDir argument.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9473 72102866-910b-0410-8b05-ffd578937521
2001-03-22 00:27:37 +00:00
Nicola Pero
b24794ed3c Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9037 72102866-910b-0410-8b05-ffd578937521
2001-02-07 20:35:13 +00:00
Nicola Pero
a7967b1511 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8687 72102866-910b-0410-8b05-ffd578937521
2001-01-18 23:04:04 +00:00
Nicola Pero
3ae06c1286 Changes for better cursor movement
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8591 72102866-910b-0410-8b05-ffd578937521
2001-01-14 11:32:07 +00:00
Nicola Pero
e35c3b51e9 Rewritten deleting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8562 72102866-910b-0410-8b05-ffd578937521
2001-01-11 23:32:49 +00:00
Nicola Pero
44a4abdda9 Sizing improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8485 72102866-910b-0410-8b05-ffd578937521
2001-01-07 01:05:44 +00:00
Richard Frith-MacDonald
a6a81013c4 A few copy/paste fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8466 72102866-910b-0410-8b05-ffd578937521
2001-01-03 10:39:02 +00:00
Richard Frith-MacDonald
afc3dfd686 More selection fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8451 72102866-910b-0410-8b05-ffd578937521
2000-12-27 07:39:25 +00:00
Richard Frith-MacDonald
7fdaabcdde Selection fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8450 72102866-910b-0410-8b05-ffd578937521
2000-12-27 06:28:29 +00:00
Nicola Pero
bb8c149fce Rewritten setting typing attributes from insertion point; tidied, minor
changes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8416 72102866-910b-0410-8b05-ffd578937521
2000-12-23 13:07:36 +00:00
Nicola Pero
901d2114eb Implemented notifications to the delegate about changes in the selection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8412 72102866-910b-0410-8b05-ffd578937521
2000-12-22 19:08:29 +00:00
Nicola Pero
a53e0a5769 Implemented shift click; moved code around
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8409 72102866-910b-0410-8b05-ffd578937521
2000-12-22 17:52:23 +00:00
Nicola Pero
85ff7509fc Work on drawing insertion point
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8407 72102866-910b-0410-8b05-ffd578937521
2000-12-22 16:57:21 +00:00
Nicola Pero
2a0c9fda52 Use layout manager's ivars for flags shared between textviews with the same
layout manager; fixed/implemented notifications, begin/end editing etc


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8399 72102866-910b-0410-8b05-ffd578937521
2000-12-21 17:32:01 +00:00
Nicola Pero
ed69dee7f2 Tidyups, access some ivars directly, and a bug fix for scrolling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8386 72102866-910b-0410-8b05-ffd578937521
2000-12-20 22:56:40 +00:00
Nicola Pero
6455046227 Merged NSText code into NSTextView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8383 72102866-910b-0410-8b05-ffd578937521
2000-12-20 17:00:32 +00:00
Nicola Pero
7427870911 Added NSText notifications to delegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8380 72102866-910b-0410-8b05-ffd578937521
2000-12-20 12:50:15 +00:00
Nicola Pero
be3091ea03 Moved selectedRange and setSelectedRange: from NSText
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8377 72102866-910b-0410-8b05-ffd578937521
2000-12-19 22:35:22 +00:00
Nicola Pero
a20166067f Fix in my last change, plus some verbose comments added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8375 72102866-910b-0410-8b05-ffd578937521
2000-12-19 21:20:39 +00:00
Nicola Pero
9a852c5fe4 Added code to share editing attributes and delegate between multiple
text views with the same layout manager


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8371 72102866-910b-0410-8b05-ffd578937521
2000-12-19 18:45:19 +00:00
Nicola Pero
da6a352dd3 Imported some code from NSText; removed lots of methods already implemented
in NSText (the superclass)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8366 72102866-910b-0410-8b05-ffd578937521
2000-12-19 15:34:21 +00:00
Nicola Pero
d3c3d91e82 Moved some code from NSText
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8360 72102866-910b-0410-8b05-ffd578937521
2000-12-18 22:07:28 +00:00
Nicola Pero
b7a8dc9399 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8355 72102866-910b-0410-8b05-ffd578937521
2000-12-18 18:08:21 +00:00
Nicola Pero
abed70f622 Retain/release fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8339 72102866-910b-0410-8b05-ffd578937521
2000-12-16 20:19:18 +00:00
Fred Kiefer
9aa55f49e5 Use text container implementation from super class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7674 72102866-910b-0410-8b05-ffd578937521
2000-09-30 23:11:50 +00:00
Fred Kiefer
915919b6a5 [initWithFrame:] switch of the creation of a NSLayoutManager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7545 72102866-910b-0410-8b05-ffd578937521
2000-09-18 23:34:02 +00:00
Nicola Pero
854819af64 Fixed linking to the text container during initialization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7466 72102866-910b-0410-8b05-ffd578937521
2000-09-10 21:38:04 +00:00
Fred Kiefer
4f98e88b87 Use more implementation from super to make this class temporary working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7373 72102866-910b-0410-8b05-ffd578937521
2000-09-04 18:41:59 +00:00
Adam Fedor
8298410a10 Merge 0.6.6 branch into main.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7188 72102866-910b-0410-8b05-ffd578937521
2000-08-07 22:06:04 +00:00
Fred Kiefer
4b02e5cd2c [setAllowsUndo:] and [allowsUndo] now use ivar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6851 72102866-910b-0410-8b05-ffd578937521
2000-07-01 12:10:37 +00:00
Adam Fedor
136417828c Use GS_PASS_ARGUMENTS
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6844 72102866-910b-0410-8b05-ffd578937521
2000-06-29 14:25:07 +00:00
Fred Kiefer
1ffed54308 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6703 72102866-910b-0410-8b05-ffd578937521
2000-06-16 17:12:25 +00:00
Fred Kiefer
0d43d397ab Call super methods for pasteboard. Moved drag registration back to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6615 72102866-910b-0410-8b05-ffd578937521
2000-05-23 22:59:36 +00:00
Fred Kiefer
ef4a38f178 Added basic code for the character formating methods and call super
implementation for methods that moved up into NSText. Later we may
remove the implementation of these methods here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6603 72102866-910b-0410-8b05-ffd578937521
2000-05-20 16:57:04 +00:00
Fred Kiefer
2cd62b8b5f Adopted to changes in header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6595 72102866-910b-0410-8b05-ffd578937521
2000-05-13 14:28:02 +00:00
Richard Frith-MacDonald
91e30dedde Various text/font fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6291 72102866-910b-0410-8b05-ffd578937521
2000-03-16 14:16:46 +00:00
Adam Fedor
b33bb418f4 Merge from 0.6.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6040 72102866-910b-0410-8b05-ffd578937521
2000-02-19 00:40:47 +00:00
Nicola Pero
bb4b512849 Updated for change in NSView ivar names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5732 72102866-910b-0410-8b05-ffd578937521
2000-01-10 02:30:45 +00:00
Adam Fedor
0bfd542562 Merge from dawn
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4853 72102866-910b-0410-8b05-ffd578937521
1999-09-09 02:56:20 +00:00
Michael Silva
6ef83b3719 Lots of fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4844 72102866-910b-0410-8b05-ffd578937521
1999-09-07 08:59:35 +00:00
Michael Silva
a73d9b885a A load of changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4724 72102866-910b-0410-8b05-ffd578937521
1999-08-19 23:18:25 +00:00
Michael Silva
f7184fd337 More text fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4642 72102866-910b-0410-8b05-ffd578937521
1999-07-25 03:34:10 +00:00
Michael Silva
a7f52772bc Fixes to the text network.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4641 72102866-910b-0410-8b05-ffd578937521
1999-07-24 22:24:14 +00:00
Michael Silva
d518bc6a5e Fixed problems galore. :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4599 72102866-910b-0410-8b05-ffd578937521
1999-07-15 17:32:38 +00:00
Michael Silva
8c83ccf86e A miriad of changes, look at ChangeLogs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4497 72102866-910b-0410-8b05-ffd578937521
1999-06-30 03:10:38 +00:00
Michael Silva
acf7614115 NSText works!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4457 72102866-910b-0410-8b05-ffd578937521
1999-06-22 23:37:24 +00:00
Michael Silva
273e404139 Added NSRuler*.h and fixed a few bugs in NSText.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3769 72102866-910b-0410-8b05-ffd578937521
1999-02-22 00:41:22 +00:00
Richard Frith-MacDonald
663c70afac Corrected delegate setup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3731 72102866-910b-0410-8b05-ffd578937521
1999-02-17 09:13:43 +00:00
Adam Fedor
2ec2e70df2 Preliminary drawing engine
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3222 72102866-910b-0410-8b05-ffd578937521
1998-11-16 20:32:48 +00:00
Felipe A. Rodriguez
388f29cf3c * NSApplication.m minor optimiztions.
* NSAttributedString.m sizeWithAttributes: implement tab support.
	* NSStringDrawing.m sizeWithAttributes: implement tab support.
	* NSScroller.m trackScrollButtons: add temporary hack in support of XRAW's
		heavily optimized scrolling machinery.
	* NSScroller.m remove sendAction:to:
	* NSScrolView.m _doScroll: implement scroller update when scrolling via
		buttons
	* NSScrolView.m reflectScrolledClipView comment out setNeedsDisplay as it
		causes display flicker.
	* NSText.m add changes from Daniel B�hringer, set initFrame to default
		values to prevent infinite loop in rebuildLineLayout, minor tweaks
	* NSView.m minor optimiztions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3071 72102866-910b-0410-8b05-ffd578937521
1998-10-15 12:04:53 +00:00
Felipe A. Rodriguez
74e179a05d * NSFileWrapper.m and NSFileWrapper.h added preliminary implementations
in support of Daniel B�hringer's work on the text classes
	* NSText.m added changes by Daniel B�hringer
	* Tools/gpbs.m added dummy defines of some backend function


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2952 72102866-910b-0410-8b05-ffd578937521
1998-09-02 15:05:13 +00:00
Felipe A. Rodriguez
6352f5f571 * GNUmakefile added NSAttributedString.m, NSAttributedString.h,
NSParagraphStyle.m, NSTextAttachment.h, NSTextContainer.h,
		NSTextStorage.h, NSLayoutManager.h and NSParagraphStyle.h.
	* Source added NSParagraphStyle.m.
	* Headers/Appkit added NSTextAttachment.h, NSTextContainer.h,
		NSTextStorage.h, NSLayoutManager.h and NSParagraphStyle.h files.
	* NSText.m and NSText.h. added numerous changes by Daniel B�hringer
	* NSTextView.m and NSTextView.h. added numerous changes by Daniel B�hringer


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2944 72102866-910b-0410-8b05-ffd578937521
1998-09-01 13:23:23 +00:00
Felipe A. Rodriguez
03a5e921d4 * NSTextView.m commented out references to defaultTypingAttributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2937 72102866-910b-0410-8b05-ffd578937521
1998-08-20 10:43:36 +00:00
Felipe A. Rodriguez
2b9b066fcc * NSSplitView.m in drawRect moved NSRectFill() to backend
* NSSavePanel.m commented out call to NSRunAlertPanel
	* NSText.h and NSText.m integrated source from Daniel B�hringer.
	* NSTextView.h and NSTextView.m integrated source from Daniel B�hringer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2936 72102866-910b-0410-8b05-ffd578937521
1998-08-20 09:56:26 +00:00
Felipe A. Rodriguez
fd64d9ffb9 * NSView.h added specific values and comments to resize constants enum.
* NSView.m implemented resizeWithOldSuperviewSize (needs work).
	* NSMatrix.m mousedown clarified description comment.
	* NSSavePanel.m integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSSavePanel.h integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSOpenPanel.m integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSOpenPanel.h integrated source from Daniel B�hringer into premliminary
		implementations provided by Scott Christley.
	* NSStringDrawing.h defined NSAttributedString portion of extension.
	* NSAttributedString.h created preliminary implementation of extension.
	* Appkit.h added includes for NSAttributedString and NSStringDrawing.
	* NSPasteboard.h added extern NSRTFDPboardType define.
	* externs.m defined NSRTFDPboardType.
	* NSText.h integrated source from Daniel B�hringer
	* NSTextView.m preliminary implementation from Daniel B�hringer
	* NSTextView.h preliminary implementation from Daniel B�hringer
	* NSSplitView.m in drawRect use NSRectFill()


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2934 72102866-910b-0410-8b05-ffd578937521
1998-08-19 09:00:26 +00:00
Ovidiu Predescu
8f9aad2c38 Fixes to make the code work with the BaseFinderOpen port to GNUstep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2713 72102866-910b-0410-8b05-ffd578937521
1998-01-30 00:34:25 +00:00