Commit graph

2030 commits

Author SHA1 Message Date
Sergii Stoian
bdd241a52d * Headers/AppKit/NSCursor.h:
* Source/NSCursor.m (greenArrowCursor):
Use getStandardCursor() to get GSGreenArrowCursor. New cursor type
GSGreeanArrowCursor was added.
2019-04-17 17:46:16 +03:00
Gregory John Casamento
ae49b8374a Merge branch 'master' of github.com:gnustep/libs-gui into bug33395_uses_single_line_mode 2019-04-10 00:31:57 -04:00
Sergii Stoian
b5e65175a3 hidewindow methods was renamed to hideApplication. 2019-04-06 22:36:56 +03:00
Sergii Stoian
f018c2087b Added support for WindowMaker's WMFHideApplication action. 2019-04-05 14:07:33 +03:00
Sergii Stoian
c0c3c5f448 Lovering down NSFloatingWindowLevel number by one to distinguish floating panels from menus. 2019-03-27 16:19:00 +02:00
Gregory John Casamento
4406c7de45 Changes for bug33395: Adds missing setter implementation. Changes to follow for behavioral and archival changes. 2019-03-09 09:47:23 -05:00
Gregory John Casamento
e833084f6d Add method setUsesSingleLineMode: and usesSingleLineMode 2019-03-09 05:43:38 -05:00
fredkiefer
d9c033d464 * Headers/Additions/GNUstepGUI/GSHorizontalTypesetter.h: Add
comment to describe cache variables.
* Source/GSHorizontalTypesetter.m: Restructure glyph attribute
cache filling and make _addExtraLineFragment saver by providing a
default for curParagraphStyle.
2019-02-10 22:17:36 +01:00
Riccardo Mottola
54fdc861a5 New getmntent structure checks 2018-11-19 01:44:24 +01:00
fredkiefer
b90d3a341e * Source/NSGraphicsContext.m (+graphicsContextWithGraphicsPort:flipped:):
Rewrite using an init method.
2018-09-14 22:18:16 +02:00
Riccardo Mottola
96fbdaa81f Check for floorf() and provide simple replacement 2018-06-11 23:46:06 +02:00
Stjepan Brkić
e1031e7198 Add 'id _coreAnimationData' variable to AppKit/Headers/NSView.h.
The variable will point to another class instance that will
contain data necessary data for future implementation of methods
regarding CA layers.
2018-06-05 12:36:42 +00:00
fredkiefer
760cfa6d62 * Headers/AppKit/NSSliderCell.h,
* Source/NSSliderCell.m: Rewrite this class to store and access
the value directly. This brings the behaviour closer to Apple's
horrible implementation.
2018-03-11 19:09:08 +01:00
fredkiefer
3ad98f9474 * Headers/Additions/GNUstepGUI/GSTheme.h,
* Source/GSThemeDrawing.m: Correct int/NSInteger mismatch detected
by Josh Freeman <pikopixel@twilightedge.com>.
2018-02-27 22:02:54 +01:00
fredkiefer
f2ebe775d9 * Headers/AppKit/NSKeyValueBinding.h,
* Source/NSKeyValueBinding.m: Add helper function NSIsControllerMarker.
2018-02-26 00:13:15 +01:00
fredkiefer
b3b64278e3 * config/pkg.m4: Update to serial 12.
* Headers/Additions/GNUstepGUI/config.h.in,
* configure: Regnerate
Fixes bug #52779.
Patch by Yavor Doganov <yavor@gnu.org>
2018-01-01 22:42:28 +01:00
fredkiefer
7270f8efc7 Add new backingScaleFactor method on NSScreen. 2017-12-03 22:02:06 +01:00
Daniel Ferreira
471a81ddb8 NSSpellChecker: implement stub for +isAutomaticQuoteSubstitutionEnabled
Implement stub for +[NSSpellChecker isAutomaticQuoteSubstitutionEnabled]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
39d9105d35 NSSpellChecker: implement stub for +isAutomaticDashSubstitutionEnabled
Implement stub for +[NSSpellChecker isAutomaticDashSubstitutionEnabled]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
9e8ef84b54 NSGestureRecognizer: implement stub for -locationInView:
Implement stub for -[NSGestureRecognizer locationInView:] for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
b09cdec727 NSWindow: define more NSWindowCollectionBehavior values
Define new values for the NSWindowCollectionBehavior enum for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
3e9cdce801 NSWindow: add stub for +windowNumberAtPoint:belowWindowWithWindowNumber:
Add stub for +[NSWindow windowNumberAtPoint:belowWindowWithWindowNumber:]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
10d0dce115 NSSpellChecker: add stub for -checkGrammarOfString:...
Add a stub for the -checkGrammarOfString:... method for compatibility
purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
677572bef1 NSSpellChecker: add stub for +isAutomaticTextReplacementEnabled
Add stub for +[NSSpellChecker isAutomaticTextReplacementEnabled] for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
ac56a5aeae NSDragging: create NSDraggingSource protocol
Create NSDraggingSource protocol for increased compatibility with GUI.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
9ce55e08ca NSSpellChecker: add missing definitions
Add definitions for the NSCorrectionResponse enum for increased
compatibility, as well as some spell checking notification constants.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
4f4db46c87 NSWindow: add stub for -backingScaleFactor
Add stub for -[NSWindow backingScaleFactor] for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
07d0f2002f NS{Application,Window}: define modal constants
Define constants and stubs related to modal sheets in GUI for increased
compatibility.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
5e8b278e93 NSFont: define font weight constants
Define font weight constants introduced in macOS 10.11.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
1560978a60 NSAttributedString: add private attribute stub
Add a stub for NSTextInsertionUndoableAttributeName, a private
NSAttributedString attribute.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
8321f7ee5d NSButtonCell: define new button cell constants
Define new button cell constants in the NSButtonCell header. These
buttons are not yet implemented, however.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
5ce4348754 NSText: define new NSTextAlignment constants
Define new-style NSTextAlignment* constants on GUI for compatibility
purposes with new macOS versions.
2017-08-27 01:42:00 +01:00
fredkiefer
b713d0c023 Clean up NSPasteboardItem files. 2017-07-31 23:21:59 +02:00
Daniel Ferreira
257017c65f NSGraphicsContext: create -CGContext methods
Create methods which allow a graphics context to be created with a
CGContext as an equivalent to a graphics port. The context set through
this property will be used in gnustep-back.
2017-07-31 11:41:11 +01:00
Daniel Ferreira
dc9ff85436 Quartz: Expose methods for bridge with Opal
Expose methods for bridging Opal types and GUI classes. The new
relations are the following:

a) NSImage -> CGImage
b) NSColor -> CGColor
c) NSImageRep -> CGImage

The actual implementation for this bridge is implemented in the Backend
library.

This significantly improves compatibility with AppKit.
2017-07-31 11:41:11 +01:00
Daniel Ferreira
6d4302cd97 NSTextList: create startingItemNumber property
Add the `startingItemNumber` property to NSTextList introduced in macOS
10.6.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
5403e47b60 NSPasteboardItem: create base implementation
Implement the NSPasteboardItem class. For now, it remains relatively
useless since NSPasteboard does not yet know how to use it. However, it
should be pluggable into NSPasteboard once NSPasteboard learns about
NSPasteboardReading and NSPasteboardWriting.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
34ecd57e4e NSPasteboard: define NSPasteboard{Reading,Writing}
Define the NSPasteboardReading and NSPasteboardWriting protocols
introduced in OSX 10.6.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
ac26b6725b NSTextAlternatives: implement text alternatives class
Implement NSTextAlternatives, a class usually used for choosing
alternatives from a basic string usually for dictation purposes.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
fcb11edca8 NSScroller: define scroller styles
As of macOS 10.7, scrollers gained two types: Legacy and Overlay. Here,
we define these styles as well as a method to determine which is the
"default" style to be used.
2017-07-31 11:22:59 +01:00
Riccardo Mottola
47c09aaedb We can actually use retain as an equivalent property when not using ARC 2017-07-28 10:01:25 +02:00
fredkiefer
9bb07ba461 Remove property attribute "strong" as gcc does not support this. 2017-07-27 08:29:18 +02:00
Daniel Ferreira
fbdea829c0 NSAttributedString: define writing direction attribute
Define an (unimplemented) NSAttributedString attribute for Unicode
writing direction.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
d09106096b NSAttributedString: define writing direction constants
Define constants for defining an attributed string's writing direction.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
b29d85f451 NSAttributedString: define NSTextAlternatives attribute
Define an (unimplemented) NSAttributedString attribute for an
NSTextAlternatives object.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
758d524547 NS{Cell,View}: implement stubs for layout direction handling
Implement stubs for the layout direction properties in NSCell and
NSView. Currently, they default to left-to-right layouting.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
05c58fe023 NSAccessibility: declare base Accessibility APIs
Declare base NSAccessibility functions and constants, which have been
implemented as stubs.

In the near future, we could begin supporting some NSAccessibility
informal protocol features (for instance, elements ignored in the
accessible view hierarchy). However, for even considering thorough
accessibility support we would require, at least:

* A proper implementation of the AX* API in gnustep-boron;
* Design integration with screen reading software and other components
for an accessible graphic environment.

which are most certainly long-term tasks.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
eca638147c NSWindow: define missing window mask
Define a missing enum value for a window mask. This mask remains
unimplemented.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
e9b0367207 NSControl: create stub for -sizeThatFits:
Create a stub for the -[NSControl sizeThatFits:] function.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
16b0299916 NSVisualEffectView: create class stub
Create stub for the NSVisualEffectView class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
62ec654335 NSScrollView: create stubs for inset properties
Create stubs for the content/scroller inset properties in NSScrollView.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
ecb4178417 NSGestureRecognizer: create stub for class
Create stub for the NSGestureRecognizer class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
f9daf52083 NSSpellChecker: define new constants
Define new constants on NSSpellChecker. They are not yet handled by the
implementation.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
f1abcb313a NSSpeechSynthesizer: define new constants
Define new constants in NSSpeechSynthesizer. These are not yet handled
by the implementation.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
75dd71b149 NSRunningApplication: create stub for class
Create a stub for the NSRunningApplication class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
819c459f6f NSUserInterfaceLayout: create interface layout constants
Define interface layout enums to be used by AppKit. This improves
compatibility with the reference platform.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
3d88922f45 NSUserInterfaceItemIdentification: introduce protocol
Introduce the NSUserInterfaceItemIdentification protocol, which required
an user interface class provide an unique identifier.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
4769fc8edd NSSharingService: define class
Define the NSSharingService class as an unimplemented stub for
compatibility purposes.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
bb6805742d NSView: define layer-related properties
Define layer-related properties in NSView for compatibility purposes,
and keep their getters and setters as stubs, since they will not have
any effect before NSView-CALayer integration is implemented.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
9e80b07531 NSPasteboard: define new constants
Define new constants for NSPasteboard type identifiers. Most of them are
aliases to the old "Pboard"-style types, although some new ones are not
fully implemented:

* NSPasteboardTypePNG
* NSPasteboardTypeSound
* NSPasteboardTypeMultipleTextSelection
* NSPasteboardTypeTextFinderOptions
2017-07-25 22:33:12 +01:00
Daniel Ferreira
f665887c68 NSSpeechSynthesizerDelegate: define protocol properly
Modern applications require NSSpeechSynthesizerDelegate to be an actual
@protocol in order to conform to it. Here, we allow it to be one if we
are on an Objective-C runtime that supports it.
2017-07-25 22:33:12 +01:00
fredkiefer
6f22d6429e Add phase method forgotten in last commit. 2017-07-22 20:38:39 +02:00
fredkiefer
a02b40a9dd Add some enums and the method -momentumPhase to NSEvent. 2017-07-22 20:17:00 +02:00
fredkiefer
025b73ce6d Add some newer Cocoa methods for NSEvent. 2017-07-09 22:02:40 +02:00
Ivan Vučica
d078c703a4 Fix typo introduced in commit 6304640556. 2017-07-09 15:51:57 +00:00
TheDharc
6304640556 Update NSAttributedString.h
adding what is missing
2017-06-20 20:13:49 +00:00
Fred Kiefer
521fd071b4 Make the class GSXibKeyedUnarchiver public again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40449 72102866-910b-0410-8b05-ffd578937521
2017-04-05 21:51:43 +00:00
Fred Kiefer
db123bcd81 Merge some of the changes from the testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40403 72102866-910b-0410-8b05-ffd578937521
2017-03-19 19:26:04 +00:00
Fred Kiefer
2efe9de227 Merge some of the changes from the testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40362 72102866-910b-0410-8b05-ffd578937521
2017-03-05 22:12:15 +00:00
Fred Kiefer
ca8abf4c27 * Headers/Additions/GNUstepGUI/GSToolbarView.h
* Source/GSToolbarView.m
	Change draggedItemIndex to NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40270 72102866-910b-0410-8b05-ffd578937521
2016-12-17 00:00:19 +00:00
Fred Kiefer
0e6e771ba9 * Headers/AppKit/NSColorPanel.h: Change -alpha to CGFloat.
* Source/NSColorPanel.m: Remove left over GModel loading code.
	Set default mode to colour wheel.
	Small cleanups mostly in comments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40229 72102866-910b-0410-8b05-ffd578937521
2016-11-21 22:33:53 +00:00
Fred Kiefer
6974bf8a4f Some int -> NSInteger and float -> CGFloat transitions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40138 72102866-910b-0410-8b05-ffd578937521
2016-10-08 21:17:53 +00:00
Riccardo Mottola
4d9feda044 Check explicitely for f_owner and use f_owner and f_flag if checked
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39991 72102866-910b-0410-8b05-ffd578937521
2016-07-12 23:27:31 +00:00
Fred Kiefer
28b1b39b7b * Headers/AppKit/NSDocumentController.h,
* Source/NSDocumentController.m: Add 10.7 methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39978 72102866-910b-0410-8b05-ffd578937521
2016-07-12 08:41:17 +00:00
Fred Kiefer
58fed6911f Attempt to get NSWorkspace.m to compile again. No idea whether the
resulting behaviour is as intended by the author of the last change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39974 72102866-910b-0410-8b05-ffd578937521
2016-07-11 22:26:34 +00:00
Riccardo Mottola
baa5ac40aa Explicitely check for statfs/statvfs flags member
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39896 72102866-910b-0410-8b05-ffd578937521
2016-06-21 15:43:27 +00:00
Fred Kiefer
78a695bc8e Add class NSIBUserDefinedRuntimeAttributesConnector to handle
newer NIB files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39836 72102866-910b-0410-8b05-ffd578937521
2016-06-02 21:37:03 +00:00
Richard Frith-MacDonald
a0bb18fbcc Minor documentation fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39824 72102866-910b-0410-8b05-ffd578937521
2016-05-31 10:24:19 +00:00
Riccardo Mottola
dfc80058a4 tag is NSInteger* not int* in recent AppKit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39581 72102866-910b-0410-8b05-ffd578937521
2016-03-22 17:17:58 +00:00
Riccardo Mottola
cb076ad8ed Some new 10.5 and 10.6 named images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39505 72102866-910b-0410-8b05-ffd578937521
2016-03-09 15:36:59 +00:00
Riccardo Mottola
79e6bc01af Add NSImageNameColorPanel named image
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39450 72102866-910b-0410-8b05-ffd578937521
2016-03-04 00:10:16 +00:00
Riccardo Mottola
14fab35abc checks for statvts headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39360 72102866-910b-0410-8b05-ffd578937521
2016-02-12 00:56:56 +00:00
Riccardo Mottola
c442abbaab Trivial implementation of new 10.9 drawInRect: method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39332 72102866-910b-0410-8b05-ffd578937521
2016-02-03 00:08:23 +00:00
Riccardo Mottola
3ac59cea1d Provide NSImageNameTrashEmpty NSImageNameTrashFull NSImageNameMultipleDocuments image, both constants and actual icon
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39183 72102866-910b-0410-8b05-ffd578937521
2015-11-18 23:05:00 +00:00
Richard Frith-MacDonald
95a6eb6766 Document the new option to haveapp-specific named images in a theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39121 72102866-910b-0410-8b05-ffd578937521
2015-11-02 17:46:53 +00:00
Riccardo Mottola
3ff8c0a8d7 fix spelling to american English
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39101 72102866-910b-0410-8b05-ffd578937521
2015-10-28 01:49:12 +00:00
Riccardo Mottola
b4840b3c89 Primitive presentationOptions implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39100 72102866-910b-0410-8b05-ffd578937521
2015-10-28 01:39:07 +00:00
Riccardo Mottola
ef3942ac38 Stub 10.8 methods for allowsMagnification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39099 72102866-910b-0410-8b05-ffd578937521
2015-10-28 00:42:40 +00:00
Riccardo Mottola
40e0788f6d Change also internal methods and ivars to reflect NSInteger transition of rows and columns.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39094 72102866-910b-0410-8b05-ffd578937521
2015-10-27 18:11:46 +00:00
Riccardo Mottola
7667180ed3 Add NSAnimationContext to umbrella header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39075 72102866-910b-0410-8b05-ffd578937521
2015-10-15 15:53:56 +00:00
Riccardo Mottola
4192e9dfe5 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39074 72102866-910b-0410-8b05-ffd578937521
2015-10-15 15:15:43 +00:00
Gregory John Casamento
20997976b9 Additional stubs for NSAnimationContext.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39051 72102866-910b-0410-8b05-ffd578937521
2015-10-10 22:59:12 +00:00
Riccardo Mottola
fab20ad389 Add NSTableViewSelectionHighlightStyle type and stub accessors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39019 72102866-910b-0410-8b05-ffd578937521
2015-10-02 09:47:29 +00:00
Fred Kiefer
065d45ff59 * Headers/AppKit/NSMenu.h,
* Source/externs.m: Add NSMenuDidBeginTrackingNotification.
        * Source/NSMenuView.m (-trackWithEvent:): send tracking
        notifications.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39008 72102866-910b-0410-8b05-ffd578937521
2015-09-21 20:37:56 +00:00
Fred Kiefer
1d2c5d5ebd First set of changes based on pathces by Josh Freeman
<pikopixel@twilightedge.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39004 72102866-910b-0410-8b05-ffd578937521
2015-09-19 16:45:36 +00:00
Riccardo Mottola
7a251b66ec Constants and methods for Expose and other features we don't have and perhaps never will
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38942 72102866-910b-0410-8b05-ffd578937521
2015-08-28 22:39:48 +00:00
Riccardo Mottola
dbcaec319a Add more (dummy) layer property stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38940 72102866-910b-0410-8b05-ffd578937521
2015-08-28 20:26:30 +00:00
Riccardo Mottola
fe491f33da Define NSFullScreenWindowMask.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38924 72102866-910b-0410-8b05-ffd578937521
2015-08-24 12:50:07 +00:00
Riccardo Mottola
c919c925f9 Add horiz and vert elastiticty properties and constants
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38920 72102866-910b-0410-8b05-ffd578937521
2015-08-23 21:44:40 +00:00
Fred Kiefer
fd098d8eda * Source/NSButtonCell.m (-initWithCoder:):
Fix image scaling value extract from XIB.
        * Headers/Additions/GNUstepGUI/GSXibLoading.h
        * Source/GSXibLoading.m
        * Source/GSXibLoader.m
        Add IB defined runtime attribute processing for XIB
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38882 72102866-910b-0410-8b05-ffd578937521
2015-08-13 22:03:03 +00:00
Riccardo Mottola
5568c3f60e add alphaValue property... although we don't use it anyway it helps to compile stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38840 72102866-910b-0410-8b05-ffd578937521
2015-07-26 21:04:57 +00:00
Gregory John Casamento
971a573445 Add drawing methods for theming NSBrowserCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38690 72102866-910b-0410-8b05-ffd578937521
2015-06-26 05:27:12 +00:00
Gregory John Casamento
4213323979 Add more theme methods for theming windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38687 72102866-910b-0410-8b05-ffd578937521
2015-06-26 00:13:05 +00:00
Gregory John Casamento
0ff0a07742 Added methods to retrieve dimensions for titlebar buttons and padding dimensions in a theme specific way rather than having them hard-coded.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38681 72102866-910b-0410-8b05-ffd578937521
2015-06-25 18:18:41 +00:00
Gregory John Casamento
8031e43fbc Add skeleton for NSAnimationContext.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38637 72102866-910b-0410-8b05-ffd578937521
2015-06-14 21:47:43 +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
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
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
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
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
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
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
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
ffe06259ba * Headers/AppKit/NSBrowser.h,
* Headers/AppKit/NSComboBoxCell.h: Add missing protocol
  declarations.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38174 72102866-910b-0410-8b05-ffd578937521
2014-11-16 14:19:11 +00:00
Gregory John Casamento
ea086d02cf Change return of -drawTitle:withFrame:inView to NSRect instead of void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38049 72102866-910b-0410-8b05-ffd578937521
2014-08-21 02:52:06 +00:00
Sebastian Reitenbach
e5ceef02b4 * Headers/AppKit/NSStatusItem.h
* Source/NSStatusItem.m
        make return value of -sendActionOn: match apple documentation


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37925 72102866-910b-0410-8b05-ffd578937521
2014-05-30 12:28:59 +00:00
Gregory John Casamento
1e9799efeb Addition of XIBObject base class for handling objects parsed out of the XIB file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37799 72102866-910b-0410-8b05-ffd578937521
2014-04-16 21:29:08 +00:00
Gregory John Casamento
69244e2d98 Add object container.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37762 72102866-910b-0410-8b05-ffd578937521
2014-03-25 08:07:54 +00:00
Gregory John Casamento
3931ffd3eb Initial code for XIB 5 support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37761 72102866-910b-0410-8b05-ffd578937521
2014-03-25 07:59:36 +00:00
Fred Kiefer
51c43eae39 * Headers/AppKit/NSTextAttachment.h
* Source/NSTextAttachment.m: Use NSUInteger and bring closer to
        the Apple implementation.
        * Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:):
        For attachments use the cell origin y flipped.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37704 72102866-910b-0410-8b05-ffd578937521
2014-02-23 21:07:20 +00:00
Fred Kiefer
3116c1c398 * Headers/AppKit/AppKit.h: Add a few missing classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37660 72102866-910b-0410-8b05-ffd578937521
2014-01-31 22:16:06 +00:00
Fred Kiefer
5a9e90f74f * Headers/AppKit/NSAlert.h,
* Headers/AppKit/NSWindow.h: Remove usage of GNUSTEP define.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37659 72102866-910b-0410-8b05-ffd578937521
2014-01-31 21:47:34 +00:00
Fred Kiefer
37e94abc97 * Headers/AppKit/NSCell.h
* Source/NSCell.m: Add hitTestForEvent:inRect:ofView:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37639 72102866-910b-0410-8b05-ffd578937521
2014-01-26 22:34:56 +00:00
Niels Grewe
0725950577 Roll back addition of redundant method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37539 72102866-910b-0410-8b05-ffd578937521
2014-01-05 23:03:35 +00:00
Niels Grewe
ae97581586 Add a method to GSDisplayServer that allows you to obtain the
identifier used by the backend's windowing system instead of
just the GNUstep-internal window number. On X11, the identifier
is useful, among other things, to implement the D-Bus menu 
protocol.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37533 72102866-910b-0410-8b05-ffd578937521
2014-01-01 19:45:26 +00:00
Fred Kiefer
4c0f9fbc97 * Headers/AppKit/NSAnimation.h
* Headers/AppKit/NSApplication.h
        * Headers/AppKit/NSControl.h
        * Headers/AppKit/NSPopover.h
        * Headers/AppKit/NSSavePanel.h
        * Headers/AppKit/NSTableView.h
        * Headers/AppKit/NSTextView.h
        * Headers/AppKit/NSWindow.h: Use GS_PROTOCOLS_HAVE_OPTIONAL to
        protect the @optional keyword in protocol definitions.
        Based on base patch by Marcus Mueller <znek@mulle-kybernetik.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37530 72102866-910b-0410-8b05-ffd578937521
2013-12-31 18:30:46 +00:00
Fred Kiefer
3ad5c33813 * Headers/Additions/GNUstepGUI/GSModelLoaderFactory.h,
* Source/GSModelLoaderFactory.m: Add new method +supportedTypes.
* Source/NSBundleAdditions.m: Use this new method to implement
  NIB resource detection on top of the base methods instead of doing
  it here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37421 72102866-910b-0410-8b05-ffd578937521
2013-12-01 12:26:12 +00:00
Fred Kiefer
dddd3f5e3b * configure.ac: Try to improve the ICU detection.
* configure: regenerate
        * Headers/AppKit/NSTrackingArea.h
        * Source/NSTrackingArea.m: Remove compiler warnings.
        * Headers/AppKit/NSBrowser.h,
        * Source/NSBrowser.m: Add a few new Cocoa methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37399 72102866-910b-0410-8b05-ffd578937521
2013-11-22 22:44:37 +00:00
Fred Kiefer
2c7ebd84a2 Add some OSX 10.6 methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37247 72102866-910b-0410-8b05-ffd578937521
2013-10-17 21:05:15 +00:00
Eric Wasylishen
d9da770d5b * Source/GSThemeDrawing.m:
* Source/GSThemeTools.m:
	* Headers/Additions/GNUstepGUI/GSTheme.h: Small refactor:
	most uses of -[GSTheme fillRect:withTiles:background:] use
	[NSColor clearColor], so add a version without the background:
	param.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37244 72102866-910b-0410-8b05-ffd578937521
2013-10-16 07:19:45 +00:00
Eric Wasylishen
326a3d57f4 * Source/GSThemeDrawing.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Add methods
	-menuSubmenuHorizontalOverlap and -menuSubmenuVerticalOverlap
	wrapping user defaults GSMenuSubmenuHorizontalOverlap and
	GSMenuSubmenuVerticalOverlap
	* Source/NSMenuView.m (-locationForSubmenu:): Offset calculations
	by -[GSTheme menuSubmenuHorizontalOverlap] and
	-[GSTheme menuSubmenuVerticalOverlap]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37243 72102866-910b-0410-8b05-ffd578937521
2013-10-16 07:08:15 +00:00
Eric Wasylishen
c05595c8be * Source/GSThemeDrawing.m (-drawColorWellBorder:...): Draw inner
border using part GSColorWellInnerBorder
	* Source/GSTheme.m:
	* Headers/Additions/GNUstepGUI/GSTheme.h: Add GSColorWellInnerBorder
	part name


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37240 72102866-910b-0410-8b05-ffd578937521
2013-10-16 04:11:41 +00:00
Eric Wasylishen
310b7d5786 * Headers/Additions/GNUstepGUI/GSTheme.h: Remove GSScrollViewBottomCorner
part name, instead themes should just provide a part called NSScrollView.

	Add -scrollViewScrollersOverlapBorders method.

	* Source/GSTheme.m: Remove GSScrollViewBottomCorner part name.
	* Source/GSThemeDrawing.m: Add -scrollViewScrollersOverlapBorders.
	* Source/GSThemeDrawing.m (-drawBrowserRect:...): If
	-scrollViewScrollersOverlapBorders is enabled, fill the browser background
	with the NSScrollView tile.
	* Source/GSThemeDrawing.m (-drawScrollViewRect:...): If
	-scrollViewScrollersOverlapBorders is enabled, fill the scroll view background
	with the NSScrollView tile.
	* Source/NSScroller.m (-rectForPart:): Change the meaning of the
	GSScrollerKnobOvershoot default so the knob only overlaps the buttons
	by this much (rather than both ends of the track). Turns out this is more
	useful for themes.
	* Source/NSScrollView.m (-tile): Add support for
	-[GSTheme scrollViewScrollersOverlapBorders]
	* Source/NSBrowser.m (-tile): Add support for
	-[GSTheme scrollViewScrollersOverlapBorders] and
	-[GSTheme scrollViewUseBottomCorner]

	The overall point of these additions is to support NSScrollView and
	NSBrowser looking like: http://jesseross.com/clients/gnustep/ui/concepts/


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37238 72102866-910b-0410-8b05-ffd578937521
2013-10-15 23:26:51 +00:00
Eric Wasylishen
1fdf58e506 * Headers/Additions/GNUstepGUI/GSTheme.h: Add -tabViewContentRectForBounds:
method.
* Source/GSThemeDrawing.m:
* Source/NSTabView.m: Move the -contentRect implementation to GSTheme
so we can delegate to GSDrawTiles, if used.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37234 72102866-910b-0410-8b05-ffd578937521
2013-10-15 07:27:44 +00:00
Eric Wasylishen
6f4a16835b * Headers/Additions/GNUstepGUI/GSTheme.h: Add three new theme
control state: GSThemeFirstResponderState,
GSThemeHighlightedFirstResponderState,
and GSThemeSelectedFirstResponderState. This lets themes draw
custom first responder tiles, if the desired effect can't be
accomplished by drawing on top of an existing button.
* Source/GSThemeDrawing.m (-drawFocusFrame:inRect:):
Use tiles named "NSFocusRing" if available, else draw dotted
rect.
* Source/GSTheme.m:
* Source/NSButtonCell.m: Use new GSTheme*FirstResponderState
states


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37227 72102866-910b-0410-8b05-ffd578937521
2013-10-14 17:18:38 +00:00
Eric Wasylishen
5501a5a4b7 * Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSTheme.m: Add GSProgressIndicatorBezel part name
* Source/GSThemeDrawing.m (-drawProgressIndicatorBezel:withClip:):
Use GSProgressIndicatorBezel to draw bezel if available.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37222 72102866-910b-0410-8b05-ffd578937521
2013-10-14 03:31:54 +00:00
Eric Wasylishen
3e533f43b1 * Source/GSThemeDrawing.m:
* Source/GSTheme.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Add part names for
themeing bottom tabs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37211 72102866-910b-0410-8b05-ffd578937521
2013-10-09 01:48:50 +00:00
Eric Wasylishen
7d7cac6780 * Source/GSThemeDrawing.m: Rewrite tab drawing code to be more
organized, lay out the images in a straightforward way, and
allow themeing the fill part of the tab between the end images.
The output is almost pixel-identical to
the old code (only some unnoticable 1-pixel differences
in where shadows end). It's also organized so that adding support
for left and right tabs should be easy.
* Headers/Additions/GNUstepGUI/GSTheme.h: Add some part names
* Images/common_Tab*.tiff: Tweak to work with the new layout code.
All top images are now the same size, as are all bottom images.
* Images/GNUmakefile:
* Images/common_TabUnSelectToSelectedJunction.tiff: Renamed to
Images/common_TabUnSelectedToSelectedJunction.tiff
* Source/GSThemePrivate.h:
* Source/GSTheme.m: Add GSStringFromTabViewType utility function


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37205 72102866-910b-0410-8b05-ffd578937521
2013-10-08 08:01:23 +00:00
Eric Wasylishen
69acbb22b1 * Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSThemeDrawing.m:
* Source/NSPopUpButtonCell.m:
Remove -[GSTheme drawBorderAndBackgroundForPopUpButtonCell:
withFrame:inView:state:] which I added recently, and just use
-[GSTheme drawButton:in:view:style:state]. This way,
NSPopUpButtonCell automatically supports all of the different
NSBezelStyles.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37202 72102866-910b-0410-8b05-ffd578937521
2013-10-07 07:29:13 +00:00
Eric Wasylishen
e72fe86870 * Documentation/GuiUser/DefaultsSummary.gsdoc:
* Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSThemeDrawing.m:
* Source/NSScroller.m: Add defaults GSScrollerScrollsByPage
and GSScrollerArrowsSameEnd to allow customizing scroller
behaviour beyond the combinations provided by NSInterfaceStyle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37200 72102866-910b-0410-8b05-ffd578937521
2013-10-07 03:29:14 +00:00
Eric Wasylishen
53dcd018ad * Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSThemeDrawing.m:
* Source/NSBrowser.m:
* Source/NSTableHeaderCell.m: Add custom color names
tableHeaderTextColor and browserHeaderTextColor for
table and browser headers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37193 72102866-910b-0410-8b05-ffd578937521
2013-10-04 02:23:16 +00:00
Eric Wasylishen
c63df23ba8 * Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSTheme.m:
* Source/GSThemeDrawing.m:
* Source/NSBox.m: Factor out -[NSBox drawRect:] to GSTheme
method -drawBoxInClipRect:boxType:borderType:inView:.
Add a tiles name GSBoxBorder for themeing the box border.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37188 72102866-910b-0410-8b05-ffd578937521
2013-10-03 19:52:05 +00:00
Eric Wasylishen
2347347cf9 * Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSTheme.m:
Declare GSSliderHorizontalTrack and GSSliderVerticalTrack
part names for themeing the background of NSSlider
* Source/GSThemeDrawing.m:
Add new drawSliderBorderAndBackground:frame:inCell:isHorizontal:
method to draw the slider border and background.
* Source/GSThemePrivate.h:
* Source/GSThemeTools.m:
Add a -size method on GSDrawTiles which returns the total
original size of the tiles, so we can easily compute a rect
that scales the tiles in only one dimension.
* Source/NSSliderCell.m:
Override _drawBorderAndBackgroundWithFrame: to call new
GSTheme method. Also, tweak the knob drawing code; the knob
is now centered and drawn at its native size. This still looks
correct with the default slider sizes create by Gorm.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37185 72102866-910b-0410-8b05-ffd578937521
2013-10-03 04:51:10 +00:00
Eric Wasylishen
dfab5c6196 * Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSTheme.m:
* Source/GSThemeDrawing.m:
* Source/NSPopUpButtonCell.m: Add a theme part GSPopUpButton
so NSPopUpButtonCell can be drawn with a different background
than NSMenuItemCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37183 72102866-910b-0410-8b05-ffd578937521
2013-10-02 23:56:16 +00:00
Eric Wasylishen
ea8ded398f * Source/NSMenuView.m: Read the menu item/menu bar/separator
height from GSTheme.
* Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSThemeDrawing.m: Add -menuBarHeight, -menuItemHeight,
-menuSeparatorHeight. Corresponding defaults are GSMenuBarHeight,
GSMenuItemHeight, GSMenuSeparatorHeight


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37182 72102866-910b-0410-8b05-ffd578937521
2013-10-02 22:06:24 +00:00
Eric Wasylishen
3bbfcbaab2 * Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/NSScrollView.m:
* Source/GSThemeDrawing.m:
* Source/GSTheme.m: Add GSScrollViewUseBottomCorner default,
which themes can set to NO to leave a square gap in the bottom-
left (or bottom-right) corner where the horizontal and vertical
scrollers meet.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37176 72102866-910b-0410-8b05-ffd578937521
2013-09-30 05:53:21 +00:00
Eric Wasylishen
67de37f017 * Source/NSBrowser.m:
* Source/GSThemeDrawing.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Add GSBrowserUseBezels
user default. Themes can set it to NO to prevent NSBrowser from
drawing any bezels, even if separatesColumns is set to YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37174 72102866-910b-0410-8b05-ffd578937521
2013-09-30 00:38:09 +00:00
Eric Wasylishen
8b6fffb7fc * Source/NSBrowser.m: Change NSBR_COLUMN_SEP and NSBR_VOFFSET
macros to static floats. Cache the values in +initialize and
when GSThemeDidActivateNotification is sent, by calling the
new GSTheme methods.
* Source/GSThemeDrawing.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Add
-browserColumnSeparation and -browserVerticalPadding methods
which access user defaults GSBrowserColumnSeparation and
GSBrowserVerticalPadding. These determine the padding between
browser columns, and the vertical padding between the bottom
scroller, contents, and headers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37171 72102866-910b-0410-8b05-ffd578937521
2013-09-29 19:36:08 +00:00
Eric Wasylishen
2fe4c2e708 * Source/GSTheme.m:
* Source/GSTitleView.m:
* Source/GSThemeDrawing.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Add GSMenuTitleBackground
theme tile for themeing the background of GSTitleView.

NOTE: I removed some code that was in -[GSTitleView drawRect:] for
drawing with a different style when the GSTitleView is NOT owned
by an NSMenu, but by an NSWindow/NSPanel (_ownedByMenu == NO).
If needed, this can be added back, but it doesn't appear to ever
be used in gnustep-gui - GSTitleView is only created in one place,
with NSMenu as the owner.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37165 72102866-910b-0410-8b05-ffd578937521
2013-09-29 00:30:59 +00:00
Gregory John Casamento
60a1d3d511 2013-09-22 16:52-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/NSTableView.h: Add formal protocols for                                                                                                                                                                                                                
        NSTableViewDelegate and NSTableViewDataSource.    


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37138 72102866-910b-0410-8b05-ffd578937521
2013-09-22 20:51:58 +00:00
Gregory John Casamento
f875daf41b 2013-09-22 15:59-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/NSAnimation.h: Add NSAnimationDelegate.       


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37136 72102866-910b-0410-8b05-ffd578937521
2013-09-22 19:58:31 +00:00
Gregory John Casamento
04a8a1e1a9 2013-09-18 18:17-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/AppKit.h: Add NSTrackingArea.h                                                                                                         
        * Headers/AppKit/NSTrackingArea.h: Add interface for NSTrackingArea                                                                                     
        * Source/GNUmakefile: Add NSTrackingArea.[hm] to makefile.                                                                                              
        * Source/NSTrackingArea.m: Add implementation for NSTrackingArea  


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37112 72102866-910b-0410-8b05-ffd578937521
2013-09-18 22:19:12 +00:00
Gregory John Casamento
805aa3e3c4 Fix issue with delegate protocol as reported by Ivan.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37101 72102866-910b-0410-8b05-ffd578937521
2013-09-17 23:00:56 +00:00
Gregory John Casamento
61f497d174 Add NSWindowDelegate and NSMenuDelegate.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37094 72102866-910b-0410-8b05-ffd578937521
2013-09-17 20:36:25 +00:00
Fred Kiefer
9ad339a73a * Headers/Additions/GNUstepGUI/GSDisplayServer.h
* Source/GSDisplayServer.m: Add new method -_printEventQueue.
* Source/NSWindow.m (-_checkCursorRectangles:forEvent:): Replace
  hack with proper functions that handle cursor rectangles.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37026 72102866-910b-0410-8b05-ffd578937521
2013-08-30 11:27:10 +00:00
Fred Kiefer
a93d126191 * Headers/AppKit/NSTreeController.h,
* Headers/AppKit/NSTreeNode.h: Add method declarations to these
        * files.
        * Headers/AppKit/AppKit.h,
        * Source/GNUmakefile: Include new files.
        * Source/NSObjectController.m (+initialize, -selection): Get
        * basic
        binding example working.
        * Source/NSTreeController.m: Minimal implementation.
        * Source/NSTreeNode.m: Full implementation of this class.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36991 72102866-910b-0410-8b05-ffd578937521
2013-08-19 19:10:22 +00:00
Fred Kiefer
ef49975949 Add code by Nikolaus Schaller <hns@computer.org>, reformatted and
simplified.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36982 72102866-910b-0410-8b05-ffd578937521
2013-08-17 13:39:16 +00:00
Luboš Doležel
ceb8720fb2 * Headers/AppKit/NSSavePanel.h,
* Source/NSSavePanel.m: beginSheetModalForWindow: and
beginWithCompletionHander: implementations



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36968 72102866-910b-0410-8b05-ffd578937521
2013-08-12 18:10:38 +00:00
Gregory John Casamento
4032737cf0 Add placeholder for NSStatusItem.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36950 72102866-910b-0410-8b05-ffd578937521
2013-08-08 20:28:33 +00:00
Riccardo Mottola
28fff5bc13 Add license to the Theme properties
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36889 72102866-910b-0410-8b05-ffd578937521
2013-07-15 13:20:41 +00:00
Fred Kiefer
32299abf5b * Headers/Additions/GNUstepGUI/GSDisplayServer.h
* Source/GSDisplayServer.m: Add new method -setIgnoreMouse::
        * with
        empty implementation.
        * Source/NSWindow.m (-setIgnoresMouseEvents:): Use this new
        * method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36854 72102866-910b-0410-8b05-ffd578937521
2013-07-08 20:42:49 +00:00
Germán Arias
17db14c969 Revert last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36849 72102866-910b-0410-8b05-ffd578937521
2013-07-08 01:33:25 +00:00
Germán Arias
5cfee62130 Prevent duplicate the cursor with -push.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36848 72102866-910b-0410-8b05-ffd578937521
2013-07-07 18:33:01 +00:00
Quentin Mathe
da2351d2b2 Added support for providing custom theme control images (e.g. checkbox) in the same way we support it for tiles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36836 72102866-910b-0410-8b05-ffd578937521
2013-07-04 15:46:11 +00:00
Eric Wasylishen
520993931f Add NSDrawThreePartImage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36824 72102866-910b-0410-8b05-ffd578937521
2013-07-03 16:19:24 +00:00
Germán Arias
eb8b6c98cf Add NSCancelTextMovement and NSOtherTextMovement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36692 72102866-910b-0410-8b05-ffd578937521
2013-06-02 17:17:12 +00:00
Gregory John Casamento
f14cc1f3bc * Headers/AppKit/NSPopover.h: correct delegate method
for popoverShouldClose:
	* Headers/AppKit/NSWindow.h: add convertRectToScreen: and
	convertRectFromScreen: methods.
	* Source/NSPopover.m: Correct delegate method for popoverShouldClose:.
	Changes to align popover window with rect it is being placed relative
	to.
	* Source/NSWindow.m: implementation of convertRectToScreen: and
	convertRectFromScreen: methods.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36577 72102866-910b-0410-8b05-ffd578937521
2013-04-24 09:25:56 +00:00
Fred Kiefer
4d4147aab9 * Headers/AppKit/NSPopover.h,
* Source/NSPopover.m: Adjust to GNUstep coding standards.
        * Source/externs.m: Move new strings to here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36555 72102866-910b-0410-8b05-ffd578937521
2013-04-21 21:32:36 +00:00
Fred Kiefer
a1b3e2e2f5 * Headers/AppKit/AppKit.h: Add NSCollectionView.h and
NSCollectionViewItem.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36554 72102866-910b-0410-8b05-ffd578937521
2013-04-21 17:22:42 +00:00
Fred Kiefer
12a29ad4d7 * Source/NSCollectionView.m (-_moveUpAndExpandSelection:):
* Correct
        the comparision. Bug reported by Gregory John Casamento
        <greg.casamento@gmail.com>
        * Headers/AppKit/NSPopover.h: Add missing import.
        * Source/GSXibLoader.m: Disable NSCustomView hack again.
        * Headers/AppKit/NSApplication.h: Replace GSAppDelegateProtocol
        with NSApplicationDelegate.
        * Source/NSApplication.m: Adjust documentation to this
        * replacement.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36553 72102866-910b-0410-8b05-ffd578937521
2013-04-21 16:57:58 +00:00
Gregory John Casamento
eab097631c * Headers/AppKit/AppKit.h: Add NSPopover.h to set of files
included.
	* Headers/AppKit/NSApplication.h: Add NSApplicationDelegate.
	Inherit from GSAppDelegateProtocol.
	* Headers/AppKit/NSPopover.h: NSPopover header.
	* Source/GNUmakefile: Added NSPopover.[hm]
	* Source/GSXibLoader.m: Translate NSCustomView to NSView when
	unarchiving.
	* Source/NSPopover.m: Skeletal implementation of NSPopover.m.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36552 72102866-910b-0410-8b05-ffd578937521
2013-04-21 13:45:20 +00:00
Fred Kiefer
18d741ce80 * Source/NSTableView.m (-selectedColumnIndexes,
* -selectedRowIndexes): Return an
        autoreleased copy of the corresponding ivar. Returning a
reference to the ivar
        leads to issues (and behavior different from Cocoa) when
iterating thru the
        indexsets if at a time they would be being altered.
        Patch by Frank LeGrand (flegrand@testplant.com).
        * Source/GNUmakefile: Add NSCollectionViewItem.
        * Headers/AppKit/NSCollectionView.h,
        * Headers/AppKit/NSCollectionViewItem.h,
        * Source/NSCollectionViewItem.m,
        * Source/NSCollectionView.m: Bring closer to the GNUstep coding
        * standard.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36551 72102866-910b-0410-8b05-ffd578937521
2013-04-21 13:28:47 +00:00
Gregory John Casamento
eeffa67a4e * Headers/AppKit/NSCollectionView.h
* Headers/AppKit/NSCollectionViewItem.h
	* Source/GNUmakefile
	* Source/NSCollectionViewItem.m
	* Source/NSCollectionView.m: Added NSCollectionView and
	NSCollectionViewItem classes from testplant branch.  Made changes
	to original patch to conform to coding standards, NSCoding for
	non-keyed archiving and moved instances of float/integer to
	CGFloat and NSInteger/NSUInteger as appropriate.
	Patch by Doug Simons (dsimons@testplant.com) and
	Frank LeGrand (flegrand@testplant.com).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36545 72102866-910b-0410-8b05-ffd578937521
2013-04-18 03:57:49 +00:00
Fred Kiefer
3aa97e1975 * Headers/AppKit/NSKeyValueBinding.h,
* Source/externs.m: Additional binding name
        * NSContentValuesBinding.
        * Source/NSPopUpButton.m: Add KVB for NSContentValuesBinding.
        Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>
        * Source/NSArrayController.m: Encode/decode
        * clearsFilterPredicateOnInsertion.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36540 72102866-910b-0410-8b05-ffd578937521
2013-04-15 20:20:38 +00:00
Fred Kiefer
12c4d6cbdb * Source/NSEvent.m,
* Source/NSParagraphStyle.m: Use NSInteger instead of enumerator
        type name for decoding and encoding.
        * Header/AppKit/NSFontPanel.h,
        * Header/AppKit/NSOpenPanel.h,
        * Header/AppKit/NSDataLinkPanel.h,
        * Source/NSDataLinkPanel.m,
        * Header/AppKit/NSForm.h,
        * Source/NSForm.m,
        * Header/AppKit/NSHelpPanel.h,
        * Source/NSHelpPanel.m,
        * Source/NSColorPanel.m: Remove unused encoding/decoding
        * methods.
        * Source/NSCustomImageRep.m,
        * Source/NSEPSImageRep.m,
        * Source/NSMovie.m,
        * Source/NSRulerMarker.m,
        * Source/NSColorList.m: Flag missing keyed encoding/decoding.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36377 72102866-910b-0410-8b05-ffd578937521
2013-03-17 19:53:50 +00:00
Fred Kiefer
c2d01aeca2 * Headers/AppKit/NSTextView.h: Make NSTextViewDelegate a formal
protocol.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36306 72102866-910b-0410-8b05-ffd578937521
2013-03-08 10:45:35 +00:00
Sebastian Reitenbach
6bb67c5e40 * Headers/AppKit/NSOutlineView.h
int -> NSInteger transitions for NSOutlineView protocol

OK Fred



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36240 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:09:21 +00:00
Sebastian Reitenbach
1bda279897 * Source/NSMenuItemCell.m
* Headers/AppKit/NSMenuItemCell.h
          float -> CGFloat transitions



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36238 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:06:25 +00:00
Fred Kiefer
0c95f32580 More CGFloat, NSUInteger and NSInteger changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36163 72102866-910b-0410-8b05-ffd578937521
2013-02-17 22:44:47 +00:00
Fred Kiefer
b1fc7cb066 Correct coding/decoding after type changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36160 72102866-910b-0410-8b05-ffd578937521
2013-02-17 16:53:48 +00:00
Fred Kiefer
152b94069f More CGFloat, NSUInteger and NSInteger changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36154 72102866-910b-0410-8b05-ffd578937521
2013-02-17 00:49:04 +00:00
Fred Kiefer
7ef53c8232 More CGFloat, NSUInteger and NSInteger changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36153 72102866-910b-0410-8b05-ffd578937521
2013-02-16 21:37:29 +00:00
Fred Kiefer
270baf4037 More CGFloat, NSUInteger and NSInteger changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36148 72102866-910b-0410-8b05-ffd578937521
2013-02-16 00:08:33 +00:00
Quentin Mathe
e4e5428122 Replaced -_dataCellForTableColumn:row: by -preparedCellAtColumn:row: new public method from Mac OS X 10.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36136 72102866-910b-0410-8b05-ffd578937521
2013-02-14 10:34:20 +00:00
Fred Kiefer
d4f80c2258 Change NSEvent to CGFloat, NSUInteger and NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36121 72102866-910b-0410-8b05-ffd578937521
2013-02-13 08:40:36 +00:00
Fred Kiefer
f078b2daaf * Headers/AppKit/NSSplitView.h
* Source/NSSplitView.m: Change to CGFloat, NSUInteger and NSInteger.
Patch partly by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36109 72102866-910b-0410-8b05-ffd578937521
2013-02-10 21:32:07 +00:00
Fred Kiefer
cda7dc977f * Headers/AppKit/NSPageLayout.h
* Source/NSPageLayout.m: Change int to NSInteger.
        Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36092 72102866-910b-0410-8b05-ffd578937521
2013-02-08 17:50:25 +00:00
Fred Kiefer
340c7eb879 Change DPS/PS functions to CGFloat and NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36063 72102866-910b-0410-8b05-ffd578937521
2013-02-05 19:18:49 +00:00
Fred Kiefer
e62fddeea0 Change NSBezierPath to use NSInteger and CGFloat and adjust uses to
this.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36054 72102866-910b-0410-8b05-ffd578937521
2013-02-01 14:03:08 +00:00
Fred Kiefer
1aa1803744 * Headers/AppKit/NSBrowser.h
* Headers/AppKit/NSFontPanel.h
        * Headers/AppKit/NSMatrix.h
        * Headers/AppKit/NSTableView.h
        * Source/NSBrowser.m
        * Source/NSFontPanel.m
        * Source/NSMatrix.m: Small fixes to last change.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36042 72102866-910b-0410-8b05-ffd578937521
2013-01-30 22:13:32 +00:00
David Chisnall
40fb48e5de Next bit of NSInteger cleanup for -gui.
Fix all of the current warnings in Gorm so that it can be used to test
NSInteger things.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36039 72102866-910b-0410-8b05-ffd578937521
2013-01-30 12:43:27 +00:00
David Chisnall
4850a9feac Fix all current compiler warnings on FreeBSD/x86-64.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36038 72102866-910b-0410-8b05-ffd578937521
2013-01-30 09:48:54 +00:00
Fred Kiefer
d870275b7f * Headers/AppKit/NSCell.h
* Headers/AppKit/NSColor.h
        * Headers/AppKit/NSGraphics.h
        * Headers/AppKit/NSView.h
        * Source/Functions.m
        * Source/GSThemeDrawing.m
        * Source/GSTitleView.m
        * Source/NSApplication.m
        * Source/NSCell.m
        * Source/NSView.m: More NSInteger/NSUInteger/CGFloat cleanup



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36035 72102866-910b-0410-8b05-ffd578937521
2013-01-29 21:57:41 +00:00
Fred Kiefer
3205b3037d * Headers/AppKit/NSApplication.h
* Source/NSApplication.m: NSInteger/NSUInteger cleanup
        * Source/externs.m: Add NSAppKitVersionNumber.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36032 72102866-910b-0410-8b05-ffd578937521
2013-01-29 08:35:49 +00:00
Fred Kiefer
a612305757 First set of NSInteger/NSUInteger cleanup in gui.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36029 72102866-910b-0410-8b05-ffd578937521
2013-01-27 20:28:35 +00:00
Fred Kiefer
e370aab73b * Headers/AppKit/NSTextContainer.h,
* Source/NSTextContainer.m,
        * Source/GSHorizontalTypesetter.m: Correct the definition of
        NSLineMovementDirection.
        * Headers/AppKit/NSFont.h
        * Source/NSFont.m: Add a few missing 10.4 methods.
        * Header/AppKit/NSLayoutManager.h,
        * Source/NSLayoutManager.m: Add one 10.5 method.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35999 72102866-910b-0410-8b05-ffd578937521
2013-01-19 18:22:45 +00:00
David Chisnall
270557eee8 Fix AppKit exports for inclusion in C++ code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35977 72102866-910b-0410-8b05-ffd578937521
2013-01-15 12:32:03 +00:00
Wolfgang Lux
0d760caf50 Disable to support to create gif image representations when giflib
does not define QuantizeBuffer. Fixes #38024.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35958 72102866-910b-0410-8b05-ffd578937521
2013-01-13 13:47:51 +00:00
Fred Kiefer
30da16dafc * Source/NSView.m (-_rebuildCoordinates): Check if the flipped
state of the view has changed. Call this method all the times
        instead of checking _coordinates_valid.
        This change allows views to dynamically change their flipped
state.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35928 72102866-910b-0410-8b05-ffd578937521
2012-12-31 18:55:36 +00:00
Fred Kiefer
df4578bc13 * Source/NSFont.m (-setInContext:): Remove usage of
matrixExplicitlySet.
Patch by Derek Fawcus <dfawcus@cisco.com>.
* Source/NSFont.m: Remove all other usages of
matrixExplicitlySet.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35926 72102866-910b-0410-8b05-ffd578937521
2012-12-31 17:34:13 +00:00
Fred Kiefer
89fed0244c * Headers/Additions/GNUstepGUI/GSLayoutManager_internal.h: Make
-_invalidateEverything visible.
        * Source/GSLayoutManager.m
        * (-invalidateGlyphsForCharacterRange:...): Call
        -_invalidateEverything when the whole character range is
invalidated.
        * Source/NSStringDrawing.m: Remove workarounds for full layout
        * invalidation.
        Move initialisation check into cache_lock().
        Extract size match code in function.
        Put #ifdef around all statistics code.
        Use same LARGE_SIZE value as Apple does.
        Make the methods taking options the main ones.
        * Source/GSHorizontalTypesetter.m (-fullJustifyLine::,
        -rightAlignLine::, -centerAlignLine::): Don't align when the
line
        width is bigger than 1e7.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35925 72102866-910b-0410-8b05-ffd578937521
2012-12-30 15:48:21 +00:00
Fred Kiefer
60fcb3622e * Headers/AppKit/NSOpenGL.h,
* Source/NSOpenGLPixelFormat.m: NSOpenGLPixelFormat directly
        * implements
        initWithCoder so that it may marshall the pixel attributes prior
to
        initWithAttributes:. Change the getValues:... method to take an
        int argument instead of long. GLint is mapped to int on most
systems.
        * Source/NSOpenGLContext.m: Use the format decoding to decode an
        * OpenGL context.
        Patch by Clint Smullen <daemonae>.

        * Source/GSLayoutManager.m: Small cleanup in glyph code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35923 72102866-910b-0410-8b05-ffd578937521
2012-12-26 19:19:50 +00:00
Fred Kiefer
e93fd24f0d * Source/NSFont.m (-initWithName:...): Move replacement name into
separate method -_replacementFontName and add replacement for
"Helvetica-" prefix.
* Header/AppKit/NSLayoutManager.h: Add some 10.5 methods.
* Source/NSLayoutManager.m: Simple implementations for these new
methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35922 72102866-910b-0410-8b05-ffd578937521
2012-12-23 23:24:14 +00:00
Gregory John Casamento
f248bc9988 * Headers/Additions/GNUstepGUI/GSTheme.h: Add declaration
for method setKeyEquivalent:forButtonCell:
	* Source/GSThemeDrawing.m: Add implementation for method
	setKeyEquivalent:forButtonCell:
	* Source/NSButtonCell.m: Add call to new method.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35702 72102866-910b-0410-8b05-ffd578937521
2012-10-16 21:23:48 +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
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
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
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
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
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
Riccardo Mottola
ebe55654b2 removed comment about not being implemented in gnustep
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35361 72102866-910b-0410-8b05-ffd578937521
2012-08-08 10:05:25 +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
Quentin Mathe
5a2b7bc268 Fixed recent Clang warnings about IBOutlet and IBAction being already defined
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35257 72102866-910b-0410-8b05-ffd578937521
2012-07-05 11:48:16 +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
Sebastian Reitenbach
e65c5bc665 some int/NSInteger to NSUInteger changes to better
match return values of methods

OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35052 72102866-910b-0410-8b05-ffd578937521
2012-04-10 07:16:36 +00:00
David Chisnall
4feae5ffce Add explicit return types to a couple of methods and __attribute__((unused)) to
some functions with empty bodies so people don't get compiler warnings from
importing AppKit.h



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35035 72102866-910b-0410-8b05-ffd578937521
2012-04-06 12:26:34 +00:00
Eric Wasylishen
a900e2f5cb * Headers/AppKit/NSSplitView.h:
* Source/NSSplitView.m: Add support for
splitView:shouldAdjustSizeOfSubview: delegate method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35002 72102866-910b-0410-8b05-ffd578937521
2012-03-27 04:32:57 +00:00
Fred Kiefer
e8d2648aca * Headers/AppKit/NSKeyValueBinding.h,
* Source/externs.m: Additional binding names.
* Source/GSBindingHelpers.h,
* Source/NSKeyValueBinding.m: Additional helper methods.
* Source/NSObjectController.m: Use helper methods.
* Source/NSArrayController.m: Signal when the arranged objects
change.
* Source/NSTableColumn.m,
* Source/NSTableView.m: First attempt at support for content
binding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34923 72102866-910b-0410-8b05-ffd578937521
2012-03-12 12:24:17 +00:00
Fred Kiefer
37db8ec30e * Source/NSObjectController.m: Complete encoding/decoding methods.
* Headers/AppKit/NSArrayController.h,
* Source/NSArrayController.m: Add some implementation to this class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34904 72102866-910b-0410-8b05-ffd578937521
2012-03-07 23:58:57 +00:00
Gregory John Casamento
4193fb4122 * Headers/AppKit/NSTreeController.h
* Headers/AppKit/NSTreeNode.h
	* Source/NSTreeController.m: Add tree controller skeleton.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34847 72102866-910b-0410-8b05-ffd578937521
2012-02-29 15:32:09 +00:00
Eric Wasylishen
b579efa85d * Headers/AppKit/NSImageRep.h: Add comment clarifying that -draw
is a primitive method which subclasses should override.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34815 72102866-910b-0410-8b05-ffd578937521
2012-02-24 20:00:41 +00:00
Fred Kiefer
e654c1c5b5 Replace NSCompositeHighlight with GSCompositeHighlight and map NSCompositeHighlight onto
NSCompositeSourceOver.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34773 72102866-910b-0410-8b05-ffd578937521
2012-02-18 21:10:07 +00:00
Eric Wasylishen
1cc1bc54ef * Headers/AppKit/NSGraphics.h: Add missing declaration for
NSFrameRectWithWidthUsingOperation


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34767 72102866-910b-0410-8b05-ffd578937521
2012-02-16 19:48:30 +00:00
Eric Wasylishen
bd5ff5ba95 * Headers/AppKit/NSOutlineView.h:
* Source/NSOutlineView.m: Add support for
outlineView:dataCellForTableColumn:item: delegate method
* Headers/AppKit/NSTableView.h:
* Source/NSTableView.m: Add support for
tableView:dataCellForTableColumn:row: delegate method


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34717 72102866-910b-0410-8b05-ffd578937521
2012-02-03 21:41:41 +00:00
Fred Kiefer
d570812401 Fix clang compiler warnings as reported by Sebastian Reitenbach
<sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34608 72102866-910b-0410-8b05-ffd578937521
2012-01-23 14:27:58 +00:00
Fred Kiefer
62f2a5af94 * Headers/AppKit/NSImageView.h,
* Source/NSImageView.m: Protect image drag with new ivar that
gets set via a new GNUstep extension method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34580 72102866-910b-0410-8b05-ffd578937521
2012-01-18 21:03:37 +00:00
Richard Frith-MacDonald
28460f68e4 Cleanup/simplify code for handling theme names in defaults system
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34527 72102866-910b-0410-8b05-ffd578937521
2012-01-14 16:10:48 +00:00
Fred Kiefer
c35a95998d Make the same change in NSDrawer and also switch to CGFloat.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34314 72102866-910b-0410-8b05-ffd578937521
2011-12-17 20:29:09 +00:00
Fred Kiefer
8ad4aa86c4 Replace some occurences of int with NSInteger
and unsigned with NSUInteger. This allows to recompile gui on 
64 bit systems after the change to NSNotFound in base.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34312 72102866-910b-0410-8b05-ffd578937521
2011-12-17 17:16:09 +00:00
Eric Wasylishen
6e831e5f00 * Headers/AppKit/NSTextView.h: Change _dragTargetLocation to NSUInteger
because NSNotFound no longer fits in unsigned int on 64-bit


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34295 72102866-910b-0410-8b05-ffd578937521
2011-12-15 18:37:19 +00:00
Eric Wasylishen
e395fe88d7 * Source/NSPrinter.m:
* Source/NSPrintOperation.m:
* Source/NSPageLayout.m:
* Source/NSPrintInfo.m:
* Headers/AppKit/NSPrintInfo.h: Migrate printing code to CGFloat
or double.
* Source/NSTextView.m: Rewrite -adjustPageHeightNew🔝bottom:limit:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34288 72102866-910b-0410-8b05-ffd578937521
2011-12-15 06:51:02 +00:00
Fred Kiefer
a84a2ca96f * Headers/AppKit/AppKit.h: Add NSColorSpace.h. This fixes bug #34913.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34221 72102866-910b-0410-8b05-ffd578937521
2011-11-27 23:14:26 +00:00
David Chisnall
a5bfae5fc4 NSAutoreleasePool* -> id in NSApplication.h, so the header can be used in ARC code (which prohibits explicit references to NSAutoreleasePool).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34216 72102866-910b-0410-8b05-ffd578937521
2011-11-25 20:27:39 +00:00
Eric Wasylishen
2992f4fa1d * Source/GSNibLoading.m:
* Source/NSToolbar.m:
* Source/GSToolbarCustomizationPalette.m:
* Source/GSToolbarView.m:
* Source/NSToolbarItem.m:
* Source/NSToolbarFrameworkPrivate.h:
* Headers/AppKit/NSToolbar.h: Implement -initWithCoder: for
NSToolbar. This required a bit more work that usual because
toolbars created with -initWithCoder can operate without a delegate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34189 72102866-910b-0410-8b05-ffd578937521
2011-11-18 20:15:53 +00:00
Quentin Mathe
96aad93e0f Improved the menu theming to support some common menu look variations.
Fixed bug #34792 too.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34174 72102866-910b-0410-8b05-ffd578937521
2011-11-16 10:32:15 +00:00
Eric Wasylishen
60674d5076 * Headers/AppKit/NSImageCell.h:
* Headers/AppKit/NSCell.h: Move NSImageScaling constants to NSCell
* Source/NSImageCell.m:
* Source/NSCell.m: Refactor the image scaling logic to a private
method in NSCell, -_scaleImageWithSize:toFitInSize:scalingType:
which can be share by NSImageCell, NSButtonCell, and any other
cell classes that need it.
* Source/NSButtonCell.m:
* Headers/AppKit/NSButtonCell.h: Implement -imageScaling and
-setImageScaling methods. 
* Source/GSThemeDrawing.m:
* Headers/Additions/GNUstepGUI/GSTheme.h: Remove the
-drawImage:inButtonCell:withFrame:position: API intended
to let themes substitute images right before drawing,
as IMHO it's the wrong place to hook in new images (by
the time this method was caleld, sizing/positionging
was already done).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34160 72102866-910b-0410-8b05-ffd578937521
2011-11-11 23:10:15 +00:00
Fred Kiefer
407da1b829 Add decoding of class IBInitialTabViewItemAttribute.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34124 72102866-910b-0410-8b05-ffd578937521
2011-11-05 17:45:09 +00:00
Quentin Mathe
e2967ab5bc Made separator menu item themable, by moving the drawing code from
NSMenuItemCell to a new method in GSThemeDrawing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34079 72102866-910b-0410-8b05-ffd578937521
2011-10-28 09:40:41 +00:00
Eric Wasylishen
25c6770196 * Source/NSBitmapImageRep.m:
* Source/NSColor.m:
* Source/GSThemeTools.m:
* Source/NSGraphicsContext.m:
* Headers/AppKit/NSColor.h:
* Headers/AppKit/NSGraphicsContext.h:
* ColorPickers/GSGrayColorPicker.m:
* ColorPickers/GSCMYKColorPicker.m:
* ColorPickers/GSWheelColorPicker.m:
* ColorPickers/GSRGBColorPicker.m:
* ColorPickers/GSHSBColorPicker.m: Migrate float to CGFloat in
NSColor


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34070 72102866-910b-0410-8b05-ffd578937521
2011-10-26 00:21:57 +00:00
Fred Kiefer
6aafb3c0e6 Integrate XIB loading methods used in Gorm.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34055 72102866-910b-0410-8b05-ffd578937521
2011-10-25 09:06:01 +00:00
Fred Kiefer
a47199291f Big improvement of XIB loading. Now all XIB files from the bug reports
get loaded.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34050 72102866-910b-0410-8b05-ffd578937521
2011-10-24 14:44:29 +00:00
Fred Kiefer
93234fe0e2 Rewrote NSBezierPath to allow subclasses.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33942 72102866-910b-0410-8b05-ffd578937521
2011-10-04 13:32:50 +00:00
Fred Kiefer
8cdec64b84 Patch by Julian Mayer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33941 72102866-910b-0410-8b05-ffd578937521
2011-10-04 13:30:53 +00:00
Richard Frith-MacDonald
0d87be5aa0 fix for C++ linkage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33940 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:50:57 +00:00
Fred Kiefer
8ce0cd8e60 Add forward declaration for NSNibBindingConnector.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33935 72102866-910b-0410-8b05-ffd578937521
2011-10-03 20:28:51 +00:00
Fred Kiefer
23b1ff3f36 Fix XIB loading bug reported by Julian Mayer as bug #34454.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33931 72102866-910b-0410-8b05-ffd578937521
2011-10-03 12:48:15 +00:00
Eric Wasylishen
19b6765e49 * Source/NSOpenPanel.m: Use the NSSavePanel _allowedFileTypes ivar
in place of the _fileTypes ivar. Replace calls to _setupForTypes: with
-setAllowedFileTypes:.
* Headers/AppKit/NSOpenPanel.h: Remove now unused _fileTypes ivar
* Source/NSSavePanel.m: Treat directories whose names have extensions
in the _allowedFileTypes array as file packages.
Previously, we only relied on -[NSWorkspace isFilePackageAtPath:],
to determine if a director is a file package, which only considers the
info.plists of installed applications.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33810 72102866-910b-0410-8b05-ffd578937521
2011-09-07 07:46:28 +00:00
Eric Wasylishen
1b780e1bc7 * Source/NSCachedImageRep.m: Restore the implementation of -draw
because libart/xlib need it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33797 72102866-910b-0410-8b05-ffd578937521
2011-08-30 02:20:29 +00:00
Eric Wasylishen
5531d27e56 * Source/NSImage.m: Reinstate use of the cached image rep, but only
on backends supporting GSdraw: (cairo).  This means we don't have to
create a window for every call to draw an image, and gives me a 5-10x
speedup for image drawing.
* Source/NSCachedImageRep.m: Implement private method
-nativeDrawInRect:.. which is called by NSImageRep's
-drawInRect:fromRect:..., and efficiently draw the cached rep
using GSdraw:. Also make some changes so cached image reps can have a
DPI != 72.
* Headers/AppKit/NSCachedImageRep.h: New private init method that lets
you specify diferent pixel size and point size.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33765 72102866-910b-0410-8b05-ffd578937521
2011-08-19 19:06:41 +00:00
Eric Wasylishen
99abec2ebf * Headers/AppKit/NSImageRep.h: Add
-drawInRect:fromRect:operation:fraction:respectFlipped:hints: method
* Source/NSImage.m:
* Source/NSImageRep.m: Refactor drawing code from NSImage to NSImageRep.
This should cause no functionlity change, but it lets NSImageRep
subclasses implement more efficient versions of -drawInRect:fromRect:...
that don't involve the (expensive) drawing of the image in a temporary
offscreen window and then drawing from there on to the destination surface.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33764 72102866-910b-0410-8b05-ffd578937521
2011-08-18 23:57:50 +00:00
Eric Wasylishen
ad562c0794 * Source/Functions.m:
* Headers/AppKit/NSGraphics.h: NSDrawNinePartImage implementation


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33745 72102866-910b-0410-8b05-ffd578937521
2011-08-16 02:58:12 +00:00
Eric Wasylishen
01c4a0be63 * Headers/Additions/GNUstepGUI/GSTheme.h: New GSThemeMargins struct.
Rename buttonBorderForCell:style:state: to buttonMarginsForCell:style:state:
and return the top/bottom/left/right margins instead of just two values.
(This is a theme API break.)
* Source/GSThemeDrawing.m: Implement buttonMarginsForCell:style:state:.
Also reduce the top and left margin of the default button by 1 pt, to
better reflect the button's appearance.
* Source/GSGuiPrivate.h: Add a GSRoundTowardsNegativeInfinity function
* Source/NSButtonCell.m (-drawImage:withFrame:inView:): Round the image
position down and to the right, as this seems to look the best.
* Source/NSButtonCell.m (-cellSize): Call new buttonMarginsForCell: method
* Source/NSButtonCell.m (-drawingRectForBounds:): Call new
buttonMarginsForCell: method


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33743 72102866-910b-0410-8b05-ffd578937521
2011-08-15 23:12:37 +00:00
Eric Wasylishen
5d897881e4 * Source/GSLayoutManager.m:
* Source/GSHorizontalTypesetter.m:
* Headers/Additions/GNUstepGUI/GSLayoutManager_internal.h:
* Headers/Additions/GNUstepGUI/GSLayoutManager.h: Store
glyph advances in the runs in GSLayoutManager. Extend the
NSGlyphStorage protocol to support a case where the glyph
generator provides the glyph advances.

I'm hoping to use this in the future to implement (optional)
glyph generators which are wrappers around HarfBuzz or the ICU
OpenType layout engine.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33684 72102866-910b-0410-8b05-ffd578937521
2011-08-02 23:34:06 +00:00
Eric Wasylishen
97e9d3bda8 * Source/NSImage.m: Implement
-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33571 72102866-910b-0410-8b05-ffd578937521
2011-07-16 02:09:06 +00:00
Eric Wasylishen
88be063a41 * Headers/AppKit/NSView.h:
* Source/NSView.m (-resizeWithOldSuperviewSize): Pixel-align
view frame when autoresizing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33483 72102866-910b-0410-8b05-ffd578937521
2011-07-07 23:16:02 +00:00
Eric Wasylishen
896c6d73a3 Add a new character picker panel. It's accessible
via a button in the font panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33470 72102866-910b-0410-8b05-ffd578937521
2011-07-06 18:39:49 +00:00
Eric Wasylishen
7a47a5e929 * Source/GSDisplayServer.m:
* Headers/Additions/GNUstepGUI/GSDisplayServer.h: Add a new API for taking
screenshots: -contentsOfScreen:inRect:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33442 72102866-910b-0410-8b05-ffd578937521
2011-07-03 23:43:07 +00:00
David Chisnall
81e43ec06d Another qualifier for ARC mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33418 72102866-910b-0410-8b05-ffd578937521
2011-06-29 16:03:03 +00:00
David Chisnall
6c39610429 Fix AppKit headers to allow inclusion in ARC mode. Since ARC requires the non-fragile ABI, a better solution would be to simply not expose any of these ivars with the non-fragile ABI.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33414 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:39:45 +00:00
Eric Wasylishen
7f4e569c47 * Headers/Additions/GNUstepGUI/GSImageMagickImageRep.h:
* Source/GNUmakefile:
* Source/NSImageRep.m:
* Source/GSImageMagickImageRep.m:
* configure.ac: New ImageMagick-based NSBitmapImageRep subclass


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33399 72102866-910b-0410-8b05-ffd578937521
2011-06-29 03:35:25 +00:00
Fred Kiefer
87c05a3ba1 * Source/GSDragView.m (-init): Set the window background colour to clear.
* Headers/AppKit/NSAffineTransform.h,
* Headers/AppKit/NSView.h,
* Source/NSAffineTransform.m,
* Source/NSPrintOperation.m,
* Source/NSView.m: Use CGFlaot instead of float.
* Tests/gui/NSView/NSView_bounds_scale.m: New test file that currently fails.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33398 72102866-910b-0410-8b05-ffd578937521
2011-06-28 20:59:24 +00:00
Eric Wasylishen
f79e17387b * Source/GSGhostscriptImageRep.m:
* Headers/Additions/GNUstepGUI/GSGhostscriptImageRep.h:
* Source/GNUmakefile:
* Source/NSImageRep.m: New image rep which attempts to
invoke Ghostscript to rasterize PS/EPS/PDF images. It needs
some polishing but basically works.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33389 72102866-910b-0410-8b05-ffd578937521
2011-06-27 05:45:40 +00:00
Fred Kiefer
425c40b07c * Headers/AppKit/NSPrintPanel.h: Add missing APPKIT_EXPORT for new strings.
Bug point out by Bluna Ratimonkey <object@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33364 72102866-910b-0410-8b05-ffd578937521
2011-06-22 21:52:43 +00:00
Fred Kiefer
5d344a2b0a Change all the runModal:... methods to return an NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33352 72102866-910b-0410-8b05-ffd578937521
2011-06-19 20:44:24 +00:00
Eric Wasylishen
54ff379877 * Headers/AppKit/NSImageCell.h:
* Source/NSImageCell.m: Add support for NSImageScaleProportionallyUpOrDown


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33309 72102866-910b-0410-8b05-ffd578937521
2011-06-15 18:38:12 +00:00
Eric Wasylishen
37ceff2824 * Source/NSImage.m: Implement -bestRepresentationForRect:context:hints:,
which chooses the smallest rep larger than or equal to the provided size.

Modify -nativeDrawInRect:... to use the above method for choosing a rep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33304 72102866-910b-0410-8b05-ffd578937521
2011-06-14 19:00:23 +00:00
Fred Kiefer
4dbb7eaa8a Add new MacOSX strings for NSPrintInfo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33282 72102866-910b-0410-8b05-ffd578937521
2011-06-11 20:34:49 +00:00
Fred Kiefer
191d9619d6 Add a few MacOSX methods with dummy implementations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33281 72102866-910b-0410-8b05-ffd578937521
2011-06-11 15:48:08 +00:00
Fred Kiefer
c744492fee Add a few key value bindings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33277 72102866-910b-0410-8b05-ffd578937521
2011-06-11 12:01:59 +00:00
Fred Kiefer
029df7575f Add newer MacOSX methods to NSPrintPanel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33252 72102866-910b-0410-8b05-ffd578937521
2011-06-05 21:55:34 +00:00
Fred Kiefer
4b080ec8b8 Declare a few MacOSX 10.5 methods and make
the background of the NSSplitView transparent by default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33139 72102866-910b-0410-8b05-ffd578937521
2011-05-27 08:35:24 +00:00
Eric Wasylishen
5f73c3f623 * Source/NSLayoutManager.m:
* Source/NSGraphicsContext.m:
* Headers/AppKit/DPSOperators.h:
* Headers/AppKit/NSGraphicsContext.h:
* Headers/Additions/GNUstepGUI/GSMethodTable.h:
New GSShowGlyphsWithAdvances, which replaces
GSShowGlyphs as the primitive text drawing method.
(used by -[NSLayoutManager drawGlyphsForGlyphRange:atPoint:])

Requires r33121 in -back.

Note that the advances aren't actually used by -back yet so
text output should be unchanged.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33122 72102866-910b-0410-8b05-ffd578937521
2011-05-26 03:55:55 +00:00
Fred Kiefer
f881df45ed Add OSX 10.5 methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33081 72102866-910b-0410-8b05-ffd578937521
2011-05-21 22:18:22 +00:00
Fred Kiefer
f4a8cab41b * Source/NSView.m (-setSubviews:): New method.
Code by Banlu Kemiyatorn <object@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33068 72102866-910b-0410-8b05-ffd578937521
2011-05-19 08:19:13 +00:00
Eric Wasylishen
a2f673e468 * Headers/AppKit/NSSavePanel.h:
* Source/NSSavePanel.m: Implement -setNameFieldStringValue:,
-nameFieldStringValue, -setNameFieldLabel:, -nameFieldLabel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32933 72102866-910b-0410-8b05-ffd578937521
2011-04-27 04:55:22 +00:00
Gregory John Casamento
828bc672f6 Add method to ask if the menu should show the icon. In some themes it
is redundant.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32829 72102866-910b-0410-8b05-ffd578937521
2011-04-10 20:14:53 +00:00
Fred Kiefer
91c7ca64c0 Correct declaration of data source methods and the implementation
in NSOutlineView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32746 72102866-910b-0410-8b05-ffd578937521
2011-03-30 08:17:00 +00:00
Eric Wasylishen
3cbafe4a9a * Headers/AppKit/NSSavePanel.h: Add OS 10.6 #ifdef around
new showsHiddenFiles methods


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32582 72102866-910b-0410-8b05-ffd578937521
2011-03-14 19:49:11 +00:00
Eric Wasylishen
c598c7fb4d * Source/NSSavePanel.m:
* Headers/AppKit/NSSavePanel.h: Implement -showsHiddenFiles
and -setShowsHiddenFiles:. Add a context menu to the browser
to allow toggling this setting.

NOTE: It defaults to not showing hidden files, and no longer
uses the GSFileBrowserHideDotFiles user default.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32560 72102866-910b-0410-8b05-ffd578937521
2011-03-14 02:25:08 +00:00
Fred Kiefer
0a2f6bd2df * Source/NSMatrix.m (_shiftModifier:): Use correct column index
for old cell.
* Headers/AppKit/NSCursor.h
* gui/Source/NSCursor.m: Add Mac 10.6 methods and implement
keyed coding/decoding properly.
* Images/nsmapping.strings: Add mappings for some new cursors.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32538 72102866-910b-0410-8b05-ffd578937521
2011-03-12 19:01:54 +00:00
Eric Wasylishen
b460081f8c NSTextView continuous spell checking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32534 72102866-910b-0410-8b05-ffd578937521
2011-03-12 07:45:14 +00:00
Fred Kiefer
02d5a28637 Remove unused ivars found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32528 72102866-910b-0410-8b05-ffd578937521
2011-03-10 22:18:42 +00:00
Riccardo Mottola
731f62b0e3 add method documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32511 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:37:54 +00:00
Eric Wasylishen
e39fed5a42 gui: implement NSLayoutManager temporary attributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32503 72102866-910b-0410-8b05-ffd578937521
2011-03-09 05:28:47 +00:00
Fred Kiefer
d4d795bdb2 Change the way the image for the cursor gets passed on to the backend.
The old way could only work for 8 bit data.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32491 72102866-910b-0410-8b05-ffd578937521
2011-03-07 19:45:04 +00:00
Fred Kiefer
0456c89f56 Implement NSSelectedTagBinding on NSPopupButton.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32486 72102866-910b-0410-8b05-ffd578937521
2011-03-07 15:35:36 +00:00
Fred Kiefer
2d01942e4b Replace #include -> #import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
Eric Wasylishen
d33f0c0c6a RTF: add support for read/wite of underline and strikethrough attributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32305 72102866-910b-0410-8b05-ffd578937521
2011-02-22 20:59:10 +00:00
Eric Wasylishen
227381f621 preliminary implementation of underlining
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32304 72102866-910b-0410-8b05-ffd578937521
2011-02-22 20:53:13 +00:00
Fred Kiefer
c67cd8b4f8 Remove the GSFusedSilica files as they are obsolete now.
The Opal library is a more complete replacement for CoreGraphics.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32251 72102866-910b-0410-8b05-ffd578937521
2011-02-20 20:10:57 +00:00
Fred Kiefer
03bc4d79d6 Define new cursor backend methods replacing -setcursorcolor:::. And use
these.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32179 72102866-910b-0410-8b05-ffd578937521
2011-02-15 22:54:23 +00:00
Fred Kiefer
89eb95e7d4 Add method -scrollRowToVisible:inColumn: to NSBrowser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31980 72102866-910b-0410-8b05-ffd578937521
2011-01-31 22:42:49 +00:00
Wolfgang Lux
18806fd515 Add missing declaration of NSWindow -isZoomed to the header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31954 72102866-910b-0410-8b05-ffd578937521
2011-01-26 21:48:50 +00:00
Fred Kiefer
6eaff61772 Add loading of NIB to NSViewController.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31940 72102866-910b-0410-8b05-ffd578937521
2011-01-24 11:47:55 +00:00
Germán Arias
f999016f34 Applied changes in menuInWindow.patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31895 72102866-910b-0410-8b05-ffd578937521
2011-01-16 00:32:54 +00:00
Wolfgang Lux
ab919f8fba Rename color (list) change notifications to match Cocoa (and OpenStep).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31893 72102866-910b-0410-8b05-ffd578937521
2011-01-15 19:28:24 +00:00
Wolfgang Lux
ba39755f4a Provide a default context menu for application icons when using
Macintosh or Windows 95 style menus. Inspired by OS X, the menu
contains items to hide or show the application, to terminate the
application, an item for each window present in the application's
window menu, and the items of the dock menu returned by the
application delegate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31892 72102866-910b-0410-8b05-ffd578937521
2011-01-15 14:36:38 +00:00
Wolfgang Lux
da2407140a Add some support for help links and markers in RTF documents. These
end up as dedicated attachments in attributed strings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31828 72102866-910b-0410-8b05-ffd578937521
2011-01-03 11:48:57 +00:00
Wolfgang Lux
07e61a136c Improve implementation of NSWorkspace methods querying volume and file
system information.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31795 72102866-910b-0410-8b05-ffd578937521
2010-12-29 13:03:20 +00:00
Fred Kiefer
4abc4ac83b Add the 10.5 coordinate transformation methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31755 72102866-910b-0410-8b05-ffd578937521
2010-12-22 17:06:35 +00:00
Fred Kiefer
de9abfb7ee Correct the definition of NSDragOperation and all its usages.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31754 72102866-910b-0410-8b05-ffd578937521
2010-12-22 16:16:14 +00:00
Fred Kiefer
cdb08be089 Implement glyph attribute handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31730 72102866-910b-0410-8b05-ffd578937521
2010-12-13 21:26:15 +00:00
Gregory John Casamento
64516b7af5 Additional table view methods for themeing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31679 72102866-910b-0410-8b05-ffd578937521
2010-11-28 03:55:58 +00:00
Gregory John Casamento
529856ef33 Added NSTableView to the drawing methods for GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31678 72102866-910b-0410-8b05-ffd578937521
2010-11-28 00:05:46 +00:00
Gregory John Casamento
be0954d2ac Change to GSThemeDrawing to implement drawTableHeaderRect:inView:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31673 72102866-910b-0410-8b05-ffd578937521
2010-11-27 18:17:49 +00:00
Gregory John Casamento
942841a1d4 Added methods for drawing tableheader cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31668 72102866-910b-0410-8b05-ffd578937521
2010-11-27 03:51:13 +00:00
Gregory John Casamento
5751234b4b Adding methods to draw knob and bar to theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31666 72102866-910b-0410-8b05-ffd578937521
2010-11-26 22:48:46 +00:00
Gregory John Casamento
03ef6c2fb5 Correction for previous commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31664 72102866-910b-0410-8b05-ffd578937521
2010-11-26 21:41:19 +00:00
Gregory John Casamento
72963b2f49 Added theming for NSMenuView into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31660 72102866-910b-0410-8b05-ffd578937521
2010-11-26 20:28:45 +00:00
Gregory John Casamento
eac1ad07ad Adding theme method for NSBrowser drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31658 72102866-910b-0410-8b05-ffd578937521
2010-11-26 19:49:04 +00:00
Gregory John Casamento
538432c72f Added method to draw scroller using theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31656 72102866-910b-0410-8b05-ffd578937521
2010-11-26 19:16:46 +00:00
Gregory John Casamento
8ed87de2f2 Added method to draw tab view to theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31654 72102866-910b-0410-8b05-ffd578937521
2010-11-26 18:08:58 +00:00
Fred Kiefer
49fdc602ba Remove a few compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31587 72102866-910b-0410-8b05-ffd578937521
2010-11-03 20:26:30 +00:00
Wolfgang Lux
782128949e Add methods to manage the user's preferred applications for URL
schemes to NSWorkspace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31523 72102866-910b-0410-8b05-ffd578937521
2010-10-18 09:04:18 +00:00
Fred Kiefer
53e4e9c4ac Add one more protection around definition of BOOL.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31510 72102866-910b-0410-8b05-ffd578937521
2010-10-13 20:24:15 +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
Fred Kiefer
6f2c2f94ea Correction of the declarations for the methods to handle temporary attributes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31205 72102866-910b-0410-8b05-ffd578937521
2010-08-29 18:49:03 +00:00
Wolfgang Lux
b9b154d6bf Fix result type of an NSDocument method, which was incompatible with Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31163 72102866-910b-0410-8b05-ffd578937521
2010-08-16 07:25:45 +00:00
Quentin Mathe
bdd7d8d739 Removed unwanted ivar addition with r30523
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30524 72102866-910b-0410-8b05-ffd578937521
2010-06-01 11:10:13 +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
84f54304e1 * Headers/AppKit/NSOutlineView.h,
* Source/NSOutlineView.m: Add -parentForItem: and -frameOfOutlineCellAtRow:. 
Use the later in -drawRow:clipRect:.
Change methods to use NSInteger and CGFloat.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30514 72102866-910b-0410-8b05-ffd578937521
2010-05-31 22:18:45 +00:00
Dave Wetzel
79ac03cdf1 new Files NSViewController.h and NSViewController.m. Fixes #29822
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30506 72102866-910b-0410-8b05-ffd578937521
2010-05-31 03:46:35 +00:00
Wolfgang Lux
a8e617e01f Correct serious nib loading bug on big endian machines.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30472 72102866-910b-0410-8b05-ffd578937521
2010-05-29 08:32:02 +00:00
Gregory John Casamento
dae9464580 Add Xib loading header so that the classes in the GSXibLoader can be used by applications.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30467 72102866-910b-0410-8b05-ffd578937521
2010-05-29 05:27:04 +00:00
Gregory John Casamento
70ab53498d * Headers/Additions/GNUstepGUI/GSTheme.h: Added method
displayPopUpMenu:... to handle the display of the popup menus for
	themes.
	* Source/GSThemeMenu.m: Added default implementation.
	* Source/NSPopUpButtonCell.m: Call the displayPopUpMenu:... method
	in the method attachPopUpWithFrame:inView:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30433 72102866-910b-0410-8b05-ffd578937521
2010-05-20 08:09:08 +00:00
Quentin Mathe
fe5c6189cf Removed Protocol.h import to eliminate potential return type conflicts, between
-(unsigned int)hash from Object and -(NSUInteger)hash from NSObject, when the 
receiver is of type (id).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30429 72102866-910b-0410-8b05-ffd578937521
2010-05-19 15:54:06 +00:00
Gregory John Casamento
562f545bd3 * Headers/Additions/GNUstepGUI/GSTheme.h: Added method
rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/GSThemeMenu.m: Implementation of method 
	rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/NSMenu.m: use the theming code implemented above instead
	of rendering the menu directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30370 72102866-910b-0410-8b05-ffd578937521
2010-05-12 22:47:10 +00:00
Wolfgang Lux
14b0075299 Add a private name attribute to menus to identify special purpose
menus. Fixes a bug where the services, windows, and recent documents
menu were defunct when loading the menu from a .nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30363 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:02:25 +00:00
Wolfgang Lux
e0d603b2ae Add an attribute to NSDocumentController to maintain the recent
documents menu. Make the methods to access that menu available to
other classes in -gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30362 72102866-910b-0410-8b05-ffd578937521
2010-05-12 08:17:26 +00:00
Fred Kiefer
0ecdeae752 Remove compiler warning for NSBrowser header cell drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30360 72102866-910b-0410-8b05-ffd578937521
2010-05-11 16:48:44 +00:00
Fred Kiefer
da1abbdb04 Add method directoryURL to NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30278 72102866-910b-0410-8b05-ffd578937521
2010-05-02 10:21:40 +00:00
Adam Fedor
4cea0b531e * configure, configure.ac, Headers/Additions/GNUstepGUI/config.h.in,
Source/NSSliderCell.m: Check for atan2f function (not present on
old Solaris systems for instance).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30254 72102866-910b-0410-8b05-ffd578937521
2010-04-28 18:14:43 +00:00
Doug Simons
b136536052 Only rebuild in-window menus when needed (significant performance improvement)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30232 72102866-910b-0410-8b05-ffd578937521
2010-04-24 17:12:35 +00:00
Jonathan Gillaspie
e03690b917 * Headers/AppKit/NSGraphics.h: NSBeep() - Don't crash when a
graphics context isn't available (eg - from a subthread).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30226 72102866-910b-0410-8b05-ffd578937521
2010-04-23 17:23:43 +00:00
Doug Simons
7428dac2af update header to eliminate warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30208 72102866-910b-0410-8b05-ffd578937521
2010-04-20 19:59:42 +00:00
Eric Wasylishen
0d365b7d10 NSBrowser header themeing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30189 72102866-910b-0410-8b05-ffd578937521
2010-04-19 03:14:36 +00:00
Doug Simons
fe66919f5b Fix numerous issues with toolbar customization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30143 72102866-910b-0410-8b05-ffd578937521
2010-04-13 21:38:31 +00:00
Eric Wasylishen
fa1db26477 Fix for delivery of rightMouseDragged: and otherMouseDragged: which were not working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30120 72102866-910b-0410-8b05-ffd578937521
2010-04-11 00:31:59 +00:00
David Ayers
4e995aca20 * Headers/AppKit/NSSound.h: Import NSBundle.h for category declaration.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30107 72102866-910b-0410-8b05-ffd578937521
2010-04-09 09:04:42 +00:00
Fred Kiefer
0564ab4689 Changed one more header file from #include into #import.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30103 72102866-910b-0410-8b05-ffd578937521
2010-04-07 21:21:49 +00:00
Fred Kiefer
7ebb2818cc Final set of #include -> #import replacement in additional headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30097 72102866-910b-0410-8b05-ffd578937521
2010-04-07 08:59:43 +00:00
Fred Kiefer
6cdc46802b 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
Fred Kiefer
7e289df84b 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
Fred Kiefer
c5e1f2e6a2 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
Fred Kiefer
58a1f6ec65 Some more #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30072 72102866-910b-0410-8b05-ffd578937521
2010-03-28 21:36:19 +00:00
Fred Kiefer
504a5c2064 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
Fred Kiefer
d1c9ba660b Add return statement to avoid compiler warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30069 72102866-910b-0410-8b05-ffd578937521
2010-03-28 21:28:02 +00:00
Wolfgang Lux
4f4a58161e Commit change in NSResponder.h, too, which accidentally did not make
it in the last commit.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30058 72102866-910b-0410-8b05-ffd578937521
2010-03-27 22:10:58 +00:00
David Chisnall
a9ba2e5e77 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
Fred Kiefer
53381f6992 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
Fred Kiefer
6483053f29 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
Fred Kiefer
0d78f7f50a 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
Fred Kiefer
00ab729bdd 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
Fred Kiefer
9f4fd26405 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
Fred Kiefer
d205cd7f9e 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
Fred Kiefer
1399765d96 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
Eric Wasylishen
b81434b7d0 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
Fred Kiefer
c16eed5d1d Started cleanup of #includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29833 72102866-910b-0410-8b05-ffd578937521
2010-03-04 10:12:13 +00:00
Gregory John Casamento
cc37831c44 * Headers/Additions/GNUstepGUI/GSTheme.h: Add category to allow
overriding of classes used for save/open panels.
	* Source/GNUmakefile: Build new category.
	* Source/GSThemeOpenSavePanels.m: Implementation of methods
	-savePanelClass and -openPanelClass.
	* Source/NSOpenPanel.m: Modifications to use class from current 
	theme.
	* Source/NSSavePanel.m: Modifications to use class from current 
	theme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29791 72102866-910b-0410-8b05-ffd578937521
2010-02-28 04:31:54 +00:00
Fred Kiefer
19130e125d Check for "#if !NO_GNUSTEP" instead of "#ifndef NO_GNUSTEP" as
base has changed this to always being defined.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29695 72102866-910b-0410-8b05-ffd578937521
2010-02-21 11:01:43 +00:00
Fred Kiefer
3a81ad3b3b dopt to the fact that NSAffineTransform now uses a matrix of CGFloats.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29688 72102866-910b-0410-8b05-ffd578937521
2010-02-20 16:30:27 +00:00
Fred Kiefer
4b1472cf8a Make the signatures of methods consistent between headers and implementation files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29687 72102866-910b-0410-8b05-ffd578937521
2010-02-20 13:21:57 +00:00
Fred Kiefer
43074e4a62 Start cleanup after big base change. Remove the usage of extension
methods.
New 10.5 methods on NSCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29656 72102866-910b-0410-8b05-ffd578937521
2010-02-17 09:58:38 +00:00
Eric Wasylishen
411d3e27bc NSColorWell themeing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29594 72102866-910b-0410-8b05-ffd578937521
2010-02-12 23:09:35 +00:00
Richard Frith-MacDonald
f47abd817f Fix to return an immutable proxy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29520 72102866-910b-0410-8b05-ffd578937521
2010-02-09 09:14:14 +00:00
Gregory John Casamento
b3af151d7b Added hasMenu and hasToolbar methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29489 72102866-910b-0410-8b05-ffd578937521
2010-02-05 21:30:29 +00:00
Eric Wasylishen
82d6f25159 Add GSThemeDisabledState
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29455 72102866-910b-0410-8b05-ffd578937521
2010-02-01 08:26:40 +00:00
Eric Wasylishen
1d764b8771 Use theme tiles (if available) to draw progress bars.
New tile name: GSProgressIndicatorBarDeterminate


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29453 72102866-910b-0410-8b05-ffd578937521
2010-02-01 06:20:11 +00:00
Eric Wasylishen
7225f6e380 Use theme tiles (if available) to draw menu backgrounds and items.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29447 72102866-910b-0410-8b05-ffd578937521
2010-01-30 05:00:29 +00:00
Gregory John Casamento
a7b418e691 * Headers/Additions/GNUstepGUI/GSTheme.h: Added new method
declaration for updateAllWindowsWithMenu:
	* Source/GSThemeMenu.m: Added default implementation of 
	updateAllWindowsWithMenu:
	* Source/NSMenu.m: Added call to updateAllWindowsWithMenu: on
	current theme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29445 72102866-910b-0410-8b05-ffd578937521
2010-01-30 03:11:56 +00:00
Eric Wasylishen
ffc734898c Use theme tiles (if available) to draw table headers. New tile names are
GSTableHeader and GSTableCorner.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29444 72102866-910b-0410-8b05-ffd578937521
2010-01-29 22:21:34 +00:00
Eric Wasylishen
d0e93fff89 Add panel style constants NSNonactivatingPanelMask and NSHUDWindowMask
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29439 72102866-910b-0410-8b05-ffd578937521
2010-01-29 05:03:11 +00:00
Eric Wasylishen
e6c79f2fb8 NSSegmentedCell themeing support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29435 72102866-910b-0410-8b05-ffd578937521
2010-01-29 03:11:43 +00:00
Eric Wasylishen
2c328a83d5 Correct typo in NSTexturedRoundedBezelStyle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29432 72102866-910b-0410-8b05-ffd578937521
2010-01-28 23:33:08 +00:00
Eric Wasylishen
253a3dff34 Factor out table header cell drawing into a new GSTheme method,
-drawTableHeaderCell:withFrame:inView:state:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29431 72102866-910b-0410-8b05-ffd578937521
2010-01-28 07:25:04 +00:00
Eric Wasylishen
f03ffb9793 Create a new GSTheme method for drawing the background of NSMenuView,
-drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29430 72102866-910b-0410-8b05-ffd578937521
2010-01-28 04:28:23 +00:00
Wolfgang Lux
fc16eea0dd Implement smart insert and delete and use it when cutting, copying,
pasting, and deleting full words in a text view or text field.

Note: I have changed NSTextView initialization to enable smart insert
and delete by default, since this is the default on OS X. (It is even
documented, though in a maybe obscure place, cf. "Text Editing
Programming Guide for Cocoa: Subclassing NSTextView".)  However, this
means that support for this feature will be somewhat inconsistent.
Smart insert and delete is enabled for text views created
programmatically (including the field editor), but not for text views
loaded from existing nib files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29426 72102866-910b-0410-8b05-ffd578937521
2010-01-27 23:26:09 +00:00
Quentin Mathe
84683f1c4d Added the possibility to customize the title view look and behavior in a theme
with a GSTitleView subclass.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29419 72102866-910b-0410-8b05-ffd578937521
2010-01-27 11:29:07 +00:00
Gregory John Casamento
15de26b03c Update menu code and set menu on window creation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29373 72102866-910b-0410-8b05-ffd578937521
2010-01-23 23:41:07 +00:00
Quentin Mathe
f616b91157 Finished to implement the NSTable/OutlineView sort descriptor support.
More changes are needed to get proper sorting support (e.g. visual feedback).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29293 72102866-910b-0410-8b05-ffd578937521
2010-01-16 14:45:13 +00:00
Gregory John Casamento
7a717734be * Headers/Additions/GNUstepGUI/GSTheme.h: Added method to call
back menuHeightForWindow:
	* Source/GSThemeMenu.m: Added default implementation of 
	menuHeightForWindow:.  Default implementation returns NSMenuView
	menuBarHeight.
	* Source/GSWindowDecorationView.m: Use menuHeightForWindow: instead
	of getting it directly from the menu view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29288 72102866-910b-0410-8b05-ffd578937521
2010-01-15 18:10:04 +00:00
Gregory John Casamento
ebebc38558 * Headers/Additions/GNUstepGUI/GSTheme.h: Added methods
to support adding menus and processing commands from windows, if
       appropriate.
       * Headers/Additions/GNUstepGUI/GSWindowDecorationView.h: Added
       new methods for menu and toolbar flags.
       * Headers/AppKit/NSInterfaceStyle.h: Added new interface style.
       * Source/GNUmakefile: Added header.
       * Source/GSStandardWindowDecorationView.m: Change include
       to include header in new location.
       * Source/GSThemeMenu.m: Default theme implementation for
       Menus.
       * Source/GSWindowDecorationView.m: Add the setHasMenu:/setHasToolbar:
       flags.
       * Source/NSWindow.m: Use the theme to set the menu instead of
       setting it directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29271 72102866-910b-0410-8b05-ffd578937521
2010-01-13 20:51:30 +00:00
Eric Wasylishen
bf77df9e40 Add dummy NSShadow implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29188 72102866-910b-0410-8b05-ffd578937521
2010-01-01 04:45:23 +00:00
Fred Kiefer
a7a8c31c4c Clean up and addition of cut/copy/paste methods, based on code
by Nikolaus Schaller <hns@computer.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29178 72102866-910b-0410-8b05-ffd578937521
2009-12-29 11:24:01 +00:00
Quentin Mathe
c444ae92d2 Added -columnIndexesInRect: and updated documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29175 72102866-910b-0410-8b05-ffd578937521
2009-12-27 16:05:48 +00:00
Wolfgang Lux
395f9a293b Implement coalescing of undo actions for typing events in NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29164 72102866-910b-0410-8b05-ffd578937521
2009-12-23 00:39:18 +00:00
Eric Wasylishen
ab285b8ea4 Finish NSColorWell interaction tweaks:
- activation of the now happens on mouseUp, not mouseDown
- non-bordered NSColorWells can't be activated by clicking
- non-bordered NSColorWells start a drag operation upon mouseDown
- disabled NSColorWells don't accept colours being dropped on them
- dropping a colour on the well inside the NSColorPanel now
  also updates the active NSColorWell
Also moved the static variable for keeping track of where the mouseDown
occurred to an instance variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29150 72102866-910b-0410-8b05-ffd578937521
2009-12-21 00:31:24 +00:00
Fred Kiefer
4c6d79976d First attempt at implemtning these classes. Code mostly by Nikolaus
Schaller <hns@computer.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29141 72102866-910b-0410-8b05-ffd578937521
2009-12-19 22:35:06 +00:00
Wolfgang Lux
8b97af9ed3 Phase out the wraps NSCell attribute, since it is implied by the
lineBreakMode attribute. Note that with this change cells now wrap by
default, as has always been the case on OS X.
Also fix a related inconsistency where text that is wrapped by the
cell was displayed in a single line during editing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29134 72102866-910b-0410-8b05-ffd578937521
2009-12-17 01:49:20 +00:00
Wolfgang Lux
786f376f1b Fix various issues when drawing controls with edited cells. This
includes a fix for the problem of properly resizing and redrawing the
editor when the cell is resized or moved during editing (bug #22678).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29133 72102866-910b-0410-8b05-ffd578937521
2009-12-17 01:03:07 +00:00
Quentin Mathe
416dcffdb4 Added NSWindow 'title' binding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29113 72102866-910b-0410-8b05-ffd578937521
2009-12-10 12:43:35 +00:00
Quentin Mathe
29d831a62f Added all the new table column methods and constants up to Mac OS X 10.6.
These new additions remain to be fully implemented and the archiving code to be 
updated.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29107 72102866-910b-0410-8b05-ffd578937521
2009-12-08 17:01:01 +00:00
Richard Frith-MacDonald
4d5f2cec93 First hack at expand/collapse as we drag over expandable items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29082 72102866-910b-0410-8b05-ffd578937521
2009-11-29 18:02:06 +00:00
Richard Frith-MacDonald
2f3ba4d843 Support overriding of methods in any class by the theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29042 72102866-910b-0410-8b05-ffd578937521
2009-11-20 12:13:10 +00:00
Richard Frith-MacDonald
f2a8d1d58c api cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29039 72102866-910b-0410-8b05-ffd578937521
2009-11-19 20:37:43 +00:00
Richard Frith-MacDonald
38cd3d8edb more documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29037 72102866-910b-0410-8b05-ffd578937521
2009-11-19 09:38:34 +00:00
Richard Frith-MacDonald
d3de4d56a7 improve documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29036 72102866-910b-0410-8b05-ffd578937521
2009-11-19 08:19:34 +00:00
Richard Frith-MacDonald
09c902f201 theming cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29024 72102866-910b-0410-8b05-ffd578937521
2009-11-16 14:28:11 +00:00
Wolfgang Lux
036a78c32d Fix NSActionCell implementation so that -setObjectValue: and
-setStringValue: have an effect while the cell is edited.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29010 72102866-910b-0410-8b05-ffd578937521
2009-11-14 22:15:31 +00:00
David Chisnall
1e0478fc15 Fixed signed integer overflow in font traits.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29005 72102866-910b-0410-8b05-ffd578937521
2009-11-14 12:55:07 +00:00
Hans Baier
4e4a09f7de Factor out drawing of progress indicator's bezel and bar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29003 72102866-910b-0410-8b05-ffd578937521
2009-11-14 03:46:00 +00:00
Hans Baier
be3a29fd05 make the arrow image in NSMenuItemCell themeable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29001 72102866-910b-0410-8b05-ffd578937521
2009-11-14 02:56:29 +00:00
Fred Kiefer
139258eec5 Move initialisation and drawing of progress indicator into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28987 72102866-910b-0410-8b05-ffd578937521
2009-11-09 20:15:36 +00:00
Fred Kiefer
882cecd516 Move the colour well border drawing into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28986 72102866-910b-0410-8b05-ffd578937521
2009-11-09 18:00:54 +00:00
Fred Kiefer
17ef668924 Move corner view drawing into GSTheme.
Add new 10.3 methods for NSTableHeaderCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28985 72102866-910b-0410-8b05-ffd578937521
2009-11-09 14:53:59 +00:00
Fred Kiefer
3bfc5beceb Move stepper drawing code into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28983 72102866-910b-0410-8b05-ffd578937521
2009-11-09 13:01:48 +00:00
Fred Kiefer
b55e89950b Small code cleanups.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28976 72102866-910b-0410-8b05-ffd578937521
2009-11-08 19:26:49 +00:00
Richard Frith-MacDonald
01eaad1d05 Improve documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28958 72102866-910b-0410-8b05-ffd578937521
2009-11-05 11:03:01 +00:00
Fred Kiefer
eecdf96f4b Extract a few more drawing and colour methods to GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28937 72102866-910b-0410-8b05-ffd578937521
2009-11-02 11:48:22 +00:00
Fred Kiefer
4974760a67 Better implementation of NSProgressIndicator based on patch by Uli
Kusterer <witness.of.teachtext@gmx.net>.
-- Diese und die folgenden Zeilen werden ignoriert  --

M    Source/NSProgressIndicator.m
M    Headers/AppKit/NSProgressIndicator.h
M    ChangeLog
AM   Images/common_ProgressSpinning_4.tiff
AM   Images/common_ProgressIndeterminate_3.tiff
AM   Images/common_ProgressSpinning_8.tiff
M    Images/GNUmakefile
AM   Images/common_ProgressSpinning_1.tiff
AM   Images/common_ProgressSpinning_5.tiff
AM   Images/common_ProgressIndeterminate_4.tiff
AM   Images/common_ProgressSpinning_2.tiff
AM   Images/common_ProgressIndeterminate_1.tiff
AM   Images/common_ProgressSpinning_6.tiff
AM   Images/common_ProgressIndeterminate_5.tiff
AM   Images/common_ProgressSpinning_3.tiff
AM   Images/common_ProgressIndeterminate_2.tiff
AM   Images/common_ProgressSpinning_7.tiff
AM   Images/common_ProgressIndeterminate_6.tiff


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28900 72102866-910b-0410-8b05-ffd578937521
2009-10-27 22:21:01 +00:00
Thomas Gamper
acafc06269 TG: Add cursor position setter
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28897 72102866-910b-0410-8b05-ffd578937521
2009-10-27 18:32:58 +00:00
Richard Frith-MacDonald
f43122287f Add method to return theme version
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28883 72102866-910b-0410-8b05-ffd578937521
2009-10-26 09:48:08 +00:00
Fred Kiefer
054405e8f3 Add gradient methods on graphics context.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28872 72102866-910b-0410-8b05-ffd578937521
2009-10-23 19:58:22 +00:00
Riccardo Mottola
1ff514ec76 Added some documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28870 72102866-910b-0410-8b05-ffd578937521
2009-10-23 10:57:52 +00:00
Fred Kiefer
c5952044b7 Add basic implementation for gui part of colour gradients.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28864 72102866-910b-0410-8b05-ffd578937521
2009-10-21 07:12:12 +00:00
Richard Frith-MacDonald
bded0c0c91 fixup fill style name conversion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28849 72102866-910b-0410-8b05-ffd578937521
2009-10-19 14:09:05 +00:00
Richard Frith-MacDonald
028062089d fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28847 72102866-910b-0410-8b05-ffd578937521
2009-10-19 11:02:27 +00:00
Richard Frith-MacDonald
7e3fc6af79 Tweak last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28846 72102866-910b-0410-8b05-ffd578937521
2009-10-19 10:49:10 +00:00
Richard Frith-MacDonald
16ee679c7e add functions for handling fill style names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28845 72102866-910b-0410-8b05-ffd578937521
2009-10-19 10:34:55 +00:00
Richard Frith-MacDonald
1c8cd6a0c4 Fixups to avoid crashes opening non-document-based apps.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28844 72102866-910b-0410-8b05-ffd578937521
2009-10-19 10:03:03 +00:00
Richard Frith-MacDonald
a49d3efb05 give theme more control over drawing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28839 72102866-910b-0410-8b05-ffd578937521
2009-10-18 16:23:34 +00:00
Nicolas Roard
2c3f0453ee Refactoring of GSDrawTiles to let it draw itself, and added a new init method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28838 72102866-910b-0410-8b05-ffd578937521
2009-10-18 14:21:57 +00:00
Richard Frith-MacDonald
c72cc49307 Partial code for using miniaturised app icon to unhide a hidden app.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28832 72102866-910b-0410-8b05-ffd578937521
2009-10-17 15:18:26 +00:00
Richard Frith-MacDonald
862f3e0cf7 Add missing method to header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28819 72102866-910b-0410-8b05-ffd578937521
2009-10-13 08:44:09 +00:00
Fred Kiefer
28c709afdf Move all the window border drawing code into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28792 72102866-910b-0410-8b05-ffd578937521
2009-10-10 17:37:01 +00:00
Riccardo Mottola
82cbf1cf9e added some NSCompositingOperation doc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28726 72102866-910b-0410-8b05-ffd578937521
2009-09-22 23:12:15 +00:00
Fred Kiefer
3b51ebf3fe Unify the text converter handling. Plus added a bit of implementation
for the new test block methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28713 72102866-910b-0410-8b05-ffd578937521
2009-09-19 14:55:57 +00:00
Hans Baier
73a9ff2af5 GSTheme.h: fix typo in method name: Toobar -> Toolbar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28688 72102866-910b-0410-8b05-ffd578937521
2009-09-16 02:44:28 +00:00
Hans Baier
2896ed8473 Source/NSWorkspace.m: ([-launchAppWithBundleIdentifier:]) add dummy implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28678 72102866-910b-0410-8b05-ffd578937521
2009-09-15 04:26:29 +00:00
Hans Baier
76eba75a84 add NSWorkspaceLaunchoptions to NSWorkspace.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28675 72102866-910b-0410-8b05-ffd578937521
2009-09-14 21:12:30 +00:00
Fred Kiefer
32bb892abd Changed the class NSScroller to be more similar to the the current Apple
specification.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28671 72102866-910b-0410-8b05-ffd578937521
2009-09-14 19:00:07 +00:00
Fred Kiefer
176b3a0a2c * Headers/AppKit/NSMenuItem.h: Let the protocol NSMenuItem
conform to NSValidatedUserInterfaceItem.
  Patch by Quentin Mathe <quentin.mathe@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28627 72102866-910b-0410-8b05-ffd578937521
2009-09-07 16:42:16 +00:00
Fred Kiefer
ce6009fe8b * Headers/AppKit/NSSearchFieldCell.h: Add version #ifdef's.
* Source/NSSearchFieldCell.m (-encodeWithCoder:, -initWithCoder:):
  Correct encoding/decoding of maximumRecents.
  Based on patch by Quentin Mathe <quentin.mathe@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28623 72102866-910b-0410-8b05-ffd578937521
2009-09-07 14:08:37 +00:00
Gregory John Casamento
21ac59a390 Revert previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28553 72102866-910b-0410-8b05-ffd578937521
2009-08-26 22:58:44 +00:00
Gregory John Casamento
727d28b114 * Source/libgnustep-gui.def: Export GSTheme class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28552 72102866-910b-0410-8b05-ffd578937521
2009-08-26 22:55:41 +00:00
Richard Frith-MacDonald
452ffee567 Small theme update, plus documentation fixes and tweaks to avoid warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28538 72102866-910b-0410-8b05-ffd578937521
2009-08-25 07:46:37 +00:00
Fred Kiefer
56d4f7938d Add better support for font descriptor. Requires a recompile of the backend.
This should be enough for Emacs to compile with GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28525 72102866-910b-0410-8b05-ffd578937521
2009-08-23 21:39:28 +00:00
Gregory John Casamento
5d839b7f81 * Headers/Additions/GNUstepGUI/GSTheme.h: Add image parameter,
* Source/GSThemeDrawing.m: Add image parameter.   Correctly
	handle disabled buttons.
	* Source/NSButtonCell.m: Change to use new signature.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28523 72102866-910b-0410-8b05-ffd578937521
2009-08-23 18:24:34 +00:00
Gregory John Casamento
bc95107253 * Headers/Additions/GNUstepGUI/GSTheme.h: Added new method declaration
for drawButtonCell:...
	* Source/GSThemeDrawing.m: Added implementation for new method.  The
	purpose of the method is to allow the theme to override images with
	native images which may be theme dependent.
	* Source/NSButtonCell.m: Use the new method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28522 72102866-910b-0410-8b05-ffd578937521
2009-08-23 18:07:39 +00:00
Stefan Bidigaray
54e2773b7f NSSound reimplementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28511 72102866-910b-0410-8b05-ffd578937521
2009-08-23 03:37:03 +00:00
Gregory John Casamento
b6789caaeb * Headers/Additions/GNUstepGUI/GSTheme.h: Add methods for drawing
stepper cell here.
	* Source/GSThemeDrawing.m: Implementations for stepper cell functions.
	* Source/NSStepperCell.m: Use new stepper cell functions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28510 72102866-910b-0410-8b05-ffd578937521
2009-08-22 23:50:14 +00:00
David Chisnall
f36a988c07 Fixed some undeclared selectors flagged by clang.
GNUstep-gui now builds correctly with clang!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28459 72102866-910b-0410-8b05-ffd578937521
2009-08-15 21:04:08 +00:00
Fred Kiefer
8603ae06ae Some more cleanup of the NSToolbarItem code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28438 72102866-910b-0410-8b05-ffd578937521
2009-08-04 20:12:35 +00:00
Gregory John Casamento
41e5c2bf3d * Headers/AppKit/NSWindow.h
* Source/NSApplication.m
	* Source/NSWindow.m: Added ivar for attached sheet back.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28433 72102866-910b-0410-8b05-ffd578937521
2009-08-02 14:16:13 +00:00
Gregory John Casamento
3a16583dcb * Headers/AppKit/NSWindow.h: Comment out _attachedSheet ivar.
* Source/NSAlert.m: Change code to use hightlightWithLevel: method
	in resetWindow method.
	* Source/NSApplication.m: Stub out setAttachedSheet method.
	* Source/NSWindow.m: Remove new ivar for next release and stub out
	attachedSheet method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28415 72102866-910b-0410-8b05-ffd578937521
2009-07-27 16:31:32 +00:00
Fred Kiefer
519598ef24 Small fixes for font descriptor handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28412 72102866-910b-0410-8b05-ffd578937521
2009-07-26 21:38:35 +00:00
Gregory John Casamento
d221178290 Correct mispelling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28403 72102866-910b-0410-8b05-ffd578937521
2009-07-21 19:04:10 +00:00