Commit graph

48 commits

Author SHA1 Message Date
Gregory John Casamento
7023c7d06d Add remaining changes contributed by testplant. 2021-10-27 15:18:23 -04:00
Sebastian Reitenbach
e097f5d773 Remove some extra parameters from debug outputs
OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38567 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:08:41 +00:00
Fred Kiefer
0c95f32580 More CGFloat, NSUInteger and NSInteger changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36163 72102866-910b-0410-8b05-ffd578937521
2013-02-17 22:44:47 +00:00
Fred Kiefer
ec2f64f7a9 * Source/NSTextContainer.m (lineFragmentRectForProposedRect:...):
Prevent negative width/height from being returned.
  Bug found by unit test from Nikolaus Schaller
<hns@computer.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36026 72102866-910b-0410-8b05-ffd578937521
2013-01-27 14:51:26 +00:00
Fred Kiefer
e370aab73b * Headers/AppKit/NSTextContainer.h,
* Source/NSTextContainer.m,
        * Source/GSHorizontalTypesetter.m: Correct the definition of
        NSLineMovementDirection.
        * Headers/AppKit/NSFont.h
        * Source/NSFont.m: Add a few missing 10.4 methods.
        * Header/AppKit/NSLayoutManager.h,
        * Source/NSLayoutManager.m: Add one 10.5 method.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35999 72102866-910b-0410-8b05-ffd578937521
2013-01-19 18:22:45 +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
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
Fred Kiefer
2d01942e4b Replace #include -> #import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
Wolfgang Lux
cec8360d99 Really commit the NSTextContainer changes of r30491 and not only their
change log.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30497 72102866-910b-0410-8b05-ffd578937521
2010-05-30 20:57:01 +00:00
Fred Kiefer
ff5d0e7c13 * Source/NSTextContainer.m (-replaceLayoutManager:): Retain the
text storage while replacing the layout manager. See last patch.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30025 72102866-910b-0410-8b05-ffd578937521
2010-03-23 20:27:23 +00:00
Fred Kiefer
c05581a005 Fix up teh includes to compile again after latest changes to base. Still
plenty of warnings and the result isn't working at least on 64 bit
machines :-(


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29685 72102866-910b-0410-8b05-ffd578937521
2010-02-20 10:40:44 +00:00
Fred Kiefer
c9d1292563 Small improvements to allow changing of the text container for a text
view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29648 72102866-910b-0410-8b05-ffd578937521
2010-02-15 17:04:17 +00:00
Gregory John Casamento
483044e48c * Source/GSNibLoader.m: Added logging to help debugging of issues
with nib loading.
	* Source/NSTextContainer.m: -[NSTextContainer initWithCoder:]
	removed call to unarchive the textview to prevent a leak.  Also
	don't set the textview as the text container.   Currently we 
	just get the contents of the text container and rebuild it
	in NSTextView.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29116 72102866-910b-0410-8b05-ffd578937521
2009-12-11 18:12:46 +00:00
Fred Kiefer
05988a592b Add method init for NSTextContainer as suggested
by Derek Fawcus <dfawcus@cisco.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28738 72102866-910b-0410-8b05-ffd578937521
2009-09-25 22:08:50 +00:00
Gregory John Casamento
4991a29743 * Source/GSStandardWindowDecorationView.m: Live window resize changes
for when using GNUstep decorations in resizeWindowStartingWithEvent:.
	* Source/NSLayoutManager.m: Unarchive the text containers into an 
	array in initWithCoder:.
	* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
	* Source/NSTextView.m: Changes to include text container from nib
	file into the nib loading process in initWithCoder:.   


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28296 72102866-910b-0410-8b05-ffd578937521
2009-05-23 15:50:51 +00:00
Richard Frith-MacDonald
f35949036f Need to make sure we don't create text containers with negative dimensions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27766 72102866-910b-0410-8b05-ffd578937521
2009-02-03 15:56:51 +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
3dc7f6d74c Set the text container to max size, when the text view is resizable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25863 72102866-910b-0410-8b05-ffd578937521
2008-01-04 21:02:29 +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
Richard Frith-MacDonald
57435da7d5 tidyups and minor theme tiling updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23871 72102866-910b-0410-8b05-ffd578937521
2006-10-15 08:34:47 +00:00
Gregory John Casamento
48db9c7614 Correction for window size in -[NSWindowTemplate nibInstantiate]. Implemented encoding in encodeWithCoder: for some classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23207 72102866-910b-0410-8b05-ffd578937521
2006-08-06 04:32:16 +00:00
Gregory John Casamento
d68950d71a Nib compatibility code merge.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22957 72102866-910b-0410-8b05-ffd578937521
2006-05-20 22:12:46 +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
Fred Kiefer
13a4046e1a More keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18603 72102866-910b-0410-8b05-ffd578937521
2004-02-15 18:23:13 +00:00
Alexander Malmberg
6a27a1f90e Clear the text container of our text view in -dealloc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17707 72102866-910b-0410-8b05-ffd578937521
2003-09-23 17:13:20 +00:00
David Ayers
b18f1c4ac4 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
Richard Frith-Macdonald
5c21d4d3d1 Documentatikon tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17298 72102866-910b-0410-8b05-ffd578937521
2003-07-22 16:13:46 +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
Alexander Malmberg
496c641984 Documented NSTextContainer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16579 72102866-910b-0410-8b05-ffd578937521
2003-04-28 16:37:56 +00:00
Alexander Malmberg
959e21868b (-replaceLayoutManager:): Remove the containers from the correct layout manager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15838 72102866-910b-0410-8b05-ffd578937521
2003-02-01 02:32:35 +00:00
Alexander Malmberg
6d9a9c890c Make sure the text network stays synchronized when one part changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15760 72102866-910b-0410-8b05-ffd578937521
2003-01-29 20:19:01 +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
Richard Frith-Macdonald
92867e201f Documentation tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14760 72102866-910b-0410-8b05-ffd578937521
2002-10-13 10:26:57 +00:00
Nicola Pero
82656d0255 Fixed bugs in replaceLayoutManager:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14672 72102866-910b-0410-8b05-ffd578937521
2002-10-08 17:57:33 +00:00
Nicola Pero
b7d009fa07 Always inform the layout manager that the textview is changed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12492 72102866-910b-0410-8b05-ffd578937521
2002-02-11 16:36:55 +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
6864a9769f Fixed bug in deallocation process where we were not removing us from
observing the text view's notifications


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11202 72102866-910b-0410-8b05-ffd578937521
2001-10-18 15:26:59 +00:00
Nicola Pero
aa91231c31 Improvements for replacing the text view with another one
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8484 72102866-910b-0410-8b05-ffd578937521
2001-01-07 00:59:57 +00:00
Nicola Pero
c96deb1436 Retain/release fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8338 72102866-910b-0410-8b05-ffd578937521
2000-12-16 20:18:33 +00:00
Fred Kiefer
cd85ae9c86 In [setWidthTracksTextView:] and
[setHeightTracksTextView:] make sure that the view post changes
and that notifications are only send once.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8038 72102866-910b-0410-8b05-ffd578937521
2000-11-05 16:30:06 +00:00
Fred Kiefer
ca10da60f3 [setContainerSize:] only informs layout manager if really changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7896 72102866-910b-0410-8b05-ffd578937521
2000-10-23 23:27:00 +00:00
Fred Kiefer
c147e15baf In [setTextView] let the text view send frame changed notifications.
Check text view in [_textViewFrameChanged:].
Don't add observer if text view is nil in
[setHeightTracksTextView:] and [setWidthTracksTextView:]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7678 72102866-910b-0410-8b05-ffd578937521
2000-09-30 23:14:12 +00:00
Nicola Pero
f76e7fe754 Do not register for notifications if not needed, bug fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7398 72102866-910b-0410-8b05-ffd578937521
2000-09-05 17:31:03 +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
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
Richard Frith-MacDonald
8ab2a93c25 NSTextContainer update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4421 72102866-910b-0410-8b05-ffd578937521
1999-06-17 15:08:05 +00:00