Marcian Lytwyn
f41b38b000
Revert last bad commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40336 72102866-910b-0410-8b05-ffd578937521
2017-02-12 18:40:35 +00:00
Marcian Lytwyn
969b489452
Use NSInteger for window ref number
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40335 72102866-910b-0410-8b05-ffd578937521
2017-02-12 18:25:21 +00:00
Marcian Lytwyn
d4462714dd
Fix NSTextView's creation of NSTextContainer for XIB 5 loading
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40330 72102866-910b-0410-8b05-ffd578937521
2017-02-09 15:09:22 +00:00
Marcian Lytwyn
a856194aba
Additional merges with GUI main branch revision 39320: Source/NSLayoutManager.m Source/NSTextView.m
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39330 72102866-910b-0410-8b05-ffd578937521
2016-02-02 23:26:13 +00:00
Marcian Lytwyn
3653dd62ec
Invalidate insertion point timer in dealloc
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38982 72102866-910b-0410-8b05-ffd578937521
2015-09-11 15:46:22 +00:00
Paul Landers
9bcec86989
Fixes for undoing in the field editor. Added usage of NSCellUndoManager class.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38903 72102866-910b-0410-8b05-ffd578937521
2015-08-17 17:41:37 +00:00
Adam Fox
e53c91a2fb
Apply change from Fred Kiefer (r38871) in [NSTextView validateUserInterfaceItem:].
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38874 72102866-910b-0410-8b05-ffd578937521
2015-08-12 17:21:42 +00:00
Adam Fox
00e7aa5a61
Fix usages of [NSTextView writeSelectionToPasteboard:type:], thanks to Fred Kiefer <FredKiefer@gmx.de>, r38871.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38872 72102866-910b-0410-8b05-ffd578937521
2015-08-11 23:37:34 +00:00
Adam Fox
e5802095e8
Allow subclasses to properly override [NSTextView writeSelectionToPasteboard:type:].
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38870 72102866-910b-0410-8b05-ffd578937521
2015-08-11 19:16:12 +00:00
Marcian Lytwyn
de5f907dca
Complete merge with GUI main branch revision 38613
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38772 72102866-910b-0410-8b05-ffd578937521
2015-07-08 22:21:16 +00:00
Doug Simons
5c75af1e49
Fix bug with fieldEditor undo history carrying across between fields
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38282 72102866-910b-0410-8b05-ffd578937521
2015-01-08 20:32:49 +00:00
Marcian Lytwyn
fd815172ac
Fix index beyond range in text attachment processing in mouseDown
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38227 72102866-910b-0410-8b05-ffd578937521
2014-12-03 18:49:58 +00:00
Marcian Lytwyn
706eec3f24
Fix obscure exception case
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37709 72102866-910b-0410-8b05-ffd578937521
2014-02-24 22:18:38 +00:00
Frank Le Grand
4d5c80b58c
Fixed a bug introduced in rev #37069 where autocomplete was no longer working unless we were at the beginning or end of a text.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37179 72102866-910b-0410-8b05-ffd578937521
2013-10-01 15:41:37 +00:00
Marcian Lytwyn
5bebf8d94e
Temporary revert to fix auto-complete window processing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37070 72102866-910b-0410-8b05-ffd578937521
2013-09-11 18:43:55 +00:00
Marcian Lytwyn
45c1de514f
Auto complete not working if chars typed in after quote, slash, etc
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37069 72102866-910b-0410-8b05-ffd578937521
2013-09-11 17:55:12 +00:00
Marcian Lytwyn
a9e4f72f54
Save undo sequences for only LAST auto-completion selected or UNDO on cancelled auto-completion
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37051 72102866-910b-0410-8b05-ffd578937521
2013-09-09 01:54:02 +00:00
Marcian Lytwyn
3ed2a612ad
Remove hardcoded escape key processing in NSTextView.m:keyDown method added previously, add binding processing code for escape key, add default escape key binding to complete: method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37037 72102866-910b-0410-8b05-ffd578937521
2013-09-03 22:36:08 +00:00
Marcian Lytwyn
6f19ceff5f
First pass: autocompletion exception fix and invocation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37036 72102866-910b-0410-8b05-ffd578937521
2013-09-03 20:50:16 +00:00
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
43a41c50fc
Fix drag and drop of file objects - invoke cleanUpAfterDragOperation on lastDragView on NSWindow and add cleanup code to cleanUpAfterDragOperation in NSTextView
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35896 72102866-910b-0410-8b05-ffd578937521
2012-12-15 04:50:05 +00:00
Wolfgang Lux
1dd7be22f7
Update text storage directly when undoing text changes in a NSTextView
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35175 72102866-910b-0410-8b05-ffd578937521
2012-06-02 22:31:54 +00:00
Fred Kiefer
2d2026e7fc
Revert last change and replace with something a little bit better. The
...
whole ruler handling will need some deeper inspection.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34636 72102866-910b-0410-8b05-ffd578937521
2012-01-26 09:25:29 +00:00
Doug Simons
3e7c9bceef
Call setClientView: before calling setMarkers: to fix a problem when a textView's text is set or changed when the textView is not the first responder, such as at windowControllerDidLoadNib: time.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34633 72102866-910b-0410-8b05-ffd578937521
2012-01-25 23:28:51 +00:00
Wolfgang Lux
cc31ecbeda
Change the default text container inset for NSTextView to (0,0) to
...
reduce blank space around text.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34367 72102866-910b-0410-8b05-ffd578937521
2011-12-29 22:16:50 +00:00
Wolfgang Lux
0da1b1f034
Adjust the minimum and maximum sizes of a NSTextView to ensure that
...
the minimum size is not greater than the current size and the maximum
size is not smaller than the current size.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34362 72102866-910b-0410-8b05-ffd578937521
2011-12-29 16:48:17 +00:00
Fred Kiefer
e740f7b0cc
* Source/NSTextView.m (-setFieldEditor:): Use different values for
...
both cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34347 72102866-910b-0410-8b05-ffd578937521
2011-12-22 22:00:42 +00:00
Eric Wasylishen
e395fe88d7
* Source/NSPrinter.m:
...
* Source/NSPrintOperation.m:
* Source/NSPageLayout.m:
* Source/NSPrintInfo.m:
* Headers/AppKit/NSPrintInfo.h: Migrate printing code to CGFloat
or double.
* Source/NSTextView.m: Rewrite -adjustPageHeightNew🔝 bottom:limit:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34288 72102866-910b-0410-8b05-ffd578937521
2011-12-15 06:51:02 +00:00
Wolfgang Lux
6365fa5127
Reinstate Fred's change with the additional correction to the string
...
drawing code he proposed on the mailing list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34241 72102866-910b-0410-8b05-ffd578937521
2011-12-02 21:36:58 +00:00
Eric Wasylishen
f218a41010
* Source/NSTextView.m
...
(-_scheduleTextCheckingInVisibleRectIfNeeded): Check for
nil before sending -rectValue to avoid crash
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34238 72102866-910b-0410-8b05-ffd578937521
2011-12-02 05:10:54 +00:00
Gregory John Casamento
14d5d889be
revert change by fred.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34230 72102866-910b-0410-8b05-ffd578937521
2011-11-30 15:43:04 +00:00
Fred Kiefer
865c22357b
* Source/NSTextView.m (-buildUpTextNetwork:): Move setting the
...
default line framgent padding from here ...
* Source/NSTextContainer.m (-initWithContainerSize:): ... to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34227 72102866-910b-0410-8b05-ffd578937521
2011-11-28 17:20:45 +00:00
Gregory John Casamento
e9aaaf4b61
Changes to correct bug#34919. NSTextView should now correctly show the padding set in the lineFragmentPadding attribute of NSTextContainer.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34222 72102866-910b-0410-8b05-ffd578937521
2011-11-28 02:37:58 +00:00
Eric Wasylishen
26567e31d8
* Source/NSColorPanel.m: Always send action and colorChanged: when
...
the color changes. NSColorPanel is always "continuous" for now...
to support -isContinuous == NO, we need to augment the API between
the color panel and the pickers so they can send a message when
the mouse is released.
* Source/NSTextView.m: Change typing attributes in response to
colorChanged:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34105 72102866-910b-0410-8b05-ffd578937521
2011-11-01 20:31:24 +00:00
Fred Kiefer
8240c3bb55
* Source/NSTextView.m(currentVersion, -encodeWithCoder:,
...
-initWithCoder:): Archive missing attributes in non-keyed
mode. This required updating the NSTextView version to 4.
Should fix bug #33884 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33962 72102866-910b-0410-8b05-ffd578937521
2011-10-11 08:21:13 +00:00
Eric Wasylishen
d919131abb
* Source/NSTextView.m (-view:stringForToolTip:point:userData:):
...
Ensure this returns an NSString, even if NSToolTipAttributeName
is set to something else (it calls -description on the value).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33597 72102866-910b-0410-8b05-ffd578937521
2011-07-21 04:56:02 +00:00
Eric Wasylishen
de89388c7f
* Source/NSTextView.m: Use respectFraction: YES when deciding whether
...
to do a word selection upon a right click
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33441 72102866-910b-0410-8b05-ffd578937521
2011-07-03 20:53:44 +00:00
Eric Wasylishen
04342f72c6
* Source/NSTextView.m (-_updateState:): Invalidate cursor rects
...
so the cursor rects over links, for example, are updated when
text is edited.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33434 72102866-910b-0410-8b05-ffd578937521
2011-07-03 04:45:29 +00:00
Eric Wasylishen
91159aa357
* Source/NSTextView.m (-scrollRangeToVisible:): Fix to support scrolling
...
to the empty range at the end of a document (i.e. {[string length], 0}).
This fixes the scrolling when you repeatedly hit RETURN in TextEdit to
create new pages (in wrap to page mode).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33351 72102866-910b-0410-8b05-ffd578937521
2011-06-19 17:52:05 +00:00
Eric Wasylishen
f2f4ab4076
* Source/NSTextView.m (-scrollRangeToVisible:): Work with ranges
...
outside the receiver (in a situation with multiple NSTextView's
connected to a layout manager)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33298 72102866-910b-0410-8b05-ffd578937521
2011-06-14 02:32:55 +00:00
Fred Kiefer
783d3d3ae8
Add methods -_becomeRulerClient and -_resignRulerClient to set self as the
...
ruler client and to resign from that. These get called when self becomes
first responder or resigns from first responder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33287 72102866-910b-0410-8b05-ffd578937521
2011-06-12 22:43:08 +00:00
Fred Kiefer
c744492fee
Add a few key value bindings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33277 72102866-910b-0410-8b05-ffd578937521
2011-06-11 12:01:59 +00:00
Eric Wasylishen
d199cb565e
* Source/NSTextView.m: Use pointing hand cursor for links
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33043 72102866-910b-0410-8b05-ffd578937521
2011-05-15 06:55:33 +00:00
Eric Wasylishen
7e17fa5ca5
* Source/NSTextView.m: Use IBeam cursor if selectable
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33041 72102866-910b-0410-8b05-ffd578937521
2011-05-15 05:03:14 +00:00
Eric Wasylishen
a3fe4dcbec
* Source/NSTextView.m (-mouseDown:):
...
Add support for making selections with the mouse which span multiple
text views
* Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:):
Replace the complex display invalidation code with two calls to
-[NSLayoutManager invalidateDisplayForCharacterRange:], which will
take care to invalidate all necessary text views.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32953 72102866-910b-0410-8b05-ffd578937521
2011-04-30 04:49:51 +00:00
Eric Wasylishen
e4458742a1
* Source/NSTextView.m (-setTypingAttributes:) Guard against
...
nil layout manager
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32952 72102866-910b-0410-8b05-ffd578937521
2011-04-30 04:30:45 +00:00
Eric Wasylishen
ea58698be4
* Source/NSTextView.m (-selectionRangeForProposedRange:granularity:):
...
Remove a special case which caused this method to refuse to
expand a range {[string length], 0}.
This was why the align left/center/right menu items didn't work
in Ink when the insertion point was at the end of a document.
The behaviour should match OS X now.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32935 72102866-910b-0410-8b05-ffd578937521
2011-04-27 09:19:53 +00:00
Eric Wasylishen
9db8881062
* Source/NSTextView.m (-setRulersVisible:): Create a horizontal ruler on
...
the scroll view if needed - this seems to be the OS X behaviour.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32932 72102866-910b-0410-8b05-ffd578937521
2011-04-27 04:00:33 +00:00
Riccardo Mottola
cd82d143a3
remove c99-ism
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32725 72102866-910b-0410-8b05-ffd578937521
2011-03-28 14:38:17 +00:00
Eric Wasylishen
fb20ec1095
* Source/NSTextView.m: Add a message in the context menu
...
if there are no spelling suggestions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32581 72102866-910b-0410-8b05-ffd578937521
2011-03-14 19:44:58 +00:00