Commit graph

5577 commits

Author SHA1 Message Date
Gregory John Casamento
0f5697ae8d Add NSAnimationContext skeleton code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/bitmarkets_changes@38636 72102866-910b-0410-8b05-ffd578937521
2015-06-14 21:38:17 +00:00
Fred Kiefer
41d42922c2 * Source/NSBitmapImageRep+GIF.m: Handle EGifOpen similar to
other version specific functions.
        * Headers/Additions/GNUstepGUI/GSXibElement.h
        * Headers/Additions/GNUstepGUI/GSXibLoading.h
        * Headers/Additions/GNUstepGUI/GSXibObjectContainer.h
        * Headers/Additions/GNUstepGUI/GSXibParser.h
        Correct FSF address.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38581 72102866-910b-0410-8b05-ffd578937521
2015-05-28 21:44:19 +00:00
Sebastian Reitenbach
8060ece175 abs() -> fabs()
OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38572 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:57:19 +00:00
Sebastian Reitenbach
6d5a0cc236 A bunch of format string fixes and some casts to force formats
No objections from Fred Kiefer ;)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38569 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:15:16 +00:00
Sebastian Reitenbach
18910829e4 return value for NSMenu itemAtIndex change from
id<NSMenuItem> to NSMenuitem* as it is done by Apple too
          fixes warnings in NSApplication.m and NSTextView.m

OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38568 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:11:17 +00:00
Sebastian Reitenbach
e097f5d773 Remove some extra parameters from debug outputs
OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38567 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:08:41 +00:00
Sebastian Reitenbach
e22b248f7e giflib 5.1.0 also has EGifCloseFile with 2 parameters,
so add a define like others have to fix its usage.

OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38544 72102866-910b-0410-8b05-ffd578937521
2015-05-25 20:13:54 +00:00
Fred Kiefer
2a7e1fbf65 * ChangeLog: Correct version number in last commit.
* Source/NSButtonCell.m (-encodeWithCoder:): Correct bug with
        image position in NSButtonFlags.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38526 72102866-910b-0410-8b05-ffd578937521
2015-05-22 20:41:31 +00:00
Ivan Vučica
d3861e224c Better support for setting errors inside -dataOfType:error: and -readFromData:ofType:error:.
Previously, under GNUstep, NSLocalizedFailureReasonKey was ignored when
presented with +[NSAlert alertWithError]. Additionally, error set in
-readFromData:ofType:error: was overwritten by two different methods in the
file reading chain.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38483 72102866-910b-0410-8b05-ffd578937521
2015-05-10 19:10:56 +00:00
Fred Kiefer
1a8e5a320b * Headers/AppKit/NSColor.h,
* Source/NSColor.m: Add OSX 10 named colours.
        * Source/NSColorList.m: Add keyed coding/decoding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38449 72102866-910b-0410-8b05-ffd578937521
2015-04-02 22:54:42 +00:00
Fred Kiefer
a47ee28eae * Source/NSSavePanel.m: Fix problem with the title shown in
the save panel's title bar not matching the set title when
        the panel is reused for a different purpose.
        Patch by Doug Simons <doug.simons@testplant.com>
        * Source/NSApplication.m: Adjust modal window position to
        relative window requested.
        Patch by Marcian Lytwyn <gna@advcsi.com> with small change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38440 72102866-910b-0410-8b05-ffd578937521
2015-03-27 21:33:24 +00:00
Fred Kiefer
6d27cf76b1 * Images/NSRemoveTemplate.tiff: Add file.
* Images/GNUmakefile: Handle new file.
        * Source/GSXibLoader.m: Better error reporting for wrong
        application class.
        * Source/NSOutline.m (-drawRow:clipRect:): Don't set the value
        for the edited cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38408 72102866-910b-0410-8b05-ffd578937521
2015-03-15 23:31:43 +00:00
Fred Kiefer
830a6ef782 * Source/NSCollectionView.m (-newItemForRepresentedObject:):
Don't autorelease the returned object as this method starts with
        "new".
        * Source/NSCollectionViewItem.m (-copyWithZone:): Add call to
        new method to copy over the bindings from the old view hierarchy to
        the new.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38405 72102866-910b-0410-8b05-ffd578937521
2015-03-12 22:13:42 +00:00
Germán Arias
0bdd4d0ae6 Add class method +count in NSCursor to handle cursors on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38403 72102866-910b-0410-8b05-ffd578937521
2015-03-12 05:34:08 +00:00
Fred Kiefer
7d8ad46759 * Source/NSImageView.m (-initWithCoder:): Set default for
AllowsCutCopyPaste.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38393 72102866-910b-0410-8b05-ffd578937521
2015-03-10 23:16:44 +00:00
Fred Kiefer
6a2ccd78ac * Source/NSCollectionViewItem.m: Fix reference counting in
-copyWithZone:. Remove method -view again.
        * Source/NSArrayController.m: Fix reference counting in
        -newItemForRepresentedObject. Protect -_resetItemSize from
        missing prototype view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38392 72102866-910b-0410-8b05-ffd578937521
2015-03-10 23:02:09 +00:00
Fred Kiefer
f54ce64d99 * Source/NSCollectionView.m (-tile): Prevent _numberOfColumns
from being 0.
        * Source/NSArrayController.m: Revert last change and add proper
        handling of arrangeObjects for many cases.
        * Source/NSCollectionViewItem.m: Fix reference counting. Add
        method -view to have something to display.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38387 72102866-910b-0410-8b05-ffd578937521
2015-03-08 22:23:06 +00:00
Germán Arias
954ab51922 Fix to load PPD files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38385 72102866-910b-0410-8b05-ffd578937521
2015-03-08 06:02:38 +00:00
Fred Kiefer
8206719047 * Source/NSCollectionView.m (+initialize): Add binding for
content.
        * Source/NSViewController.m (-loadView): Don't try to load the
        view if there is no name for the NIB.
        * Source/NSArrayController.m (-initWithContent:): Sets
        automaticallyRearrangesObjects to true.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38384 72102866-910b-0410-8b05-ffd578937521
2015-03-06 22:40:27 +00:00
Fred Kiefer
896756ae92 * Source/NSCollectionView.m (-drawRect:): Work around strange
behaviour of compiler.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38382 72102866-910b-0410-8b05-ffd578937521
2015-03-05 22:05:17 +00:00
Fred Kiefer
a0e08ea59a * Source/NSImageView.m (-initWithFrame:): Set default for
AllowsCutCopyPaste.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38380 72102866-910b-0410-8b05-ffd578937521
2015-03-05 21:10:31 +00:00
Germán Arias
86b7f99808 Fix last revert.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38365 72102866-910b-0410-8b05-ffd578937521
2015-02-24 06:14:50 +00:00
Germán Arias
03869b5d03 revert last commits.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38364 72102866-910b-0410-8b05-ffd578937521
2015-02-23 23:26:23 +00:00
Germán Arias
699c768ee7 Fix for tooltips on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38363 72102866-910b-0410-8b05-ffd578937521
2015-02-23 19:22:16 +00:00
Germán Arias
708aac6819 Use buffered windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38357 72102866-910b-0410-8b05-ffd578937521
2015-02-23 08:05:10 +00:00
Fred Kiefer
8b6e6bb752 * Source/NSCell.m (-copyWithZone:): Fix copy and paste error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38352 72102866-910b-0410-8b05-ffd578937521
2015-02-20 22:41:31 +00:00
Gregory John Casamento
5d9a261362 Move declarations of GSPrintPanel and GSPageLayout to theme and remove uneeded classes since they are not used and only override allocWithZone:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38324 72102866-910b-0410-8b05-ffd578937521
2015-02-03 20:26:10 +00:00
Gregory John Casamento
643cac4468 Allow override of the print panels from the theme or from the printing bundle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38322 72102866-910b-0410-8b05-ffd578937521
2015-02-02 23:39:08 +00:00
Gregory John Casamento
d628aac2e3 Correct issue I introduced last night. Continue moving print panel/layout panel implementation to theme instead of print bundle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38321 72102866-910b-0410-8b05-ffd578937521
2015-02-02 17:05:16 +00:00
Gregory John Casamento
e53b5e2e46 Add print panels to theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38318 72102866-910b-0410-8b05-ffd578937521
2015-02-01 20:46:37 +00:00
Fred Kiefer
09614d4d35 * Source/GSTextStorage.m
* Source/NSSpellChecker.m
        Two small cleanups.
        Patch by Marat Ibadinov <ibadinov@me.com>
        * Source/NSLayoutManager.m
        Changed == to >= to fix a crash when layout_char is beyond the
        length of the string.
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38312 72102866-910b-0410-8b05-ffd578937521
2015-01-31 18:19:29 +00:00
Fred Kiefer
8da8a7add8 * Source/NSBitmapImageRep.m (-copyWithZone): Changed the call
from -copyWithZone: to -mutableCopyWithZone:. 
        * Tests/gui/NSBitmapImageRep/testcopy.m: Test for this change
        Patch by Josh Freeman <tedge>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38301 72102866-910b-0410-8b05-ffd578937521
2015-01-23 17:16:08 +00:00
Fred Kiefer
29f4f8c512 * Source/tiff.m: Correct check for old libtiff version based on
idea by Riccardo Mottola <rm@gnu.org>.
        Remove all usages of deprecated types.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38300 72102866-910b-0410-8b05-ffd578937521
2015-01-23 13:29:38 +00:00
Fred Kiefer
e40611ea6c * Source/NSMenu.m (-update): Added case to menu autoenabler to
disable supermenus that have empty submenus, when there is no
        validator.
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38289 72102866-910b-0410-8b05-ffd578937521
2015-01-11 21:56:27 +00:00
Fred Kiefer
a8f35bbb94 * Source/NSTextView.m: Fix bizarre behavior with undo/redo
actions carrying across between different fields with the
        fieldEditor.
        Patch by Doug Simons <doug.simons@testplant.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38288 72102866-910b-0410-8b05-ffd578937521
2015-01-11 21:53:19 +00:00
Fred Kiefer
51276dc346 * Source/tiff.m: Use type tmsize_t.
Base on patch by Marat Ibadinov <ibadinov@me.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38287 72102866-910b-0410-8b05-ffd578937521
2015-01-11 21:51:20 +00:00
Fred Kiefer
6b0a46b215 * Source/NSTextView.m: Protect usages of sharedSpellChecker with
nil tests.
  Patch by Eric Wasylishen <ewasylishen@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38283 72102866-910b-0410-8b05-ffd578937521
2015-01-08 20:36:40 +00:00
Riccardo Mottola
db33ab6d5a floor rects
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38278 72102866-910b-0410-8b05-ffd578937521
2015-01-05 14:24:28 +00:00
Riccardo Mottola
11a55d01f1 Use protocol not class for NSMenuItem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38277 72102866-910b-0410-8b05-ffd578937521
2015-01-05 14:01:47 +00:00
Germán Arias
b0ab141b9a Fix tooltips issue with a change suggested by Fred.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38262 72102866-910b-0410-8b05-ffd578937521
2014-12-26 07:59:29 +00:00
Fred Kiefer
5e48d016ef * Source/NSDocumentFrameworkPrivate.h,
* Source/NSDocumentController.m:
        Open recent menu to clear items that have been deleted whenever
it reloads.
        Based on patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38242 72102866-910b-0410-8b05-ffd578937521
2014-12-08 16:03:49 +00:00
Fred Kiefer
92e67217a4 * Source/GSToolTips.m: Fixed two issues with tooltips.
(a) locationInView was being converted twice, producing invalid
        coordinates the second time, when using a provider to get the
        tooltips.
        (b) Tooltips were not working if you had two tracking rects next
        to each other in the same view, when moving from one to the
other,
        depending on the order they were processed, one could get the
        enter before the other's exit, thus canceling the timer.
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38241 72102866-910b-0410-8b05-ffd578937521
2014-12-08 15:29:11 +00:00
Fred Kiefer
903a37dd68 * Headers/AppKit/NSTableView.h,
* Source/NSTableView.m:
        Create working stubs for table view batch insertions/removals of
rows
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38240 72102866-910b-0410-8b05-ffd578937521
2014-12-08 15:08:53 +00:00
Fred Kiefer
2c4e998af6 * Source/NSParagraphStyle.m (-description): Add method.
Based on patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38239 72102866-910b-0410-8b05-ffd578937521
2014-12-08 10:51:39 +00:00
Fred Kiefer
6fc06cce3d * Source/NSLayoutManager.m
(_insertionPointRectForCharacterIndex:textContainer:): Fix
initial
        cursor insertion location with paragraph alignment setting.
        This patch has no visual effect as the alignment of the typing
        attributes never gets set.
        Based on patch by Marcian Lytwyn <gna@advcsi.com>.
        * Source/NSLayoutManager.m: Fix some compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38238 72102866-910b-0410-8b05-ffd578937521
2014-12-08 10:09:42 +00:00
Fred Kiefer
00928ee6ea * Headers/Additions/GNUstepGUI/GSXibLoading.h,
* Source/GSXibLoader.m: Fix object ID parsing in XIB loading due
        to Apple moving to string ID represenatation.
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38236 72102866-910b-0410-8b05-ffd578937521
2014-12-07 16:38:40 +00:00
Fred Kiefer
4d8a91d0e0 * Source/NSToolbarItem.m: Fix tool bar item tool tips.
Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38226 72102866-910b-0410-8b05-ffd578937521
2014-12-02 22:34:07 +00:00
Fred Kiefer
d56182771b * Source/NSBitmapImageRep.m (-copyWithZone:) Deep copy ivar _properties.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38217 72102866-910b-0410-8b05-ffd578937521
2014-11-30 20:45:29 +00:00
Fred Kiefer
47dc548684 * Source/NSParagraphStyle.m (+defaultParagraphStyle): Comment
out
  tabs in default paragraph style as Apple doesn't seem to have
them.
* Source/GSNibLoading.m: Set the main menu already when
  instantiating the top level objects. Thi is needed for newer
  versions of NIB files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38160 72102866-910b-0410-8b05-ffd578937521
2014-11-04 21:22:26 +00:00
Fred Kiefer
f36bb5811e * Source/NSLayoutManager.m
(-drawBackgroundForGlyphRange:atPoint:): Make save against
        glyph_run being null. Should fix part of #43454.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38141 72102866-910b-0410-8b05-ffd578937521
2014-10-31 14:12:44 +00:00