Fred Kiefer
6c54fd6be5
Remove most uses of the method [NSView -removeSubview:].
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33047 72102866-910b-0410-8b05-ffd578937521
2011-05-15 14:42:08 +00:00
Quentin Mathe
a7ca2b775f
Replaced _rFlags.flipped_view use with -isFlipped and deprecated
...
_rFlagsType.flipped_view.
Still needs some work to automatically invalidate coordinates when the
flipping changes e.g. between two drawing sessions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31233 72102866-910b-0410-8b05-ffd578937521
2010-09-03 08:21:52 +00:00
Quentin Mathe
9be1f4da8e
Fixed many drawing issues (many ones being related to the flipping).
...
See bug report #27782
In particular, fixed -[NSImage drawXXX] and -[NSImage composite/dissolveXXX]
methods to work exactly as Cocoa when the Cairo backend is used.
Added a new draw operator (in addition to composite) to the backend. Cairo is
the only backend that implements it for now.
Eliminated as many flipping checks as possible.
Warning: Untested with the winlib backend.
You must update, recompile and install both Back and Gui.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30523 72102866-910b-0410-8b05-ffd578937521
2010-06-01 11:04:36 +00:00
Fred Kiefer
99e273a57d
few compiler warning fixes plus a lot of #import replacement.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30448 72102866-910b-0410-8b05-ffd578937521
2010-05-24 10:48:14 +00:00
Fred Kiefer
58afda1e08
Small keyed decoing improvements.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29963 72102866-910b-0410-8b05-ffd578937521
2010-03-15 12:55:12 +00:00
Doug Simons
e01753e955
Call isFlipped rather than accessing flag directly (fixes a problem with view loaded from a nib)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29906 72102866-910b-0410-8b05-ffd578937521
2010-03-12 02:08:01 +00:00
Gregory John Casamento
8d1c156985
Correction for crash.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29760 72102866-910b-0410-8b05-ffd578937521
2010-02-26 03:39:24 +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
Riccardo Mottola
9f1698a4a3
removed C99-ism
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27442 72102866-910b-0410-8b05-ffd578937521
2008-12-28 15:05:47 +00:00
Gregory John Casamento
214c745d1c
* Headers/Additions/GNUstepGUI/GSNibLoading.h: Added methods to header
...
which were added during refactoring.
* Source/GSNibLoading.m: Corrections to NSCustomView, refactoring.
Changes to initialization logic to call awakeFromNib.
* Source/NSBundleAdditions.m: Cleanup to move code to the nib loading
code.
* Source/NSClipView.m: Added assertion to guarantee that no
NSCustomView is unarchived at time of initWithCoder: being called.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27298 72102866-910b-0410-8b05-ffd578937521
2008-12-15 23:34:09 +00:00
Fred Kiefer
a280fa3721
Commit scroll adjustment patch by Benhur Stein.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26678 72102866-910b-0410-8b05-ffd578937521
2008-06-17 20:20:15 +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
Richard Frith-MacDonald
ff151b6e46
Reset cursor rectangles when a view is scrolled.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25645 72102866-910b-0410-8b05-ffd578937521
2007-11-30 08:56:55 +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
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
Nicolas Roard
852a7aff1d
* Source/NSView.m (-scrollRect:by:): reversed the coordinates
...
of destPoint (substract instead of add), to match OSX behaviour.
* Source/NSClipView.m (-setBoundsOrigin): reversed the coordinates
of the call to scrollRect:by:, to match OSX behaviour.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25458 72102866-910b-0410-8b05-ffd578937521
2007-09-05 19:35:36 +00:00
Fred Kiefer
e3a40d5811
Small error corrections for printing.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24971 72102866-910b-0410-8b05-ffd578937521
2007-04-10 00:30:53 +00:00
Fred Kiefer
e0441cbcf6
Clean up NSClipView.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24711 72102866-910b-0410-8b05-ffd578937521
2007-02-27 18:08:11 +00:00
Richard Frith-MacDonald
45acf44de1
documentation cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24035 72102866-910b-0410-8b05-ffd578937521
2006-11-06 13:58:37 +00:00
Matt Rice
d1397ca777
* Source/NSTableView.m (-setFrame:,-setFrameSize:): Use
...
documentVisibleRect. Shrink if table is larger than needed height.
fixes bug #18117 .
(-drawBackgroundInClipRect:): Draw the background.
* Source/NSClipView.m (-documentVisibleRect:): Return the clip views
visible rect converted to the document views coordinate system.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23972 72102866-910b-0410-8b05-ffd578937521
2006-10-27 17:48:54 +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
63e4a9aebd
* Source/GSNibCompatibility.m: In [NSIBObjectData initWithCoder:]
...
clean up the buildMap calls. In NSCustomResource retain the resource
that is returned to prevent a crash. Add dealloc method to
NSCustomObject.
* Source/NSClipView.m: In initWithCoder: retain and release
documentView before removing it from the view and resetting
it as the document view. This ensures that the view will
not be deallocated.
* Source/NSScrollView.m: Retain the contentView before exchanging
it and then release to prevent the view from being deallocated in
initWithCoder:
* Source/NSTableView.m: Replace call to "new" with alloc/init for
NSTableHeaderView in initWithCoder:
* Source/NSView.m: in initWithCoder: keyed coding don't release
the subs array since it's already autoreleased. This was causing
a crash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23336 72102866-910b-0410-8b05-ffd578937521
2006-08-26 14:10:18 +00:00
Gregory John Casamento
53ca2a14c2
Prevent initWithCoder: from calling initWithFrame: in NSView. According to the documentation, initWithFrame: should not be called when the view is unarchiving itself. Similar changes were needed in other classes since they depended on this call to initialize themselves, so some init code was added to initWithCoder:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23143 72102866-910b-0410-8b05-ffd578937521
2006-07-07 01:39: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
Fabien Vallon
093651e20c
Improved docuentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22135 72102866-910b-0410-8b05-ffd578937521
2005-12-04 19:12:12 +00:00
Fabien Vallon
cbb78b5b89
Improved documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22064 72102866-910b-0410-8b05-ffd578937521
2005-11-21 15:40:50 +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
df3b584a19
Added keyed decoding.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18510 72102866-910b-0410-8b05-ffd578937521
2004-01-30 19:49:00 +00:00
Alexander Malmberg
7c754b0a27
(-autoscroll:): Reimplement correctly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18092 72102866-910b-0410-8b05-ffd578937521
2003-11-19 02:21:07 +00:00
Fred Kiefer
4a0281b9c4
Removed new GCC 3.4 warnings from Alexander Malmbergs list.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17601 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:17:52 +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
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
0e294ebdd8
Use method calls in [initWithCoder:] so opaque flag is set
...
correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15549 72102866-910b-0410-8b05-ffd578937521
2003-01-08 16:37:01 +00:00
Adam Fedor
b9f0e1a9cd
Change so rint is only defined when needed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13464 72102866-910b-0410-8b05-ffd578937521
2002-04-12 02:15:51 +00:00
Adam Fedor
228bb345cf
Update docs
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13335 72102866-910b-0410-8b05-ffd578937521
2002-04-03 16:59:43 +00:00
Pierre-Yves Rivaille
558b911361
Source/NSMatrix.m
...
Source/NSBox.m
Source/NSClipView.m
Source/NSTableView.m
Source/NSOutlineView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13276 72102866-910b-0410-8b05-ffd578937521
2002-03-31 15:46:19 +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
b588777480
Automatically mark the NSClipView as needing redisplay when the background
...
color - or the drawsBackground flag - changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11631 72102866-910b-0410-8b05-ffd578937521
2001-12-05 13:01:43 +00:00
Adam Fedor
b89ba69ae8
View coding fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11553 72102866-910b-0410-8b05-ffd578937521
2001-11-27 21:40:05 +00:00
Pierre-Yves Rivaille
6bd75c41bc
-dealloc and -setDocumentView:
...
Support for NSTableView superviewFrameChanged method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11277 72102866-910b-0410-8b05-ffd578937521
2001-10-29 12:30:35 +00:00
Nicola Pero
967a2f2177
Fixed bug in deallocation process where we were not removign us from
...
observing the document view notificatiosn
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11203 72102866-910b-0410-8b05-ffd578937521
2001-10-18 15:28:05 +00:00
Nicola Pero
3740b93b42
Make the rectangle to copy in device space integral before copying
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9155 72102866-910b-0410-8b05-ffd578937521
2001-02-18 15:09:15 +00:00
Nicola Pero
68d59304dd
Fixed handling of first responder status to the document view
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9151 72102866-910b-0410-8b05-ffd578937521
2001-02-17 20:39:38 +00:00
Nicola Pero
1fa7d45744
Update bounds origin upon setting frame
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8865 72102866-910b-0410-8b05-ffd578937521
2001-01-28 22:57:55 +00:00
Nicola Pero
9780540807
Tidied
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8864 72102866-910b-0410-8b05-ffd578937521
2001-01-28 22:35:48 +00:00
Nicola Pero
5e60fd57fd
Fixed updating scrollers when the frame of the displayed view changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8862 72102866-910b-0410-8b05-ffd578937521
2001-01-28 21:53:53 +00:00
Nicola Pero
80fce0b75a
Fixed replacing a non-flipped document view (such as nil) with a flipped
...
one (such as a matrix)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8844 72102866-910b-0410-8b05-ffd578937521
2001-01-28 03:11:57 +00:00
Nicola Pero
326b2c9475
Rewritten scrolling not to attempt to copy non visible bits
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8726 72102866-910b-0410-8b05-ffd578937521
2001-01-21 16:35:44 +00:00
Nicola Pero
dc86f93c1d
Tidied
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8723 72102866-910b-0410-8b05-ffd578937521
2001-01-21 14:55:07 +00:00
Nicola Pero
5c5f8f4732
Cache whether it's opaque or not; minor changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8613 72102866-910b-0410-8b05-ffd578937521
2001-01-16 12:31:22 +00:00