Gregory John Casamento
5b293ad771
* Source/NSTextView.m: Don't add the text storage if it's nil
...
in initWithCoder:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28470 72102866-910b-0410-8b05-ffd578937521
2009-08-19 04:58:31 +00:00
Gregory John Casamento
3a969af071
* Source/NSTextView.m: initWithCoder: change to use text storage
...
more directly to allow the handling of attributed strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28445 72102866-910b-0410-8b05-ffd578937521
2009-08-08 17:07:07 +00:00
Gregory John Casamento
acc0597c97
* Source/GSTextStorage.m: In initWithCoder: don't overwrite the
...
contents of the text storage by attempting to unarchive when the
unarchiver is keyed.
* Source/NSTextView.m: In initWithCoder: retrieve the contents
of the text storage for display in the text view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28443 72102866-910b-0410-8b05-ffd578937521
2009-08-08 07:08:23 +00:00
Gregory John Casamento
1aa9c676ce
* Source/NSTextView.m: initWithCoder: temporarily remove decoding
...
of NSTextContainer since it is causing a crash when editing a text
view's that was loaded from a nib file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28442 72102866-910b-0410-8b05-ffd578937521
2009-08-08 04:43:41 +00:00
Fred Kiefer
2ed61072dd
* Source/NSTextView.m (-initWithCoder:, -setTextContainer:):
...
Attempt to resolve the memory issues when coding a text container.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28405 72102866-910b-0410-8b05-ffd578937521
2009-07-24 07:35:38 +00:00
Gregory John Casamento
a145faad11
Added fix suggested by George.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28375 72102866-910b-0410-8b05-ffd578937521
2009-06-29 03:47:10 +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
Gregory John Casamento
343999460b
* Headers/AppKit/NSSpeechSynthesizer.h: Added _module ivar.
...
* Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU.
* Source/NSPasteboard.m: Retain the path since it's autoreleased.
* Source/NSTextView.m: Set the textview to allow undos by default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28186 72102866-910b-0410-8b05-ffd578937521
2009-04-07 22:52:52 +00:00
Fred Kiefer
48f6a535ad
Set values for minSize, maxSize, horizontallyResizable and verticallyResizable
...
in the initializers consistently.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28132 72102866-910b-0410-8b05-ffd578937521
2009-03-25 08:14:30 +00:00
Fred Kiefer
7c2e8efcd8
Replace nil with [NSDate distantFuture] in calls to nextEventMatchingMask:...dequeue:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28025 72102866-910b-0410-8b05-ffd578937521
2009-03-02 16:26:23 +00:00
Fred Kiefer
a815330b26
Correct computation of attachment cell frame.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27750 72102866-910b-0410-8b05-ffd578937521
2009-02-01 14:07:30 +00:00
Fred Kiefer
ddf1b1a269
Improvement of attributed string loading and attachment display in text
...
view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27705 72102866-910b-0410-8b05-ffd578937521
2009-01-27 19:16:04 +00:00
Fred Kiefer
326aaadef2
Add type casts to keep compiler happy.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27481 72102866-910b-0410-8b05-ffd578937521
2008-12-31 16:49:46 +00:00
Wolfgang Lux
daedd434bb
Minor NSTextView fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27364 72102866-910b-0410-8b05-ffd578937521
2008-12-21 11:24:19 +00:00
Wolfgang Lux
232de18e5e
Fix a crash during undo/redo when a text storage is shared among
...
multiple text views and some of these views are closed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27360 72102866-910b-0410-8b05-ffd578937521
2008-12-19 23:51:25 +00:00
Wolfgang Lux
37cb9d46b0
Scroll NSTextView during dragging if the mouse pointer is close to the
...
border of the view's visible rectangle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27313 72102866-910b-0410-8b05-ffd578937521
2008-12-16 21:13:21 +00:00
Wolfgang Lux
aeec5f704c
Start drag operation in NSTextView only after a single click into the
...
selected range.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27244 72102866-910b-0410-8b05-ffd578937521
2008-12-07 09:38:15 +00:00
Wolfgang Lux
c6e08b897c
Improve implementation of undo and register redo operations for
...
NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27138 72102866-910b-0410-8b05-ffd578937521
2008-11-26 22:56:03 +00:00
Wolfgang Lux
d1514c3ce1
Simplify the new drag and drop implementation for NSTextView and fix
...
some corner cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27129 72102866-910b-0410-8b05-ffd578937521
2008-11-24 21:58:42 +00:00
Wolfgang Lux
7e739d6fa3
Fix an oversight in the previous check-in that was causing a crash
...
when moving text via drag and drop to the end of a text view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27126 72102866-910b-0410-8b05-ffd578937521
2008-11-24 10:27:10 +00:00
Wolfgang Lux
30fb47d4bb
Improve drag and drop implementation for NSTextView so that an ongoing
...
drag operation no longer changes the current selection of the target
view. Also fix an issue with dropping text into an empty text view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27125 72102866-910b-0410-8b05-ffd578937521
2008-11-24 08:24:19 +00:00
Wolfgang Lux
2f2292f703
Complete drag and drop support for NSTextView by making them dragging
...
sources, too. In addition, support dragging text to non-rich text
NSTextViews.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27117 72102866-910b-0410-8b05-ffd578937521
2008-11-23 10:02:16 +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
df859abbe6
Add new X secondary selection behaviour.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26004 72102866-910b-0410-8b05-ffd578937521
2008-01-26 17:17:04 +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
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
Richard Frith-MacDonald
03a4a96a40
Update includes ... closer MacOS-X compatibility.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25635 72102866-910b-0410-8b05-ffd578937521
2007-11-29 20:28:03 +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
ae19679271
Patches partly by Andreas Höschler <ahoesch@smartsoft.de>.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25476 72102866-910b-0410-8b05-ffd578937521
2007-09-11 12:13:35 +00:00
Fred Kiefer
a66882b17b
Add new MacOSX 10.4 methods and constants to NSWindow. Requires
...
recompilation of all applications!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25469 72102866-910b-0410-8b05-ffd578937521
2007-09-09 12:19:01 +00:00
Fred Kiefer
86264a8284
Diverse gui patches by Wolfgang Lux <wolfgang.lux@gmail.com>.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25451 72102866-910b-0410-8b05-ffd578937521
2007-09-04 23:29:05 +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
Sergii Stoian
871735a3a6
* Source/NSTextView.m:
...
(drawRect:): Draw insertion point using _drawInsertionPointNow
ivar. Cleanup code.
(_blink:): Enable disabled insertion point blinking code.
(updateInsertionPointStateAndRestartTimer:): Implement insertion
point blinking. Removed TODO.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24594 72102866-910b-0410-8b05-ffd578937521
2007-02-16 01:35:22 +00:00
Fred Kiefer
a24c80f048
Added a basic implementation for undo in NSTextView.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24232 72102866-910b-0410-8b05-ffd578937521
2006-12-24 09:37:16 +00:00
Matt Rice
0c74ad4ec6
* Source/NSTextView.m: Don't update the selection when dragging a
...
NSColorPboardType.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24191 72102866-910b-0410-8b05-ffd578937521
2006-12-06 23:58:36 +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
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
78bbf9e972
Implement encoding for these objects and correct issue with font size encoding. It was encoded/decoded as an int when it should have been a float.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23226 72102866-910b-0410-8b05-ffd578937521
2006-08-09 05:48:54 +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
Fred Kiefer
d0d68dd618
Corrected bug #17096 , setting of typing attributes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23183 72102866-910b-0410-8b05-ffd578937521
2006-07-20 22:32:41 +00:00
Richard Frith-MacDonald
d22941ed47
Tidy some warning suppression cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23129 72102866-910b-0410-8b05-ffd578937521
2006-07-05 07:05:03 +00:00
Richard Frith-MacDonald
65b175b904
Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
Fred Kiefer
4986199ba1
Removed some compiler warnings and unneeded direct drawing.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23119 72102866-910b-0410-8b05-ffd578937521
2006-07-02 11:25:04 +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
Fred Kiefer
43537498de
Adopted dragging destination method return values to MacOSX 10.4
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22893 72102866-910b-0410-8b05-ffd578937521
2006-05-10 22:11:28 +00:00
Richard Frith-MacDonald
56ac5a9236
Revert pointelss changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22417 72102866-910b-0410-8b05-ffd578937521
2006-02-03 10:07:01 +00:00
Richard Frith-MacDonald
34d79dd427
Fix BOOL accessors to return a genuine boolean (YES or NO)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22413 72102866-910b-0410-8b05-ffd578937521
2006-02-02 21:16:55 +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
Richard Frith-Macdonald
c55a8d1a73
Make DnD follow mouse pointer in text view
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21038 72102866-910b-0410-8b05-ffd578937521
2005-04-03 10:39:32 +00:00