Commit graph

266 commits

Author SHA1 Message Date
Adam Fedor
bad8642e29 Patches backported from trunk.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_stable_20070311@25587 72102866-910b-0410-8b05-ffd578937521
2007-11-17 16:05:47 +00:00
Adam Fedor
432d9bc960 Update from truck except 4/4 change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_stable_20070311@25031 72102866-910b-0410-8b05-ffd578937521
2007-04-13 19:02:31 +00:00
Richard Frith-MacDonald
2a2ba5b79a Merge in fixes etc from trunk
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_stable_20070311@24943 72102866-910b-0410-8b05-ffd578937521
2007-03-30 03:27:57 +00:00
Fred Kiefer
9c36a184cc New MacOS 10.4 methods for NSView plus some clean up and corrections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24783 72102866-910b-0410-8b05-ffd578937521
2007-03-06 16:11:45 +00:00
Fred Kiefer
34b0abf4d0 Added MacOS 10.4 methods for NSDocument, NSDocumentController,
NSPrintOperation, NSResponder and NSCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24378 72102866-910b-0410-8b05-ffd578937521
2007-01-17 12:09:41 +00:00
Richard Frith-MacDonald
8e6eaaac0f Move main part of affine transform code to base for MacOS-X compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24133 72102866-910b-0410-8b05-ffd578937521
2006-11-19 11:32:51 +00:00
Matt Rice
1a7c5c309c * Tools/gopen.m
*  Source/NSView.m
        *  Source/GSPDFPrintOperation.m
        *  Source/NSHelpManager.m
        *  Source/GSHelpManagerPanel.m: Add missing includes.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24006 72102866-910b-0410-8b05-ffd578937521
2006-10-31 13:38:00 +00:00
Richard Frith-MacDonald
f32270e66c Tweak new theme method and fix up indentation errors.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23909 72102866-910b-0410-8b05-ffd578937521
2006-10-19 06:06:00 +00:00
Gregory John Casamento
5b14579bdd * Source/NSView.m: Applied patch from Banlu Kemiyatorn. Corrects
issue with detection of events in a rotated view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23908 72102866-910b-0410-8b05-ffd578937521
2006-10-19 05:47:36 +00:00
Gregory John Casamento
3c63c09716 Applied patch given by Mark Tracy for printing improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23877 72102866-910b-0410-8b05-ffd578937521
2006-10-15 15:30:27 +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
Richard Frith-MacDonald
ac3da2c4ca Make sure tooltip window starts off on screen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23756 72102866-910b-0410-8b05-ffd578937521
2006-10-04 13:36:56 +00:00
Eric Sersale
b9fd9f40ea * Source/NSView.m: In -setToolTip: sets the has_tooltips flag.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23754 72102866-910b-0410-8b05-ffd578937521
2006-10-04 11:32:51 +00:00
Richard Frith-MacDonald
ab9ac7d741 IUmplement tool tip help
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23732 72102866-910b-0410-8b05-ffd578937521
2006-10-02 19:22:22 +00:00
Richard Frith-MacDonald
e779b4215b Fix tracking rect bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23711 72102866-910b-0410-8b05-ffd578937521
2006-10-02 12:07:35 +00:00
Richard Frith-MacDonald
0232b540d9 minor coordinate fix for flushing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23465 72102866-910b-0410-8b05-ffd578937521
2006-09-12 12:59:17 +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
Fred Kiefer
f2beece4f3 Small clean ups in NSView, NSTableView and the headers included in
AppKit.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23257 72102866-910b-0410-8b05-ffd578937521
2006-08-11 20:04:53 +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
fb8609cf7a Don't encode the superview when encoding the contentView of a window, since it can be a subview of the GS decoration views. Correct type for visibleWindows, should be NSArray, not NSSet.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23204 72102866-910b-0410-8b05-ffd578937521
2006-08-05 12:46:20 +00:00
Gregory John Casamento
f4032747d3 GSNibContainer version 2 changes. New method declarations for customClasses, visibleWindows and deferredWindows. Changes to init, initWithCoder: and encodeWithCoder: to handle the new data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23150 72102866-910b-0410-8b05-ffd578937521
2006-07-09 14:54:51 +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
Fred Kiefer
9bcf4a86ef Handle remaining problems with cursor rects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23041 72102866-910b-0410-8b05-ffd578937521
2006-06-09 17:33:11 +00:00
Fred Kiefer
1d4845b573 Fix cursor rect problems, when window closes or the view is scrolled.
Patch by Mircea Trache <aer@shaw.ca>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22988 72102866-910b-0410-8b05-ffd578937521
2006-05-27 21:54:29 +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
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
Richard Frith-Macdonald
bd8fb5fc53 Hacks by Greg to placate 4.1 compiler. Just in case we can't persuade them
to 'fix' cast to union with an 'id' member.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21783 72102866-910b-0410-8b05-ffd578937521
2005-10-07 09:57:51 +00:00
Richard Frith-Macdonald
e97187862a After chwecking MacOS-X ... reimplement last change usiing a private helper
method to send notifications of view moving to window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21676 72102866-910b-0410-8b05-ffd578937521
2005-08-25 07:44:25 +00:00
Richard Frith-Macdonald
bf2bd2d0a3 Implemented viewDidMoveToWindow:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21675 72102866-910b-0410-8b05-ffd578937521
2005-08-25 07:30:13 +00:00
Adam Fedor
239d1b5296 Fix some documentation errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21494 72102866-910b-0410-8b05-ffd578937521
2005-07-17 14:07:07 +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
931fa977c7 Allow cells to print even when not connected to a window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21249 72102866-910b-0410-8b05-ffd578937521
2005-05-22 21:12:08 +00:00
Fred Kiefer
29db6affc8 Added new NSResponder method declarations and implemented shouldBeTreatedAsInkEvent:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21238 72102866-910b-0410-8b05-ffd578937521
2005-05-20 12:31:42 +00:00
Fred Kiefer
daa83e855e Prevent exception when subview is added at the end of the subview list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21073 72102866-910b-0410-8b05-ffd578937521
2005-04-07 22:13:10 +00:00
Gregory John Casamento
208c87b881 Improvements in keyed coding and correction for NSCell formatter unarchiving issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20235 72102866-910b-0410-8b05-ffd578937521
2004-10-18 01:48:15 +00:00
Fred Kiefer
a52e330d25 Added some more keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20116 72102866-910b-0410-8b05-ffd578937521
2004-09-23 23:12:54 +00:00
Fred Kiefer
a15214f38d Readded NSCell setType: patch with originally missing bit for NSButtonCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20072 72102866-910b-0410-8b05-ffd578937521
2004-09-16 13:44:00 +00:00
Alexander Malmberg
ab6a805021 (-scrollRectToVisible:): Implement correctly, patch from Andrew Ruder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19968 72102866-910b-0410-8b05-ffd578937521
2004-09-01 22:19:49 +00:00
Quentin Mathe
e428e69f82 Toolbar improvements... Fixed several major and minor bugs, rewritten the validation support, lot of memory leaks eliminated and other changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19689 72102866-910b-0410-8b05-ffd578937521
2004-07-07 21:25:42 +00:00
Alexander Malmberg
6d15d51344 Reimplement -convertRect:fromView: and -convertRect:toView: correctly. Don't mess up the clipping of rotated views in -lockFocusInRect:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18864 72102866-910b-0410-8b05-ffd578937521
2004-03-22 17:14:26 +00:00
Alexander Malmberg
c2adaaaa9d (-hitTest:): Don't require that the point is inside our super view if we don't have a super view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18845 72102866-910b-0410-8b05-ffd578937521
2004-03-14 18:46:01 +00:00
Fred Kiefer
d82befe200 New ivars for NSView and improved canDraw implemetantion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18802 72102866-910b-0410-8b05-ffd578937521
2004-03-08 13:56:56 +00:00
Fred Kiefer
31cde10bcd Added stubs for new MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18634 72102866-910b-0410-8b05-ffd578937521
2004-02-20 13:18:51 +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
2be0f07f80 Remove uses of the deprecated 'casts as lvalues' gcc extension.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18535 72102866-910b-0410-8b05-ffd578937521
2004-02-04 00:27:49 +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
Fred Kiefer
0285ceb796 Exchanged appendTransform: and prePendTransform:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18479 72102866-910b-0410-8b05-ffd578937521
2004-01-25 16:50:33 +00:00
Fred Kiefer
4f10989eb8 Corrected affine transform struct element names and added some drawing functions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18288 72102866-910b-0410-8b05-ffd578937521
2003-12-30 12:42:37 +00:00