Commit graph

5271 commits

Author SHA1 Message Date
Fred Kiefer
ce25719c03 * Source/GSThemeDrawing.m (-drawTabViewRect:...selectedItem:),
* Source/NSTabView.m (-drawRect:): Move the select logic from
theme into normal code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35686 72102866-910b-0410-8b05-ffd578937521
2012-10-14 19:21:55 +00:00
Fred Kiefer
e85b16bc05 Merge selected changes from testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35681 72102866-910b-0410-8b05-ffd578937521
2012-10-13 18:43:38 +00:00
Fred Kiefer
4f5c219ed9 * Source/NSComboBoxCell.m (-textDidChange:):
Handle nil string from delegate completed string processing
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35677 72102866-910b-0410-8b05-ffd578937521
2012-10-12 17:29:11 +00:00
Fred Kiefer
8c0d5b3dff * Source/GSToolTips.m: Use separate view to draw tooltip text.
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35674 72102866-910b-0410-8b05-ffd578937521
2012-10-12 16:36:20 +00:00
Fred Kiefer
70baebe674 * Source/GSInfoPanel.m (value_from_info_plist_for_key): Use
NSBundle method to get the info dictionary.
Patch by: Luboš Doležel <lubos@dolezel.info>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35673 72102866-910b-0410-8b05-ffd578937521
2012-10-12 15:19:29 +00:00
Wolfgang Lux
be389d2459 Remove incorrect transformation of tracking rectangle coordinates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35663 72102866-910b-0410-8b05-ffd578937521
2012-10-10 08:13:56 +00:00
Gregory John Casamento
5b8d9117c5 Merges from the testplant branch for NSTabView, GSXibLoader.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35661 72102866-910b-0410-8b05-ffd578937521
2012-10-09 17:29:51 +00:00
Wolfgang Lux
b0b86079ca Fix implementation of tracking rectangles to use the coordinate system
of their views, as they do under Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35645 72102866-910b-0410-8b05-ffd578937521
2012-10-06 19:42:56 +00:00
Wolfgang Lux
c29763d8cc Improve keyboard navigation by automatically computing a key view loop
for a window (and tab view item). This implicit key view is created
when a window is made key and does not have an explicit key view loop,
which is detected by checking the initial first responder of the
window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35632 72102866-910b-0410-8b05-ffd578937521
2012-10-04 09:20:08 +00:00
Wolfgang Lux
81708584a5 Adjust key view loop when adding a new document view to a NSClipView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35631 72102866-910b-0410-8b05-ffd578937521
2012-10-04 08:26:01 +00:00
Wolfgang Lux
3e8bc54cd3 Abbreviate home directory in window titles.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35627 72102866-910b-0410-8b05-ffd578937521
2012-10-03 12:58:26 +00:00
Wolfgang Lux
2f3297119b Fix memory management for cursors. In particular prevent the current
cursor from being deallocated when client code releases the last
reference to it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35586 72102866-910b-0410-8b05-ffd578937521
2012-09-21 20:24:53 +00:00
Wolfgang Lux
daf0be3455 Make sure actions can be sent to the dialog window of a modal session
even if another panel (with worksWhenModal=YES) is key window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35585 72102866-910b-0410-8b05-ffd578937521
2012-09-21 11:26:02 +00:00
Germán Arias
f3d8072b00 Improvements for tooltips and Drag&Drop operations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35566 72102866-910b-0410-8b05-ffd578937521
2012-09-14 01:01:23 +00:00
Germán Arias
57fef8379e Improvements for cursor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35565 72102866-910b-0410-8b05-ffd578937521
2012-09-13 22:29:20 +00:00
Gregory John Casamento
22f55b8c28 * Headers/AppKit/NSTableView.h: Add _isValidating
* Source/NSCell.m (+initialize): Expose title binding.
	* Source/NSOpenPanel.m (-runModal): Use _directory if it is set.
	* Source/NSTableView.m (-validateEditing): Check _isValidating to
	prevent recursive calls into validateEditing.
	* Source/NSTabView.m (-initWithCoder:): Set _selected_item to
	NSNotFound.
	* Source/NSView.m (-addSubview:): Do not throw an exception when
	adding a nil subview, just ignore it.  This matches behavior on
	Cocoa.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35562 72102866-910b-0410-8b05-ffd578937521
2012-09-11 04:16:51 +00:00
Gregory John Casamento
d626f790f9 Commit minor changes to NSDataLink.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35561 72102866-910b-0410-8b05-ffd578937521
2012-09-11 04:05:33 +00:00
Wolfgang Lux
0484391980 Restore ability to create nested directories from NSSavePanel, which
was removed without reason during the last change of NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35516 72102866-910b-0410-8b05-ffd578937521
2012-09-04 12:08:52 +00:00
Gregory John Casamento
fb624bfa0d * Source/GSXibLoader.m: Remove test code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35514 72102866-910b-0410-8b05-ffd578937521
2012-09-04 02:35:48 +00:00
Gregory John Casamento
7da4d487ca Corrections to xib loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35510 72102866-910b-0410-8b05-ffd578937521
2012-09-04 01:41:05 +00:00
Wolfgang Lux
11a17a5165 Fix bug where the -_screenForFrame: method was returning nil when the
frame had zero width or height. This could destroy a valid screen
attribute of a window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35502 72102866-910b-0410-8b05-ffd578937521
2012-09-03 13:24:03 +00:00
Germán Arias
35f7ebe42d Improvements for ToolTips.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35499 72102866-910b-0410-8b05-ffd578937521
2012-09-03 01:28:33 +00:00
Gregory John Casamento
7d65149660 * Source/GSXibLoader.m: Correct issue with reuse of enumerator.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35494 72102866-910b-0410-8b05-ffd578937521
2012-09-02 17:56:46 +00:00
Gregory John Casamento
a618ee1ac1 * Source/GSXibLoader.m: Cover case where there are no changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35485 72102866-910b-0410-8b05-ffd578937521
2012-08-31 20:33:44 +00:00
Gregory John Casamento
cf7e179fcb * Headers/AppKit/NSSavePanel.h
* Source/NSSavePanel.m: Added implementation for directory method
	from 10.6.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35484 72102866-910b-0410-8b05-ffd578937521
2012-08-31 19:02:35 +00:00
Gregory John Casamento
58c33f3dce * Source/GSXibLoader.m: Add _preProcessXib: method to perform
custom class substitutions when loading a XIB file.
	* Source/GSXibLoading.m: Add stub classes for IBNSLayoutConstraint
	and IBNSLayoutConstant so that these can now be loaded.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35482 72102866-910b-0410-8b05-ffd578937521
2012-08-31 16:27:06 +00:00
Gregory John Casamento
09915b2bb3 Add tootip methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35463 72102866-910b-0410-8b05-ffd578937521
2012-08-27 15:29:32 +00:00
Fred Kiefer
ac6909e871 Merged changes from gnustep_testplant_branch branch and cleaned them up
a bit.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35417 72102866-910b-0410-8b05-ffd578937521
2012-08-17 13:16:12 +00:00
Richard Frith-MacDonald
58fa0b0126 be ready for coming osx compatibility fix in base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35389 72102866-910b-0410-8b05-ffd578937521
2012-08-10 08:33:03 +00:00
Fred Kiefer
4d8b1b42a9 * TextConverters/RTF/RTFProducer.m (-_addAttributesString:):
Correctly handle NSUnderlineStyleNone. This fixes bug #37043.
        * Headers/AppKit/NSOpenGL.h,
        * Source/NSOpenGLContext.m: New 10.6 methods to get/set the
        * CGLContextObj.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35358 72102866-910b-0410-8b05-ffd578937521
2012-08-07 20:50:45 +00:00
Riccardo Mottola
cc564506fd Do not call openFile: if only one file is supplied, as noted in 10.3 release notes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35357 72102866-910b-0410-8b05-ffd578937521
2012-08-07 16:10:27 +00:00
Riccardo Mottola
e431a592c8 implement openFiles: delegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35355 72102866-910b-0410-8b05-ffd578937521
2012-08-07 14:05:51 +00:00
Wolfgang Lux
fe24efe3d6 Don't call -insertText: at all in NSTextView -yank when the kill
buffer is empty.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35334 72102866-910b-0410-8b05-ffd578937521
2012-07-31 08:53:53 +00:00
Wolfgang Lux
2903be11c7 Catch and eventually handle exceptions in applications that are thrown
during background processing


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35333 72102866-910b-0410-8b05-ffd578937521
2012-07-31 08:32:15 +00:00
Wolfgang Lux
37a215ae8d Revert change to discard (but not handle) caught exception in typesetter
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35332 72102866-910b-0410-8b05-ffd578937521
2012-07-31 08:21:17 +00:00
Gregory John Casamento
38ea4d65a6 * Source/NSImage.m: -[NSImage initWithCoder:] an extension to
the previous change.  If the URL doesn't load then try to load
	the image in the NSURL as a "named" image in resources so that
	the developer of the app has a way to provide this image.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35316 72102866-910b-0410-8b05-ffd578937521
2012-07-24 10:39:29 +00:00
Gregory John Casamento
1a81de9b5d * Source/NSImage.m: -[NSImage initWithCoder:]
Some XIB files have image representations encoded
	via NSURL.  When this happens it causes the XIB not to be loaded at
	all since the image rep fails to load and causes the xib loading
	process to fail.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35310 72102866-910b-0410-8b05-ffd578937521
2012-07-20 18:25:55 +00:00
Fred Kiefer
554390210e * Source/NSWorkspace.m (-_openUnknown:): New method that starts an
operation system specific application for files or URL that
could
        not be handled by GNUstep applications. Based on patch by Julian
        Mayer <julian@corecode.at>.
        * Source/NSWorkspace.m
        * (-openFile:withApplication:andDeactivate:,
        -openTempFile:, -openURL:): Use this new method.
        * Documentation/GuiUser/DefaultsSummary.gsdoc: Document the new
        setting GSUnknownFileTool that allows to define a default
application.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35246 72102866-910b-0410-8b05-ffd578937521
2012-06-29 12:54:19 +00:00
Fred Kiefer
6075fe5600 Small consistency updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35227 72102866-910b-0410-8b05-ffd578937521
2012-06-23 15:09:08 +00:00
Germán Arias
60f4f3c880 Revert last change in GSWindowDecorationView.m while found the real problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35205 72102866-910b-0410-8b05-ffd578937521
2012-06-15 18:45:14 +00:00
Eric Wasylishen
a92d331704 * Source/NSSplitView.m (adjustSubviews): Use centerScanRect to
give subviews pixel-aligned frames.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35199 72102866-910b-0410-8b05-ffd578937521
2012-06-13 06:30:42 +00:00
Germán Arias
2495374d27 Use the font size in user defaults for tooltips
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35185 72102866-910b-0410-8b05-ffd578937521
2012-06-08 04:43:06 +00:00
Germán Arias
6e3e481071 Fix bugs #36419 and #36586
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35183 72102866-910b-0410-8b05-ffd578937521
2012-06-07 18:46:44 +00:00
Wolfgang Lux
70fe303412 Prevent potential crashes due to invalid pointers left in text
containers and layout managers when their respective layout manager
and text storage are deallocated.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35178 72102866-910b-0410-8b05-ffd578937521
2012-06-05 11:34:02 +00:00
Wolfgang Lux
1dd7be22f7 Update text storage directly when undoing text changes in a NSTextView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35175 72102866-910b-0410-8b05-ffd578937521
2012-06-02 22:31:54 +00:00
Gregory John Casamento
f8c5c4673d * Source/GSXibLoader.m:
Added NSMenu (XibCompatibility) category with method: _isMainMenu
	Added NSMenu (XibCompatibility) category implementation.
        Modified setting main menu in awake:inContainer:withContext:
	Fixes bug #36427
	Committed by: gcasa



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35159 72102866-910b-0410-8b05-ffd578937521
2012-05-21 17:56:05 +00:00
Fred Kiefer
82a110d152 * Headers/AppKit/NSInterfaceStyle.h: Remove GSNativeInterfaceStyle.
* Source/NSComboBoxCell.m (-encodeWithCoder:, -initWithCoder:):
Add a few more keyed coding values. Fixes bug #36426.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35146 72102866-910b-0410-8b05-ffd578937521
2012-05-07 20:21:59 +00:00
Fred Kiefer
023f0030e2 * Source/GSXibLoader.m: Add some (currently unused) helper code
for class substitution in flattenedProperties.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35138 72102866-910b-0410-8b05-ffd578937521
2012-05-05 16:49:43 +00:00
Fred Kiefer
74139f4848 * Source/NSPasteboard.m (NSURL-writeToPasteboard:): Revert the
last change.
* Source/NSWorkspace.m (-openURL:): Declare the URL pasteboard
type here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35110 72102866-910b-0410-8b05-ffd578937521
2012-04-24 16:54:53 +00:00
Fred Kiefer
ea5e2a3c97 * Source/NSPasteboard.m (NSURL-writeToPasteboard:): Declare the type.
Patch by Andreas Schik <andreas.schik@web.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35109 72102866-910b-0410-8b05-ffd578937521
2012-04-24 07:48:53 +00:00