Frank Le Grand
4b27157a46
Merged Trunk changes from rev 35219 to TestPlant branch.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36953 72102866-910b-0410-8b05-ffd578937521
2013-08-09 14:24:48 +00:00
Marcian Lytwyn
36e77b95f7
Merge from revision 35723 from main branch plus NSCell allowsUndo flag extract from xib
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35724 72102866-910b-0410-8b05-ffd578937521
2012-10-19 22:51:20 +00:00
Wolfgang Lux
ed3c950428
Implement NSTextView -deleteToEndOfParagraph:, which was introduced in
...
OS X 10.3.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33378 72102866-910b-0410-8b05-ffd578937521
2011-06-26 09:20:01 +00:00
Wolfgang Lux
251ee4d491
Fix implementation of NSTextView -deleteToEndOfLine: to work in the
...
same way as under Emacs and OS X. In particular, the action now
deletes the newline character when the insertion point is at the end
of a line.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33377 72102866-910b-0410-8b05-ffd578937521
2011-06-26 09:12:40 +00:00
Fred Kiefer
ae4392c882
Add basic implementation for more action methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33272 72102866-910b-0410-8b05-ffd578937521
2011-06-10 08:31:22 +00:00
Fred Kiefer
ddcbd5cada
* Source/externs.m: Correct the strings for NSPrintPanel.
...
* Source/NSAttributedString.m (-setBaseWritingDirection:range:):
Add proper implementation for this method.
* Source/NSTextView_actions.m (-insertContainerBreak:,
-insertLineBreak): Add this methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33254 72102866-910b-0410-8b05-ffd578937521
2011-06-06 11:33:40 +00:00
Wolfgang Lux
6d47950759
Add missing assignment to update the typing attributes after deleting
...
backward in an NSTextView, which accidentally was omitted while
committing r30055.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31641 72102866-910b-0410-8b05-ffd578937521
2010-11-22 16:03:20 +00:00
Wolfgang Lux
4e3817c049
Implement additional NSResponder action methods to scroll to the
...
beginning and end of a document, respectively.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30057 72102866-910b-0410-8b05-ffd578937521
2010-03-27 22:03:34 +00:00
Wolfgang Lux
f3b6c1fe6f
Usability improvements: When setting the cursor to the beginning of a
...
line, set the typing attributes to the attributes of the first character
of that line rather than the preceding newline. When deleting text, set
the typing attributes to those of the first deleted character rather
than those of the character preceding the deleted range.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30055 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:41:29 +00:00
Wolfgang Lux
9eb497b703
Implement the NSText kill buffer. Ctrl-k and Ctrl-y in a text view now
...
work as under Emacs and OS X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29585 72102866-910b-0410-8b05-ffd578937521
2010-02-12 15:54:29 +00:00
Wolfgang Lux
fc16eea0dd
Implement smart insert and delete and use it when cutting, copying,
...
pasting, and deleting full words in a text view or text field.
Note: I have changed NSTextView initialization to enable smart insert
and delete by default, since this is the default on OS X. (It is even
documented, though in a maybe obscure place, cf. "Text Editing
Programming Guide for Cocoa: Subclassing NSTextView".) However, this
means that support for this feature will be somewhat inconsistent.
Smart insert and delete is enabled for text views created
programmatically (including the field editor), but not for text views
loaded from existing nib files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29426 72102866-910b-0410-8b05-ffd578937521
2010-01-27 23:26:09 +00:00
Fred Kiefer
8bd9424ef9
Move the validateUserIntefaceItem back to NSTextView.m
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29019 72102866-910b-0410-8b05-ffd578937521
2009-11-16 11:17:20 +00:00
Wolfgang Lux
84a6777ed7
Implement menu and user interface item validation for NSTextView. The
...
list of validated actions is incomplete but at least includes all
items from a standard Edit menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29012 72102866-910b-0410-8b05-ffd578937521
2009-11-14 22:25:22 +00:00
Wolfgang Lux
1e913741b4
Enable Ctrl-l keybinding and add Ctrl-o keybinding as in Emacs and Cocoa.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28961 72102866-910b-0410-8b05-ffd578937521
2009-11-05 22:41:45 +00:00
Wolfgang Lux
ad13684362
Fix implementation of NSTextView's transpose action to really match
...
the implementation of Emacs' transpose command.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27366 72102866-910b-0410-8b05-ffd578937521
2008-12-21 11:40:58 +00:00
Wolfgang Lux
8279ffddbb
Replace NSTextView's provisional implementation of
...
-centerSelectionInVisibleArea: by a correct one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27365 72102866-910b-0410-8b05-ffd578937521
2008-12-21 11:31:55 +00:00
Wolfgang Lux
50af44f4e8
Add a provisional implementation of the centerSelectionInVisibleArea:
...
responder method to NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27267 72102866-910b-0410-8b05-ffd578937521
2008-12-09 21:47:55 +00:00
Adam Fedor
7afdd32ac1
Revert library license version to 2 until applications can be converted
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
Fred Kiefer
30c6bccd90
Add MacOSX methods and ivars.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25882 72102866-910b-0410-8b05-ffd578937521
2008-01-07 11:26:13 +00:00
Fred Kiefer
193e31e678
Change all files to use GPL 3 and LGPL 3.
...
Prepare for next release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
Fred Kiefer
4835a35c1c
Add new MacOSX methods. Code mostly by Nikolaus Schaller.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25270 72102866-910b-0410-8b05-ffd578937521
2007-06-18 21:08:54 +00:00
Fred Kiefer
3a4a94238e
Add scroll page up and down methods to NSTextView and NSScrollView.
...
Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24732 72102866-910b-0410-8b05-ffd578937521
2007-02-28 22:10:47 +00:00
Matt Rice
abfea70cf8
* Source/NSTextView_actions.m: Change cursor movement implementations
...
when collapsing a selection.
* Source/NSParagraphStyle.m (-setBaseWritingDirection:): Add comment.
* Source/NSAttributedString: Add and remove characters in the word
break character set.
* KeyBindings/DefaultKeyBindings.dict: Change control-f and control-b
to moveForward: and moveBackward:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24136 72102866-910b-0410-8b05-ffd578937521
2006-11-20 16:20:15 +00:00
Matt Rice
1fcec7ffe9
* Headers/AppKit/NSTableView.h: Add ivar for
...
verticalMotionCanBeginDrag.
* Source/NSTableView.m: Implement verticalMotionCanBeginDrag
bump class version.
* Source/NSTextView_actions.m: Fix method name from previous changes.
* KeyBindings/DefaultKeyBindings.dict: Add new key bindings.
* ChangeLog: Add to description of a previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24067 72102866-910b-0410-8b05-ffd578937521
2006-11-10 13:40:28 +00:00
Matt Rice
9bf357a90c
* Source/NSTextView_actions.m: Fix keyboard movement scrolling.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24037 72102866-910b-0410-8b05-ffd578937521
2006-11-06 16:04:12 +00:00
Matt Rice
dc1e1120e0
* Source/NSTextView_actions.m: Remove hack from previous patch.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24036 72102866-910b-0410-8b05-ffd578937521
2006-11-06 15:30:44 +00:00
Matt Rice
fc21139a69
* Source/NSTextView_actions.m: Implement some undocumented key
...
binding actions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24033 72102866-910b-0410-8b05-ffd578937521
2006-11-06 10:56:48 +00:00
Matt Rice
ba8d729b8a
* Source/NSTextView_actions.m:
...
* Source/NSOpenPanel.m:
* Source/GSLayoutManager.m:
* Source/NSLayoutManager.m:
* Source/NSSavePanel.m:
* Source/NSTextView.m:
* Source/NSStringDrawing.m:
* Headers/Additions/GNUstepGUI/GSLayoutManager_internal.h:
* Headers/AppKit/NSTextView.h: Remove underscores from category names
as they can confuse the debugger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24032 72102866-910b-0410-8b05-ffd578937521
2006-11-06 10:19:20 +00:00
Fred Kiefer
cad6a29fde
Added delete to end of line to text view.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23049 72102866-910b-0410-8b05-ffd578937521
2006-06-11 18:26:49 +00:00
Richard Frith-Macdonald
7971a89c72
Coding style fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22019 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:34:25 +00:00
Adam Fedor
303dd1baf9
Update FSF Address.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
Matt Rice
4f18a708bf
* Source/NSTextView.m (setSelectedRange:): Do not make the selected text visible.
...
(-didChangeText,-checkSpelling:): Make the selected text visible.
* Source/NSTextView_actions.m (_moveTo:select:): Ditto.
* Source/NSCell.m (-setUpFieldEditorAttributes:): Ditto.
(-selectWithFrame:inView:editor:delegate:start:length:): Ditto.
* Source/NSComboBoxCell (-validateSelection:,-textDidChange:): Ditto.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20575 72102866-910b-0410-8b05-ffd578937521
2005-01-18 13:18:29 +00:00
Alexander Malmberg
dd69ef973d
Adjust handling of selected range changes in response to text changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19866 72102866-910b-0410-8b05-ffd578937521
2004-08-11 23:46:37 +00:00
Adam Fedor
6be9174933
Include <> -> ""
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
Fred Kiefer
df30e235c5
Use method calls instead of some of the direct references to
...
NSLayoutManager ivar. General clean up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16092 72102866-910b-0410-8b05-ffd578937521
2003-03-01 00:43:54 +00:00
Alexander Malmberg
85ff161e72
Keep track of the original index of a sequence of moves in one dimension. Pass it to the layout manager when moving the insertion point to prevent drifting.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15956 72102866-910b-0410-8b05-ffd578937521
2003-02-14 16:58:59 +00:00
Alexander Malmberg
7d1592daa3
Fix some broken movement actions.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15914 72102866-910b-0410-8b05-ffd578937521
2003-02-09 14:26:10 +00:00
Alexander Malmberg
7925725bb9
Correct some attribute changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15908 72102866-910b-0410-8b05-ffd578937521
2003-02-08 21:58:36 +00:00
Alexander Malmberg
39744f3b2f
Rewrite insertion point movement actions properly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15904 72102866-910b-0410-8b05-ffd578937521
2003-02-08 16:55:51 +00:00
Alexander Malmberg
94ecd621eb
Clarify comments about user attribute changing now that I've figured out a way for it to work. Rewrite the actions to match.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15852 72102866-910b-0410-8b05-ffd578937521
2003-02-02 01:37:27 +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