Commit graph

4598 commits

Author SHA1 Message Date
fredkiefer
d4b51a7b63 Avoid compiler warnings from old compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30089 72102866-910b-0410-8b05-ffd578937521
2010-04-05 18:20:24 +00:00
dpsimons
b3bb898eba Fix problems with next key view chain
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30088 72102866-910b-0410-8b05-ffd578937521
2010-04-05 16:59:51 +00:00
dpsimons
d5c7b875c9 Fix crash caused by close being called recursively
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30087 72102866-910b-0410-8b05-ffd578937521
2010-04-05 16:07:46 +00:00
dpsimons
a6b0dc31cd fix problem with drawer window being shown prematurely
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30086 72102866-910b-0410-8b05-ffd578937521
2010-04-05 15:31:48 +00:00
fredkiefer
bee71b7d8b Final part of #include -> #import replacement in official headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30084 72102866-910b-0410-8b05-ffd578937521
2010-03-31 21:21:18 +00:00
fredkiefer
3d559c477e Yet another set of #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30083 72102866-910b-0410-8b05-ffd578937521
2010-03-31 08:14:50 +00:00
gcasa
025a72aaca * Source/NSTableView.m: Add nil check to make sure that the
nil values set for certain keys don't get set since they are
	normally set by connections later in the nib loading process. 
	I'm not sure why IB includes these when they're set to nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30082 72102866-910b-0410-8b05-ffd578937521
2010-03-31 04:02:03 +00:00
fredkiefer
e5373254e4 Use NSNibOwner instead of @"NSOwner". Remove the hard coded "gorm"
extension. Try to use higher level NIB loading methods where possible.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30077 72102866-910b-0410-8b05-ffd578937521
2010-03-30 07:54:04 +00:00
wlux
b69e5ffdbd Remove a stray semicolon, which made NSWindow ignore all GSAppKitWindowLeave
events. This was the cause for, e.g., somewhat too sticky tooltips.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30075 72102866-910b-0410-8b05-ffd578937521
2010-03-30 07:28:05 +00:00
wlux
615f8a31c0 Attempt to improve a possibly misleading comment about releasing top
level objects of a gorm/nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30074 72102866-910b-0410-8b05-ffd578937521
2010-03-30 07:09:44 +00:00
fredkiefer
1f85c0a65f This should have been in the previous commit instead of NSPasteboard.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30071 72102866-910b-0410-8b05-ffd578937521
2010-03-28 21:34:13 +00:00
fredkiefer
a3f75b271f Rewrite of top level object handling in NIB/Gorm/Xib loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30070 72102866-910b-0410-8b05-ffd578937521
2010-03-28 21:33:08 +00:00
wlux
6ffe3918e5 Implement additional NSResponder action methods to scroll to the
beginning and end of a document, respectively.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30057 72102866-910b-0410-8b05-ffd578937521
2010-03-27 22:03:34 +00:00
wlux
e23c76d028 Change move word forwoard to move to the next end of a word rather
than the beginning of the next word so users can quickly navigate to
either end of words.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30056 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:51:33 +00:00
wlux
d0a7bfda42 Usability improvements: When setting the cursor to the beginning of a
line, set the typing attributes to the attributes of the first character
of that line rather than the preceding newline. When deleting text, set
the typing attributes to those of the first deleted character rather
than those of the character preceding the deleted range.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30055 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:41:29 +00:00
wlux
21b251d643 Allow shift-clicking in a text view to shrink the current selection.
Comes handy when you accidentally selected a few characters too much.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30054 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:29:02 +00:00
wlux
3d5ef6c541 Select pasted text in a text view after a DnD operation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30053 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:17:00 +00:00
wlux
515f6d28de Show a document's represented file name in the title of its window
also when its display name is equal to the last path component of the
file name, since that is what NSDocument uses by default for
compatibility with OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30052 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:06:45 +00:00
wlux
6fe88f9e37 Extend lifetime of a window controller to the end of the current event
cycle when its window is closed to prevent crashes due to a premature
release after the latest nib loading changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30051 72102866-910b-0410-8b05-ffd578937521
2010-03-27 20:53:48 +00:00
theraven
14205ea54b Removed all uses of @defs() from -gui, so it now compiles cleanly with the non-fragile ABI. All ivars that must be accessed from other classes are now wrapped in PACKAGE_SCOPE. With clang, this expands to @package, with GCC it expands to @public.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30045 72102866-910b-0410-8b05-ffd578937521
2010-03-27 00:01:03 +00:00
rmottola
b06fb57e31 removed c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30041 72102866-910b-0410-8b05-ffd578937521
2010-03-26 00:10:45 +00:00
fredkiefer
c06bffe250 Some more #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30036 72102866-910b-0410-8b05-ffd578937521
2010-03-25 21:30:28 +00:00
fredkiefer
a82a10471f * Source/GSNibLoading.m (NSIBObjectData-nibInstantiateWithOwner:topLevelObjects:): Loop
over _names instead of _objects.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30035 72102866-910b-0410-8b05-ffd578937521
2010-03-25 20:41:06 +00:00
fredkiefer
9426e71556 Yet another bit of #include -> #import replacement. Replace includes of Foundation.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30034 72102866-910b-0410-8b05-ffd578937521
2010-03-25 09:11:50 +00:00
fredkiefer
c524f07ab6 Another bit of #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30033 72102866-910b-0410-8b05-ffd578937521
2010-03-24 22:41:21 +00:00
dpsimons
f158b0a047 use NSPanel instead of NSWindow for tooltips
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30030 72102866-910b-0410-8b05-ffd578937521
2010-03-24 17:14:34 +00:00
fredkiefer
9768ee6425 Next bit of #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30029 72102866-910b-0410-8b05-ffd578937521
2010-03-24 09:18:14 +00:00
fredkiefer
d2321f05c7 Change tag to NSInteger.
Patch by Anibal Rindisbacher <anibal784@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30026 72102866-910b-0410-8b05-ffd578937521
2010-03-23 21:26:24 +00:00
fredkiefer
a6880c0f99 * 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
fredkiefer
8561ca5047 Small improvements on XIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30023 72102866-910b-0410-8b05-ffd578937521
2010-03-23 07:15:17 +00:00
fredkiefer
6748c36979 Fix issues with last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30019 72102866-910b-0410-8b05-ffd578937521
2010-03-22 21:25:35 +00:00
fredkiefer
444b0fc6db Get the class NSNib to work and use it in NSBundleAdditions.
Restructure top level object handling for NIB loading.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30018 72102866-910b-0410-8b05-ffd578937521
2010-03-22 09:08:50 +00:00
fredkiefer
ec2ea1114d Workaround for Bean NIB loading issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30016 72102866-910b-0410-8b05-ffd578937521
2010-03-21 23:27:47 +00:00
ericwa
402a8fef59 Fix for NSSearchField not sending action messages during typing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30011 72102866-910b-0410-8b05-ffd578937521
2010-03-20 20:57:15 +00:00
fredkiefer
0e91a1f652 Small improvements to NIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30010 72102866-910b-0410-8b05-ffd578937521
2010-03-20 17:23:10 +00:00
fredkiefer
fa7360af1e Clean up includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30009 72102866-910b-0410-8b05-ffd578937521
2010-03-20 14:09:02 +00:00
jonathanosx
808f778c16 Don't attempt to add a nil sort descriptor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30005 72102866-910b-0410-8b05-ffd578937521
2010-03-19 23:39:07 +00:00
fredkiefer
c24eef3a7c Remove includes of GSCategories.h, as this file no longer exists.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30000 72102866-910b-0410-8b05-ffd578937521
2010-03-19 08:18:43 +00:00
fredkiefer
b6c4bb0066 * Source/NSBitmapImageRep+JPEG.m: Put cinfo into a defined state
before using it.
Patch by Vincent Richomme <forumer@smartmobili.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29998 72102866-910b-0410-8b05-ffd578937521
2010-03-18 08:36:28 +00:00
fredkiefer
8b4249dddd * Source/NSTextView.m (-readSelectionFromPasteboard:type:): Fix
potential memory leak for colour pasting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29992 72102866-910b-0410-8b05-ffd578937521
2010-03-17 09:36:19 +00:00
ericwa
6a14a009a2 NSSliderCell: implement circular sliders
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29985 72102866-910b-0410-8b05-ffd578937521
2010-03-17 00:18:30 +00:00
fredkiefer
bb364f992c Handle events of type flagschanged correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29978 72102866-910b-0410-8b05-ffd578937521
2010-03-16 09:15:54 +00:00
rfm
937ea133cb uninitialised var fix suggested by Anibal Rindisbacher <anibal784@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29970 72102866-910b-0410-8b05-ffd578937521
2010-03-15 21:26:06 +00:00
fredkiefer
ef8700cc8e Correct the decoding of the <bytes> element. Now colour are correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29964 72102866-910b-0410-8b05-ffd578937521
2010-03-15 13:10:05 +00:00
fredkiefer
60daf66eb6 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
fredkiefer
93e1163bde Retain teh text view not the layout manager during container replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29960 72102866-910b-0410-8b05-ffd578937521
2010-03-15 11:23:09 +00:00
fredkiefer
bbf6f7bd5e Better debug output plus minor improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29959 72102866-910b-0410-8b05-ffd578937521
2010-03-15 10:49:21 +00:00
ericwa
7352243ba7 NSOpenGLView: fix resising when loaded from nibs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29956 72102866-910b-0410-8b05-ffd578937521
2010-03-15 00:11:11 +00:00
fredkiefer
951bca9ec0 Add file for basic XIB loading. This is only partly working and will
need some more polishing and testing. Feel free to help with that.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29955 72102866-910b-0410-8b05-ffd578937521
2010-03-14 23:07:53 +00:00
espectador
15ad2b586f Added missing internationalisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29937 72102866-910b-0410-8b05-ffd578937521
2010-03-14 05:45:53 +00:00