Commit graph

3823 commits

Author SHA1 Message Date
Xavier Glattard
0b148d2db8 Fix thread locking/unlocking without C99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25146 72102866-910b-0410-8b05-ffd578937521
2007-05-12 15:52:45 +00:00
Riccardo Mottola
ecaea6d777 removed some C99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25137 72102866-910b-0410-8b05-ffd578937521
2007-05-10 20:25:15 +00:00
Riccardo Mottola
b0c18f717c removed some C99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25136 72102866-910b-0410-8b05-ffd578937521
2007-05-10 20:19:07 +00:00
Riccardo Mottola
53d519dbbc removed some C99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25135 72102866-910b-0410-8b05-ffd578937521
2007-05-10 20:10:43 +00:00
Richard Frith-MacDonald
3c63d253cf Simplification of messy nlocking code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25134 72102866-910b-0410-8b05-ffd578937521
2007-05-10 15:41:54 +00:00
Richard Frith-MacDonald
daa056545a Small fixups and comments added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25131 72102866-910b-0410-8b05-ffd578937521
2007-05-10 10:44:39 +00:00
Riccardo Mottola
b2d3176408 removed some C99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25130 72102866-910b-0410-8b05-ffd578937521
2007-05-08 21:09:37 +00:00
Fred Kiefer
150f58a492 Just white space clean-up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25094 72102866-910b-0410-8b05-ffd578937521
2007-04-29 11:29:33 +00:00
Fred Kiefer
3b4aca0261 Added dragging patch by Yen-Ju Chen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25092 72102866-910b-0410-8b05-ffd578937521
2007-04-27 18:54:58 +00:00
Fred Kiefer
cc412d3a43 Set the background colour of the text object and make it draw its
background.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25091 72102866-910b-0410-8b05-ffd578937521
2007-04-27 14:15:39 +00:00
Fred Kiefer
01e550219a Corrected handling of _allowsEmptySelection in noteNumberOfRowsChanged.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25070 72102866-910b-0410-8b05-ffd578937521
2007-04-24 19:09:10 +00:00
Adam Fedor
c63cdce5c1 Version 0.12.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25037 72102866-910b-0410-8b05-ffd578937521
2007-04-13 20:59:36 +00:00
Xavier Glattard
3f9af34a0f Implements threaded and blocking NSAnimation modes and some other changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24998 72102866-910b-0410-8b05-ffd578937521
2007-04-12 17:01:23 +00:00
Richard Frith-MacDonald
f7850daa26 Compensate for bugfix in NSAffineTransform ... not sure this is correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24988 72102866-910b-0410-8b05-ffd578937521
2007-04-11 17:46:12 +00:00
Gregory John Casamento
c423ef6b51 * Source/NSAnimation.m: Removed static INLINE declaration from
nsanimation_progressMarkSorter function so that it will compile
	properly on versions of gcc prior to 4.1.2.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24972 72102866-910b-0410-8b05-ffd578937521
2007-04-10 02:42:47 +00:00
Fred Kiefer
e3a40d5811 Small error corrections for printing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24971 72102866-910b-0410-8b05-ffd578937521
2007-04-10 00:30:53 +00:00
Xavier Glattard
8ae3830600 Implementation of NSAnimation and NSViewAnimation classes :
- only NSAnimationNonBlocking mode is implemented
- runLoopModesForAnimating is not used
GSAnimator class is in alpha stage : interface may be changed


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24968 72102866-910b-0410-8b05-ffd578937521
2007-04-05 08:52:05 +00:00
Fred Kiefer
7488b299c7 GUI part of the graphics context rewrite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24966 72102866-910b-0410-8b05-ffd578937521
2007-04-04 14:33:39 +00:00
Richard Frith-MacDonald
ba86814bba Fixed accidentally deleted line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24963 72102866-910b-0410-8b05-ffd578937521
2007-04-03 06:30:50 +00:00
Richard Frith-MacDonald
3789a069f6 Fixes for bug #18494
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24962 72102866-910b-0410-8b05-ffd578937521
2007-04-02 12:53:54 +00:00
Richard Frith-MacDonald
561b06efe1 Add attributed string constants for Riccardo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24932 72102866-910b-0410-8b05-ffd578937521
2007-03-26 13:37:33 +00:00
Richard Frith-MacDonald
efa7803d40 simplify by removing low level code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24929 72102866-910b-0410-8b05-ffd578937521
2007-03-23 23:28:05 +00:00
Fred Kiefer
d00b0fcb89 Extract cell border drawing into helper method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24928 72102866-910b-0410-8b05-ffd578937521
2007-03-23 22:34:02 +00:00
Sergii Stoian
c77c8ab90b * Source/NSAlert.m: (-_initWithoutGModel): Set selected text
background color to [NSColor controlLightHighlightColor].



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24927 72102866-910b-0410-8b05-ffd578937521
2007-03-23 11:33:37 +00:00
Fred Kiefer
a7bb06a38a Replace deprecated calls to NSAffineTransform
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24925 72102866-910b-0410-8b05-ffd578937521
2007-03-23 11:03:00 +00:00
Fred Kiefer
77332bb584 Corrected and cleaned up focus ring drawing for cell classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24924 72102866-910b-0410-8b05-ffd578937521
2007-03-22 17:47:56 +00:00
Richard Frith-MacDonald
a71c8a1b9a Affine transfor cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24922 72102866-910b-0410-8b05-ffd578937521
2007-03-22 16:41:12 +00:00
Fred Kiefer
a7a164262c Correct the implementation of the method gState and moved code a bit to
avoid warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24910 72102866-910b-0410-8b05-ffd578937521
2007-03-20 23:47:27 +00:00
Fred Kiefer
dfe4cd8073 Use correct graphic context for print operations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24898 72102866-910b-0410-8b05-ffd578937521
2007-03-19 13:25:46 +00:00
Fred Kiefer
b6fd63f8bd Improve handling of rotated bounds.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24893 72102866-910b-0410-8b05-ffd578937521
2007-03-17 22:14:55 +00:00
Nicola Pero
21ab0deca9 Uninstall compatibility headers upon uninstall
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24886 72102866-910b-0410-8b05-ffd578937521
2007-03-17 16:37:48 +00:00
Xavier Glattard
36e8d2a357 Add NSAnimation class from mySTEP
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24878 72102866-910b-0410-8b05-ffd578937521
2007-03-15 20:33:36 +00:00
Fred Kiefer
7d1631a845 Set _isIdentity for all methods changing the matrix of the affine
transform.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24854 72102866-910b-0410-8b05-ffd578937521
2007-03-12 21:20:38 +00:00
Fred Kiefer
b7cb6503ee Different patches by Andreas Höschler <ahoesch@smartsoft.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24846 72102866-910b-0410-8b05-ffd578937521
2007-03-11 17:07:44 +00:00
Nicola Pero
df2318e0d9 Use versioned resource in gnustep-gui. Lots of bundles and resources still unversioned though
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24844 72102866-910b-0410-8b05-ffd578937521
2007-03-09 23:33:58 +00:00
Sergii Stoian
139831b3fb * Source/GSSlideView.m: (- _slideFrom:to:): Calcuate number of
steps wrt image size.
* Source/GSDragView.m: (- slideDraggedImageTo:): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24831 72102866-910b-0410-8b05-ffd578937521
2007-03-09 00:21:52 +00:00
Fred Kiefer
816c4db82c Move view specifc flags to NSView.h and ad new flag for NSWindow. This
change requires a complete re-compile of GNUstep and all applications!!!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24821 72102866-910b-0410-8b05-ffd578937521
2007-03-08 12:52:01 +00:00
Fred Kiefer
210c327204 When requesting a tiff representation for an image where there is no
bitmap representation, create one. Idea by Renaud Molla
<renaud.molla@wanadoo.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24820 72102866-910b-0410-8b05-ffd578937521
2007-03-08 09:35:09 +00:00
Fred Kiefer
f8969f62c9 Add remaining file type change by Wolfgang Lux.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24808 72102866-910b-0410-8b05-ffd578937521
2007-03-07 23:31:07 +00:00
Fred Kiefer
4df49881f2 Change values for NSTabViewType enumerator.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24806 72102866-910b-0410-8b05-ffd578937521
2007-03-07 23:15:07 +00:00
Fred Kiefer
a0c83e671f Document print patch by Wolfgang Lux.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24800 72102866-910b-0410-8b05-ffd578937521
2007-03-07 14:38:51 +00:00
Nicola Pero
58edc1e5db Added comments about puzzling [NSFontManager -delegate] which is never used anywhere. Indented a few lines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24792 72102866-910b-0410-8b05-ffd578937521
2007-03-07 02:47:11 +00:00
Richard Frith-MacDonald
ac18631d40 use gpbs auto stop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24790 72102866-910b-0410-8b05-ffd578937521
2007-03-06 21:46:16 +00:00
Nicola Pero
650349f4e3 Make the services filesystem lookup code a bit more robust
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24786 72102866-910b-0410-8b05-ffd578937521
2007-03-06 18:22:14 +00:00
Fred Kiefer
9c36a184cc New MacOS 10.4 methods for NSView plus some clean up and corrections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24783 72102866-910b-0410-8b05-ffd578937521
2007-03-06 16:11:45 +00:00
Richard Frith-MacDonald
2e58ecd05e Fixup code locatting user domain library directory.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24777 72102866-910b-0410-8b05-ffd578937521
2007-03-06 06:17:14 +00:00
Richard Frith-MacDonald
4c3b12c83a Move NSSpellServer to base for macosx compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24760 72102866-910b-0410-8b05-ffd578937521
2007-03-04 15:28:58 +00:00
Gregory John Casamento
9194d2c50f 2007-03-03 14:51-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSDocument.m: Added change suggested by Wolfgang Lux.  This
        corrects a potential mismatch between the document type and the type
        specified in the panel.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24758 72102866-910b-0410-8b05-ffd578937521
2007-03-03 19:53:23 +00:00
Fred Kiefer
3a4a94238e Add scroll page up and down methods to NSTextView and NSScrollView.
Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24732 72102866-910b-0410-8b05-ffd578937521
2007-02-28 22:10:47 +00:00
Fred Kiefer
d4fe1a2399 Add support to auto hide scrollers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24730 72102866-910b-0410-8b05-ffd578937521
2007-02-28 17:53:43 +00:00
Fred Kiefer
e0441cbcf6 Clean up NSClipView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24711 72102866-910b-0410-8b05-ffd578937521
2007-02-27 18:08:11 +00:00
Nicola Pero
f9e79710f5 Updated makefile corner case for custom filesystem layouts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24707 72102866-910b-0410-8b05-ffd578937521
2007-02-27 14:14:13 +00:00
Nicola Pero
351179eec7 Indented a couple of lines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24705 72102866-910b-0410-8b05-ffd578937521
2007-02-27 12:26:47 +00:00
Nicola Pero
3ede4dc70b Indented a couple of lines and added a FIXME comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24704 72102866-910b-0410-8b05-ffd578937521
2007-02-27 12:26:24 +00:00
Fred Kiefer
f6edff004f Initialise _selected_item. Patch by Wolfgang Lux
<wolfgang.lux@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24698 72102866-910b-0410-8b05-ffd578937521
2007-02-27 10:47:52 +00:00
Richard Frith-MacDonald
701853d407 bugfix for #13564
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24697 72102866-910b-0410-8b05-ffd578937521
2007-02-27 06:07:01 +00:00
Matt Rice
7c77ac64a1 * Source/NSAlert.m (-_initWithoutGModel): Add missing nil
at end of call to -dictionaryWithObjectsAndKeys:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24685 72102866-910b-0410-8b05-ffd578937521
2007-02-22 23:59:45 +00:00
Sergii Stoian
4cef45fd98 * Source/NSAlert.m: (-_initWithoutGModel): Set selected text
background color to white. Now we can see selection of message text.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24681 72102866-910b-0410-8b05-ffd578937521
2007-02-21 23:54:12 +00:00
Sergii Stoian
a4fba19c11 * Source/NSLayoutManager.m: (-drawBackgroundForGlyphRange:atPoint):
Use the text view's selected text attributes. Remove TODO.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24680 72102866-910b-0410-8b05-ffd578937521
2007-02-21 23:47:58 +00:00
Sergii Stoian
91c57aed58 Source/NSWindow.m: (_lossOfKeyOrMainWindow): Add sanity checks. Optimize.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24679 72102866-910b-0410-8b05-ffd578937521
2007-02-21 23:18:01 +00:00
Sergii Stoian
bf41e31a34 Source/NSAlert.m: Forgot to commit change of button style.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24678 72102866-910b-0410-8b05-ffd578937521
2007-02-21 16:19:59 +00:00
Sergii Stoian
c6be514817 Source/NSAlert.m: little fix for previous commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24676 72102866-910b-0410-8b05-ffd578937521
2007-02-21 13:29:18 +00:00
Sergii Stoian
80a618c968 Source/NSAlert.m: (_initWithoutGModel): Removed setting of buttons style.
(_makeButtonWithRect:): Change style of button from NSMomentaryPushButton to
NSMomentaryPushInButton.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24675 72102866-910b-0410-8b05-ffd578937521
2007-02-21 13:28:23 +00:00
Sergii Stoian
e1575a4206 Source/NSAlert.m: Revert my last change regarding icon dimming.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24674 72102866-910b-0410-8b05-ffd578937521
2007-02-21 13:20:06 +00:00
Sergii Stoian
572f5075b3 * Source/NSAlert.m: (-_initWithoutGModel):
Make buttons refuse first responder to avoid drawing
dashed frame.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24671 72102866-910b-0410-8b05-ffd578937521
2007-02-21 00:46:01 +00:00
Sergii Stoian
83b4049ddf * Source/NSAlert.m: (-_initWithoutGModel): Disable dimming of
panel image. Change highlinting mask of alternate and other
  buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24670 72102866-910b-0410-8b05-ffd578937521
2007-02-21 00:38:44 +00:00
Fred Kiefer
5f887135f2 Improve drawing with themes and cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24669 72102866-910b-0410-8b05-ffd578937521
2007-02-20 22:04:45 +00:00
Eric Sersale
0704d03784 * Source/NSAlert.m: (-_initWithoutGModel): added [setImageDimsWhenDisabled: NO} to not show the application icon dimmed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24656 72102866-910b-0410-8b05-ffd578937521
2007-02-19 19:13:33 +00:00
Fred Kiefer
d71411ee44 No special handling for non-flipped subclasses.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24654 72102866-910b-0410-8b05-ffd578937521
2007-02-19 16:51:25 +00:00
Fred Kiefer
21542d5c9c Workaround for bug #19031.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24644 72102866-910b-0410-8b05-ffd578937521
2007-02-18 19:49:47 +00:00
Richard Frith-MacDonald
0bf2d2fb4d Fix theme panel problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24602 72102866-910b-0410-8b05-ffd578937521
2007-02-16 12:05:36 +00:00
Richard Frith-MacDonald
b4441a1798 Minor menu adjustments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24601 72102866-910b-0410-8b05-ffd578937521
2007-02-16 11:33:53 +00:00
Sergii Stoian
871735a3a6 * Source/NSTextView.m:
(drawRect:): Draw insertion point using _drawInsertionPointNow
ivar. Cleanup code.
(_blink:): Enable disabled insertion point blinking code.
(updateInsertionPointStateAndRestartTimer:): Implement insertion 
point blinking. Removed TODO.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24594 72102866-910b-0410-8b05-ffd578937521
2007-02-16 01:35:22 +00:00
Sergii Stoian
4b9e32d057 NSLayoutManager
(insertionPointRectForCharacterIndex:inTextContainer:): Remove
insertion point rectangle correction.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24572 72102866-910b-0410-8b05-ffd578937521
2007-02-14 17:54:00 +00:00
Sergii Stoian
f8cc62e978 (_insertionPointRectForCharacterIndex:textContainer:): Use
default font height for insertion point height if there is
no characters.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24571 72102866-910b-0410-8b05-ffd578937521
2007-02-14 17:42:07 +00:00
Sergii Stoian
02beced9a5 (menuBarHeight): Fix calculation. Set minimum height to 22.
(setFont:): Fix calculation default cell size.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24570 72102866-910b-0410-8b05-ffd578937521
2007-02-14 17:23:59 +00:00
Nicola Pero
f47b4c1754 Update for new gnustep-make
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24550 72102866-910b-0410-8b05-ffd578937521
2007-02-14 12:13:46 +00:00
Adam Fedor
3f70810790 * TextConverters/RTF/GNUmakefile.preamble: Add BUNDLE_LIBS.
* Source/NSImage.m: Move documentation from here.
* Header/AppKit/NSImage.h: To here.
* Headers/AppKit/NSImageRep.h, : Add documentation. (patch #5714).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24495 72102866-910b-0410-8b05-ffd578937521
2007-02-10 03:45:22 +00:00
Fred Kiefer
ca4bba22ab Install header NSKeyValueBinding.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24492 72102866-910b-0410-8b05-ffd578937521
2007-02-09 09:39:43 +00:00
Fred Kiefer
98a1e3d934 Added NSLevelIndicator, code by Nikolaus Schaller <hns@computer.org>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24489 72102866-910b-0410-8b05-ffd578937521
2007-02-07 15:43:39 +00:00
Matt Rice
ac14777bba * Source/NSBrowser.m (-doClick:): Don't reselect the selected cells.
Fixes bug #18881
        * Source/NSMatrix.m (-_selectPreviousSelectableCellBeforeRow:column):
        Update _selectedCells for the new selection.
        (-_selectNextSelectableCellAfterRow:column:):
        Ditto.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24483 72102866-910b-0410-8b05-ffd578937521
2007-02-06 10:13:43 +00:00
Matt Rice
7030dbfbb9 * Source/NSTableView.m (-_numRows): New quasi private method.
(-noteNumberOfRowsChanged:): Call _numRows instead of data source
        method.
        * Source/NSOutlineView.m (-noteNumberOfRowsChanged:): Don't override
        supers.
        (-_numRows): Implement.
        (-collapseItem:collapseChildren:): Remove use of _selectedObjects.
        (-expandItem:expandChildren:): Ditto.
        (-_removeChildren:): Ditto.
        (-initWithFrame:): Don't initialize _selectedObjects.
        (-initWithCoder:): Ditto.
        * Headers/AppKit/NSOutlineView.h: Mark _selectedObjects as unused.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24478 72102866-910b-0410-8b05-ffd578937521
2007-02-06 01:07:44 +00:00
Matt Rice
81252d87b5 * Source/NSOutlineView (-mouseDown:): Check item expandability before
expanding or collapsing.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24477 72102866-910b-0410-8b05-ffd578937521
2007-02-05 18:06:03 +00:00
Fred Kiefer
3df40fcbc7 Add Mac OS 10.3 methods and ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24470 72102866-910b-0410-8b05-ffd578937521
2007-02-05 11:01:03 +00:00
Matt Rice
1c2821470e * Source/NSTableView (-mouseDown:): Release oldSelectedRows.
Mark done as yes instead of returning early, and avoid sending action
        multiple times.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24469 72102866-910b-0410-8b05-ffd578937521
2007-02-05 08:04:10 +00:00
Matt Rice
2d12498c2e * Source/NSTableView (-mouseDown:): Compute the selection immediately
instead of at the end of the loop.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24468 72102866-910b-0410-8b05-ffd578937521
2007-02-05 06:15:42 +00:00
Richard Frith-MacDonald
a39fcf72a5 minor dragging offset fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24466 72102866-910b-0410-8b05-ffd578937521
2007-02-04 13:00:15 +00:00
Matt Rice
16fcaeab83 * Source/NSTableView.m (-mouseDown:): Return early after tracking a
cell which prefersTrackingUntilMouseUp.
        * Source/NSPopUpButtonCell.m (+prefersTrackingUntilMouseUp:): Return
        yes.
        (-trackMouse:inRect:ofView:untilMouseUp:): Return yes or no
        depending on whether the mouse went up inside the menu or not.
        Fixes bug #18946



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24465 72102866-910b-0410-8b05-ffd578937521
2007-02-04 12:53:49 +00:00
Richard Frith-MacDonald
5dcabf4505 Add stubs for more font info.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24443 72102866-910b-0410-8b05-ffd578937521
2007-01-31 14:36:42 +00:00
Fred Kiefer
eb5e01cf4f Revert change to _setupTextWithFrame:..., now we again use always a clip
view, but with a different size, depending if the text should be
scrollable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24433 72102866-910b-0410-8b05-ffd578937521
2007-01-30 13:39:57 +00:00
Matt Rice
0a9783724b * Source/NSTableView.m: Revert previous patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24431 72102866-910b-0410-8b05-ffd578937521
2007-01-30 03:37:11 +00:00
Matt Rice
c222792abd * Source/NSTableView.m (-textDidEndEditing:): Add missing break
to previous commit.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24426 72102866-910b-0410-8b05-ffd578937521
2007-01-28 21:00:11 +00:00
Matt Rice
a4eddcb158 * Source/NSTableView.m (-textDidEndEditing:): Handle
NSIllegalTextMovement.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24425 72102866-910b-0410-8b05-ffd578937521
2007-01-28 18:20:54 +00:00
Fred Kiefer
ff86a899ad Removed duplicate ivar _backgroundColor and started to clean up code in
this file. Better support for key equivalent display.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24420 72102866-910b-0410-8b05-ffd578937521
2007-01-27 14:15:20 +00:00
Fred Kiefer
0530b571da Draw round and circular bezel borders for button cells. Code by Nikolaus
Schaller <hns@computer.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24415 72102866-910b-0410-8b05-ffd578937521
2007-01-25 13:11:49 +00:00
Fred Kiefer
91dccc4280 Mark for redisplay when selecting or deselecting the whole table.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24403 72102866-910b-0410-8b05-ffd578937521
2007-01-23 15:46:42 +00:00
Fred Kiefer
3ed672d301 Documentation patch by <stefanbidi@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24401 72102866-910b-0410-8b05-ffd578937521
2007-01-23 14:44:35 +00:00
Fred Kiefer
e344345023 Add MaxOS 10.4 methods and required ivars to NSButtonCell, implemented
then and use this methods. Also adjusted subclasses tothis changes.
Split off theming code for buttons into two methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24400 72102866-910b-0410-8b05-ffd578937521
2007-01-23 14:17:02 +00:00
Matt Rice
3aa639828d * Source/NSWindow.m (-_lossOfKeyOrMainWindow): Use GSOrderedWindows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24399 72102866-910b-0410-8b05-ffd578937521
2007-01-23 13:16:00 +00:00
Sergii Stoian
be6dee6f99 * Source/GSTheme.m (-drawButton:view:style:state:): Call
[drawButton:withClip:] instead of [drawGreyBezel:withClip:] if
  state is highlighted (e.g. scroller buttons).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24388 72102866-910b-0410-8b05-ffd578937521
2007-01-19 20:13:04 +00:00
Fred Kiefer
8abc5f845a Handle the keyboard selection of first entry in popup. Patch by Phillipe
Roussel <p.o.roussel@free.fr>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24386 72102866-910b-0410-8b05-ffd578937521
2007-01-19 13:01:38 +00:00
Richard Frith-MacDonald
30fd0153be fix include path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24383 72102866-910b-0410-8b05-ffd578937521
2007-01-19 08:37:42 +00:00
Adam Fedor
b7aff57102 Check for invalid image size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24381 72102866-910b-0410-8b05-ffd578937521
2007-01-18 20:28:50 +00:00
Fred Kiefer
ebc0de97f3 Added MacOSX 10.4 methods to NSControl and reworked the whole cell
editing mechanism.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24380 72102866-910b-0410-8b05-ffd578937521
2007-01-18 17:24:33 +00:00
Fred Kiefer
34b0abf4d0 Added MacOS 10.4 methods for NSDocument, NSDocumentController,
NSPrintOperation, NSResponder and NSCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24378 72102866-910b-0410-8b05-ffd578937521
2007-01-17 12:09:41 +00:00
Richard Frith-MacDonald
bc34ad5f62 Document some typedefs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24351 72102866-910b-0410-8b05-ffd578937521
2007-01-15 10:18:24 +00:00
Matt Rice
88facd444e * Source/NSMatrix.m (_selectCell:atRow:column:): Call setNextState
when in Track or Highlight mode.
        (-keyDown:): Call -selectCellAtRow:column: in Track or Highlight mode.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24345 72102866-910b-0410-8b05-ffd578937521
2007-01-14 00:40:05 +00:00
Matt Rice
a61f6e5479 * Source/NSTableView.m (rectOfColumn:): Use the height of the rows,
not the bounds.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24290 72102866-910b-0410-8b05-ffd578937521
2006-12-28 23:18:44 +00:00
Matt Rice
24f6989433 * Source/NSSecureTextFieldCell (-drawInteriorWithFrame:): Draw
disabled cell with controlBackgroundColor.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24289 72102866-910b-0410-8b05-ffd578937521
2006-12-28 21:33:22 +00:00
Matt Rice
d6fb03e8c5 * Source/NSTextFieldCell.m (-drawInteriorWithFrame:): Draw disabled
cell background with controlBackgroundColor.
        * Source/NSCell.m (-drawInteriorWithFrame:): Draw disabled cell text
        with disabledControlTextColor.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24288 72102866-910b-0410-8b05-ffd578937521
2006-12-28 21:26:10 +00:00
Richard Frith-MacDonald
920dd174a8 Minor theming updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24268 72102866-910b-0410-8b05-ffd578937521
2006-12-27 11:35:48 +00:00
Fred Kiefer
a24c80f048 Added a basic implementation for undo in NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24232 72102866-910b-0410-8b05-ffd578937521
2006-12-24 09:37:16 +00:00
Fred Kiefer
2eaf22ccb4 dded basic support for the controller classes from Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24218 72102866-910b-0410-8b05-ffd578937521
2006-12-19 18:35:16 +00:00
Richard Frith-MacDonald
1eefe4bf31 Patch to left alight long (multi-line) messages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24213 72102866-910b-0410-8b05-ffd578937521
2006-12-18 15:16:14 +00:00
Mark Tracy
311911e218 Autogsdoc comments for Source/NSBitmapImageRep.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24196 72102866-910b-0410-8b05-ffd578937521
2006-12-10 09:46:21 +00:00
Richard Frith-MacDonald
f92574fca1 fix for bug #18483
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24192 72102866-910b-0410-8b05-ffd578937521
2006-12-08 08:56:38 +00:00
Matt Rice
0c74ad4ec6 * Source/NSTextView.m: Don't update the selection when dragging a
NSColorPboardType.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24191 72102866-910b-0410-8b05-ffd578937521
2006-12-06 23:58:36 +00:00
Matt Rice
9e50ac657d * Source/NSWindowController.m (_windowDidLoad:): Pass an NSZeroPoint to
cascadeTopLeftFromPoint: on the first call.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24157 72102866-910b-0410-8b05-ffd578937521
2006-11-24 13:58:37 +00:00
Matt Rice
640612f030 * Source/NSTableView.m (_trackCellAtColumn:row:withEvent:):
Remove check for column editablity.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24152 72102866-910b-0410-8b05-ffd578937521
2006-11-23 11:57:03 +00:00
Matt Rice
8e09c9de77 * Source/NSWindow.m (sendEvent:): Fix dragging for views which accept
dragging with subviews which accept dragging.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24143 72102866-910b-0410-8b05-ffd578937521
2006-11-21 13:46:18 +00:00
Mark Tracy
9f633f60f6 Change Log
Mon. 20-Nov-2006 Mark Tracy <tracy454 at concentric dot net>
Many changes related to bitmap images

1.  NSBitmapImateRep attribute global strings were not defined
    Fix: add definitions to externs.h, and declarations to NSBitmapImageRep.h
    Comment: Two strings defined in Cocoa were commented out: NSImageColorSyncData
      is proprietary to Apple, and NSImageEXIFData has no support elsewhere in
      GNUstep. I propose adding GSImageICCProfileData if and when color management
      is added to GNUstep.

2.  LZW compression in TIFF was disabled for lack of a test of its availability
    Fix: Implement NSTiffIsCodecConfigured(codec) in tiff.m
    Comment: As of libtiff-3.7.0, there is a function call in the API to test
      availability at runtime. For libtiff-3.6.0 (earlier?) there are macros
      #defined in tiffconf.h. The implementation check the library version at
      compile time, and uses one of the two methods. I have not tested the 
      second method for lack of an installation of an old libtiff.

3.  -canCompressUsing: relied on a static list of capabilities
    Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
    Comment: The static list could be wrong, as it was on my system. Also
      eliminate the supports_lzw_compression flag.

4.  +getTIFFCompressionTypes:count: relied on a static list of compressors.
    Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
    Comment: Compares GNUstep supported compressors against actual availability.
      Also change the private instance methods _localFromCompressionType and 
      _compressionTypeFromLocal to private class methods so that they can be used
      in -initWithTIFFImage:number: and -TIFFRepresentationUsingCompression:factor:
      and +getTIFFCompressionTypes:count: This is probably a clumsy implementation
      but it works.

5.  -setProperty:toValue: and -valueForProperty: were not implemented
    Fix: Add a new instance variable NSMutableDictionary * _properties to 
      NSBitmapImageRep.h and implemented accessors in NSBitmapImageRep.m. Patch
      -_initFromTIFFImage to set compression type and factor in _properties.
    Comment: This feature is used to pass options to and from JPEG, PNG, TIFF, and
      GIF in Cocoa, although the docs are kind of vague. In one case the Cocoa docs
      said the properties were set when reading a TIFF, but the implementation
      didn't; I chose to implement the docs. Cocoa does use properties when 
      exporting bitmaps, so I implemented that.

6.  Checked and updated NSBitmapImageFileType in NSBitmapImageRep.h
    Fix: confirmed the enumeration values against Cocoa, and added 
      NSJPEG2000FileType = 5
    Comment: JPEG-2000 is not implemented, just reserved a space for it.

7.  -representationUsingType:properties: was not implemented
    Fix: Implement export of TIFF, JPEG, GIF and PNG in NSBitmapImage.m
    Comment: See the change notes for JPEG, GIF, and PNG for more. BMP and JPEG-2000
      are not implemented; they just log a message to that effect. As apparently
      Cocoa does it this way, if you pass nil for properties, it falls back to 
      the internal _properties, and if that is empty, there are some safe defaults.

8.  +representationfOfImageRepsInArray:UsingType:properties: was not implemented
    Fix: Partially implement in NSBitmapImageRep.m
    Comment: I just stole the incomplete code from
      +TIFFRepresentationOfImageRepsInArray: since I have yet to find an explanation
      of how this really ought to work.

9.  JPEG export didn't handle alpha channel, properties or errors.
    Fix: Add -_JPEGRepresentationWithProperties:errorMessage: to
      NSBitmapImageRep+JPEG.h and greatly rework Nicolas Roard's code in
      NSBitmapImageRep+JPEG.m. Patch -_initBitmapFromJPEG:errorMessage to
      write properties.
    Comment: Major rewrite of Nicolas Roard's JPEG export code. 
    To do: Support for planar bitmaps and support for colorspaces other than
      RGB(A).

10. PNG export not implemented
    Fix: Add -_PNGRepresentationWithProperties: to
      NSBitmapImageRep+PNG.h and implement NSBitmapImageRep+PNG.m
    Comment: No support yet for planar bitmaps. Only supports 
      NS*WhiteColorSpace and NS*RGBColorSpace. Does support alpha. Support for
      reading and writing NSImageGamma is experimental. In keeping with Cocoa,
      the property NSImageGamma ranges from 0.0 to 1.0; representing the range
      of minimum supported gamma to maximum supported gamma, in this case 1.0
      to 2.5. This is in contrast to GNUstep where by convention the property
      would range from 0.0 to 255.0.
    To do: proper error message support

11. GIF export not implemented
    Fix: Add -_GIFRepresentationWithPropterties:errorMessage: to
      NSBitmapImageRep+GIF.h and implement in NSBitmapImageRep+GIF.m
    Comments: Supports only RGB(A) colorspaces, but ignores alpha. Supports
      planar or interleaved bitmaps. Supports properties NSImageRGBColorTable.

12. -_initBitmapFromGIF:errorMessage: did not support transparency
    Fix: Don't ignore control blocks in NSBitmapImageRep+GIF.m; check for
      transparency.
    Comment: If a transparent color is found, it adds an alpha channel to the 
      bitmap. Also, save the color table in properties.

13. -_initBitmapFromGIF:errorMessage: would show the last image in a 
      multi-image GIF file
    Fix: Break the parsing loop after the first image in NSBitmapImageRep+GIF.m
    Comment: Also check for frame duration, and set that property. There is not
      yet any support for animated GIF. This will require some additional 
      infrastructure, and I won't do it unless asked.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24140 72102866-910b-0410-8b05-ffd578937521
2006-11-21 06:36:26 +00:00
Matt Rice
abfea70cf8 * Source/NSTextView_actions.m: Change cursor movement implementations
when collapsing a selection.
        * Source/NSParagraphStyle.m (-setBaseWritingDirection:): Add comment.
        * Source/NSAttributedString: Add and remove characters in the word
        break character set.
        * KeyBindings/DefaultKeyBindings.dict: Change control-f and control-b
        to moveForward: and moveBackward:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24136 72102866-910b-0410-8b05-ffd578937521
2006-11-20 16:20:15 +00:00
Richard Frith-MacDonald
8e6eaaac0f Move main part of affine transform code to base for MacOS-X compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24133 72102866-910b-0410-8b05-ffd578937521
2006-11-19 11:32:51 +00:00
Richard Frith-MacDonald
3900ae6fb7 Adjust to fix corner view for scroillers on right.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24128 72102866-910b-0410-8b05-ffd578937521
2006-11-18 14:56:09 +00:00
Richard Frith-MacDonald
dffc79cdfb Merge in some theming changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24120 72102866-910b-0410-8b05-ffd578937521
2006-11-17 08:54:20 +00:00
Nicola Pero
fb51fe62fe Updated to use GNUSTEP_INSTALLATION_DOMAIN instead of GNUSTEP_INSTALLATION_DIR; DESTDIR instead of INSTALL_ROOT_DIR; and fixed some makefile installation bugs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24094 72102866-910b-0410-8b05-ffd578937521
2006-11-15 16:59:32 +00:00
Matt Rice
4475b975b8 * Source/NSTableView.m (-noteNumberOfRowsChanged:): Post selection
is and did change notifications if changing the selected rows.
        * Source/NSSliderCell.m (-copyWithZone:): Make a little clearer.
        * Source/NSMatrix.m (-_rebuildLayoutAfterResize): Don't change the
        intercell spacing if not autosizing cells.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24080 72102866-910b-0410-8b05-ffd578937521
2006-11-13 05:23:24 +00:00
Matt Rice
586f972d12 * Source/NSSliderCell.m: Implement copyWithZone:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24075 72102866-910b-0410-8b05-ffd578937521
2006-11-11 18:11:21 +00:00
Matt Rice
84a0a59321 * Source/NSOutlineView.m: Handle rowAtPoint: returning -1.
* Source/NSTableView.m (drawRect:): Only call
        -highlightSelectionInClipRect: and -drawGridInClipRect: once.
        (-drawGridInClipRect:): Constrain the vertical grid line to the last
	 row drawn in the rect.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24071 72102866-910b-0410-8b05-ffd578937521
2006-11-10 19:12:32 +00:00
Matt Rice
86c8735342 * Source/NSTableView.m (rowAtPoint:): Return -1 if the point is under
the last row.
        (mouseDown:): Handle rowAtPoint: returning -1.
        (rectOfRows:): Ditto.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24070 72102866-910b-0410-8b05-ffd578937521
2006-11-10 17:05:20 +00:00
Matt Rice
edf055a980 * Source/NSTableView.m (mouseDown:): Rename some local variables
to be less ambiguous.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24068 72102866-910b-0410-8b05-ffd578937521
2006-11-10 14:35:31 +00:00
Matt Rice
1fcec7ffe9 * Headers/AppKit/NSTableView.h: Add ivar for
verticalMotionCanBeginDrag.
        * Source/NSTableView.m: Implement verticalMotionCanBeginDrag
        bump class version.
        * Source/NSTextView_actions.m: Fix method name from previous changes.
        * KeyBindings/DefaultKeyBindings.dict: Add new key bindings.
        * ChangeLog: Add to description of a previous change.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24067 72102866-910b-0410-8b05-ffd578937521
2006-11-10 13:40:28 +00:00
Matt Rice
affd41f5b1 * Source/NSTableView.m (selectContiguousRegion): Remove usage of
offsets.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24060 72102866-910b-0410-8b05-ffd578937521
2006-11-09 12:59:04 +00:00
Matt Rice
ab28e892bb * Source/NSTableView.m: Implement keyboard navigation/selection.
Fixes bug #11942.
        (-selectRow:byExtendingSelection:): Update _clickedRow.
        (-mouseDown:): Ditto.
        * Source/NSSlider.m (keyDown:): Call supers implementation if we don't
        use the key stroke.




git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24054 72102866-910b-0410-8b05-ffd578937521
2006-11-09 01:28:58 +00:00
Matt Rice
e2e8357e71 * Source/NSTableView.m: Whitespace changes to conform to coding
standards.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24049 72102866-910b-0410-8b05-ffd578937521
2006-11-07 10:46:10 +00:00
Matt Rice
55623d70f7 * Source/NSTableView.m (-mouseDown): Only call editWithFrame: from a
double click. Don't track cells from a mouse dragged.
        Add comments.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24048 72102866-910b-0410-8b05-ffd578937521
2006-11-07 10:26:57 +00:00
Matt Rice
9bf357a90c * Source/NSTextView_actions.m: Fix keyboard movement scrolling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24037 72102866-910b-0410-8b05-ffd578937521
2006-11-06 16:04:12 +00:00
Matt Rice
dc1e1120e0 * Source/NSTextView_actions.m: Remove hack from previous patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24036 72102866-910b-0410-8b05-ffd578937521
2006-11-06 15:30:44 +00:00
Richard Frith-MacDonald
45acf44de1 documentation cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24035 72102866-910b-0410-8b05-ffd578937521
2006-11-06 13:58:37 +00:00
Matt Rice
fc21139a69 * Source/NSTextView_actions.m: Implement some undocumented key
binding actions.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24033 72102866-910b-0410-8b05-ffd578937521
2006-11-06 10:56:48 +00:00
Matt Rice
ba8d729b8a * Source/NSTextView_actions.m:
* Source/NSOpenPanel.m:
        * Source/GSLayoutManager.m:
        * Source/NSLayoutManager.m:
        * Source/NSSavePanel.m:
        * Source/NSTextView.m:
        * Source/NSStringDrawing.m:
        * Headers/Additions/GNUstepGUI/GSLayoutManager_internal.h:
        * Headers/AppKit/NSTextView.h: Remove underscores from category names
        as they can confuse the debugger.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24032 72102866-910b-0410-8b05-ffd578937521
2006-11-06 10:19:20 +00:00
Matt Rice
49923f47c7 * Source/NSSlider.m (-keyDown:): Implement, Fixes bug #14000.
* Source/NSSliderCell.m (-trackMouse:...): Fix allows tick marks
        only mouse tracking.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24031 72102866-910b-0410-8b05-ffd578937521
2006-11-05 19:22:00 +00:00
Matt Rice
ef92c9d9b9 * Source/NSColorPanel.m: Implement -worksWhenModal:. Fixes bug #9417.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24030 72102866-910b-0410-8b05-ffd578937521
2006-11-05 11:13:29 +00:00
Matt Rice
a138f13d9c * Source/NSTableView (_editNextCellAfterRow:inColumn:):
Wrap around when number of rows is exceeded.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24019 72102866-910b-0410-8b05-ffd578937521
2006-11-03 09:44:05 +00:00
Richard Frith-MacDonald
47363b2182 merge in some theme branch changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24017 72102866-910b-0410-8b05-ffd578937521
2006-11-02 19:42:42 +00:00
Matt Rice
ece0182c72 * Source/NSTableView.m:
(-editColumn:row:withEvent:select:): Raise when passed an unselected
        row.
        (-textDidEndEditing:): Handle NSReturnTextMovement.
        (_editNextCellAfterRow:inColumn:): New private method.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24008 72102866-910b-0410-8b05-ffd578937521
2006-11-01 10:17:55 +00:00
Matt Rice
3d20848a26 * Source/NSTableView.m: Add new private methods.
(-mouseDown:): Reorganize and don't track cells until dragging
        has been ruled out.
        * Source/NSCell.m (trackMouse:inRect:ofView:untilMouseUp:):
        Handle events no longer in the queue.
        * Source/GSDragView.m: Change NSLog to NSDebugLLog.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24007 72102866-910b-0410-8b05-ffd578937521
2006-11-01 09:50:00 +00:00
Matt Rice
1a7c5c309c * Tools/gopen.m
*  Source/NSView.m
        *  Source/GSPDFPrintOperation.m
        *  Source/NSHelpManager.m
        *  Source/GSHelpManagerPanel.m: Add missing includes.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24006 72102866-910b-0410-8b05-ffd578937521
2006-10-31 13:38:00 +00:00
Richard Frith-MacDonald
12ffc72df9 Add missing include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24004 72102866-910b-0410-8b05-ffd578937521
2006-10-31 13:14:59 +00:00
Matt Rice
2436c6b7c5 * Source/NSComboBoxCell.m (validateSelection): Test for invalid row.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23999 72102866-910b-0410-8b05-ffd578937521
2006-10-30 20:25:50 +00:00
Adam Fedor
6ae514bf25 Partial fix for #16453
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23985 72102866-910b-0410-8b05-ffd578937521
2006-10-29 02:45:34 +00:00
Matt Rice
564a2e859b * Source/NSAlert.m: Add GSRunExceptionPanel function
and GSExceptionPanel class.
        * Headers/AppKit/NSPanel.h: Declare GSRunExceptionPanel.
        * Source/NSApplication.m (_NSAppKitUncaughtExceptionHandler):
        Use GSRunExceptionPanel.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23973 72102866-910b-0410-8b05-ffd578937521
2006-10-27 19:10:07 +00:00
Matt Rice
d1397ca777 * Source/NSTableView.m (-setFrame:,-setFrameSize:): Use
documentVisibleRect. Shrink if table is larger than needed height.
        fixes bug #18117.
        (-drawBackgroundInClipRect:): Draw the background.
        * Source/NSClipView.m (-documentVisibleRect:): Return the clip views
        visible rect converted to the document views coordinate system.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23972 72102866-910b-0410-8b05-ffd578937521
2006-10-27 17:48:54 +00:00
Matt Rice
37f70188f1 * Source/NSApplication.m (NSAppIcon -mouseDown:): Call unhide:
regardless of whether we're hidden or not.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23961 72102866-910b-0410-8b05-ffd578937521
2006-10-24 23:09:58 +00:00
Matt Rice
36e68226f8 * Source/NSTableView.m (-mouseDown:): Check for empty selection.
when adding to the current selection. Fixes bug #15261.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23945 72102866-910b-0410-8b05-ffd578937521
2006-10-22 18:26:31 +00:00
Matt Rice
a197607128 * Headers/AppKit/NSGraphics.h: Add GSOrderedWindows function.
* Source/NSApplication.m (NSAppIconView -mouseDown:): Use
        GSOrderedWindows.
        (NSApplication -deactivate): Ditto.
        (-hide:): Ditto.
        (-unhideWithoutActivation:): Ditto.
        (-makeWindowsPerform:inOrder): Ditto.
        (-orderedWindows:): Ditto.
        (-windowWillClose:): Ditto.
        * Source/GSDisplayServer.m: Implement -windowlist.
        * Source/NSWindow.m (NSCountWindowList,NSWindowList): Use 
	-windowlist.
        (GSOrderedWindows): Initial implementation.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23936 72102866-910b-0410-8b05-ffd578937521
2006-10-21 19:13:42 +00:00
Gregory John Casamento
c687a15b00 Minor indentation cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23932 72102866-910b-0410-8b05-ffd578937521
2006-10-21 15:41:51 +00:00
Gregory John Casamento
f4cd637e0d Correction for #bug9608 and bug#18073.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23931 72102866-910b-0410-8b05-ffd578937521
2006-10-21 15:34:16 +00:00
Gregory John Casamento
efcfc85f6b * Source/NSMenuItemCell.m: Correct menu highlighting issue
found by applying changes suggested by Jeff Teunissen.   This
        change causes the menu to use the correct text color when
        highlighted.


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


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23908 72102866-910b-0410-8b05-ffd578937521
2006-10-19 05:47:36 +00:00
Gregory John Casamento
a2cc8db82d * Source/NSFont.m: Apply slightly modified version of patch
from Jeff Teunissen deek@d2dc.net to setNSFont().  Setting
	a font should set its size.
	* Source/NSImage.m: Set the alpha on the background when printing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23894 72102866-910b-0410-8b05-ffd578937521
2006-10-17 01:00:47 +00:00
Richard Frith-MacDonald
c7aab12987 Scale drawing of tiles in matrix, for easier preview.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23888 72102866-910b-0410-8b05-ffd578937521
2006-10-16 08:50:37 +00:00
Richard Frith-MacDonald
b21c2bedd4 Fix error drawing matrix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23883 72102866-910b-0410-8b05-ffd578937521
2006-10-15 18:27:35 +00:00
Gregory John Casamento
3c63c09716 Applied patch given by Mark Tracy for printing improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23877 72102866-910b-0410-8b05-ffd578937521
2006-10-15 15:30:27 +00:00
Richard Frith-MacDonald
57435da7d5 tidyups and minor theme tiling updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23871 72102866-910b-0410-8b05-ffd578937521
2006-10-15 08:34:47 +00:00
Richard Frith-MacDonald
6ed7d47dae Improve current theme information display
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23858 72102866-910b-0410-8b05-ffd578937521
2006-10-12 17:14:26 +00:00
Richard Frith-MacDonald
4526afc00a Get drag position right
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23854 72102866-910b-0410-8b05-ffd578937521
2006-10-12 14:10:27 +00:00
Richard Frith-MacDonald
1995529b8a Tooltip rect handling improvments ... reasonable behavior when coordinates
of the view change


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23790 72102866-910b-0410-8b05-ffd578937521
2006-10-08 17:50:19 +00:00
Gregory John Casamento
4828fe82c3 * Source/GSNibCompatibility.m: Implement init in NSIBHelpConnector.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23787 72102866-910b-0410-8b05-ffd578937521
2006-10-07 14:20:53 +00:00
Gregory John Casamento
55c4004157 * Source/GSNibCompatibility.m: Implement establishConnection.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23786 72102866-910b-0410-8b05-ffd578937521
2006-10-07 14:17:29 +00:00
Gregory John Casamento
6a3e445d78 Slight reorg of file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23785 72102866-910b-0410-8b05-ffd578937521
2006-10-07 14:08:32 +00:00
Gregory John Casamento
b6d305f622 * Headers/Additions/GNUstepGUI/GSNibCompatibility.h: Declaration
for NSIBHelpConnector ivars and methods.
	* Source/GSNibCompatibility.m: Implemented NSIBHelpConnector.
	* Source/NSBundleAdditions.m: Added check to initWithCoder so that
	values aren't decoded, if there's no value in the coder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23784 72102866-910b-0410-8b05-ffd578937521
2006-10-07 14:03:50 +00:00
Richard Frith-MacDonald
0e6b15b3e9 polish behavior of tool tips and reduce meory footprint.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23777 72102866-910b-0410-8b05-ffd578937521
2006-10-06 16:00:46 +00:00
Richard Frith-MacDonald
ac3da2c4ca Make sure tooltip window starts off on screen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23756 72102866-910b-0410-8b05-ffd578937521
2006-10-04 13:36:56 +00:00
Eric Sersale
b9fd9f40ea * Source/NSView.m: In -setToolTip: sets the has_tooltips flag.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23754 72102866-910b-0410-8b05-ffd578937521
2006-10-04 11:32:51 +00:00
Richard Frith-MacDonald
f17b3f5143 minor tool tip tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23751 72102866-910b-0410-8b05-ffd578937521
2006-10-04 08:07:21 +00:00
Richard Frith-MacDonald
21e2ff8447 revert accidentally added change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23750 72102866-910b-0410-8b05-ffd578937521
2006-10-04 05:28:28 +00:00
Richard Frith-MacDonald
f07b4d16bd Add help key support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23749 72102866-910b-0410-8b05-ffd578937521
2006-10-04 05:26:47 +00:00
Richard Frith-MacDonald
ab9ac7d741 IUmplement tool tip help
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23732 72102866-910b-0410-8b05-ffd578937521
2006-10-02 19:22:22 +00:00
Nicola Pero
2c011d4cb4 Use GNUSTEP_IS_FLATTENED and work around a compiler bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23723 72102866-910b-0410-8b05-ffd578937521
2006-10-02 16:30:52 +00:00
Gregory John Casamento
f6924da4be * Source/NSDocumentController.m: Correct grammar in
reviewUnsavedDocumentsWithAlertTitle:...  "Quit Anyways" should
	be "Quit Anyway".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23713 72102866-910b-0410-8b05-ffd578937521
2006-10-02 12:21:58 +00:00
Richard Frith-MacDonald
e779b4215b Fix tracking rect bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23711 72102866-910b-0410-8b05-ffd578937521
2006-10-02 12:07:35 +00:00
Richard Frith-MacDonald
c201ae734e Add support for the context help cursor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23708 72102866-910b-0410-8b05-ffd578937521
2006-10-02 08:42:04 +00:00
Richard Frith-MacDonald
3005771e57 Add headers to avoid warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23706 72102866-910b-0410-8b05-ffd578937521
2006-10-02 05:13:37 +00:00
Richard Frith-MacDonald
c033d17a2d merge in themes branch to keep in sync
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23705 72102866-910b-0410-8b05-ffd578937521
2006-10-02 05:09:48 +00:00
Richard Frith-MacDonald
c8e6566831 Cosmetic tweaks to conform to coding standards
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23631 72102866-910b-0410-8b05-ffd578937521
2006-09-26 19:09:13 +00:00
Richard Frith-MacDonald
7b45601256 Tidy icon usage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23630 72102866-910b-0410-8b05-ffd578937521
2006-09-26 18:29:11 +00:00
Matt Rice
07eeaa998d * Source/NSTableView.m (_shouldEditTableColumn:row:):
Dont invert delegate return value.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23629 72102866-910b-0410-8b05-ffd578937521
2006-09-26 16:03:10 +00:00
Richard Frith-MacDonald
125411a8e9 Flush window after expose.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23607 72102866-910b-0410-8b05-ffd578937521
2006-09-24 18:59:08 +00:00
Richard Frith-MacDonald
3b65b34a1b When exposing a window ensure that the rectangle is drawn to (if necessary)
before flushing the buffer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23603 72102866-910b-0410-8b05-ffd578937521
2006-09-24 12:45:21 +00:00
Richard Frith-MacDonald
19870a4c7a Don't drop expose events.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23602 72102866-910b-0410-8b05-ffd578937521
2006-09-24 08:27:21 +00:00
Richard Frith-MacDonald
98c7ec2bc2 simplify expose event changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23600 72102866-910b-0410-8b05-ffd578937521
2006-09-24 05:37:05 +00:00
Matt Rice
c0f89a63f2 * Source/NSTableView.m (_isCellEditableColumn:row:): Allow
delegate to limit editablility of editable columns.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23599 72102866-910b-0410-8b05-ffd578937521
2006-09-23 21:53:25 +00:00
Richard Frith-MacDonald
183c8411a5 Add new event subtype for exposure of region of window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23598 72102866-910b-0410-8b05-ffd578937521
2006-09-23 19:08:18 +00:00
Richard Frith-MacDonald
a34cac104e Fix writeToFile: to use the specified file name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23594 72102866-910b-0410-8b05-ffd578937521
2006-09-22 18:02:57 +00:00
Richard Frith-MacDonald
785107cede merge bugfix and documentation from themes branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23593 72102866-910b-0410-8b05-ffd578937521
2006-09-22 16:42:47 +00:00
Richard Frith-MacDonald
ec93a2ceef Add cheange missed from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23590 72102866-910b-0410-8b05-ffd578937521
2006-09-22 13:38:12 +00:00
Richard Frith-MacDonald
ed5990f599 theme reorganisation/tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23586 72102866-910b-0410-8b05-ffd578937521
2006-09-22 11:53:40 +00:00
Richard Frith-MacDonald
c7ab1a2a90 Some theme integration work
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23585 72102866-910b-0410-8b05-ffd578937521
2006-09-22 11:23:03 +00:00
Matt Rice
1e779eacaf * Source/NSTextFieldCell.m (-setEnabled:): Revert previous patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23583 72102866-910b-0410-8b05-ffd578937521
2006-09-21 19:43:01 +00:00
Matt Rice
8dce386f4d * Source/NSTextField.m (-mouseDown:): Check if the control is
disabled. (bug #13916)
        (-acceptFirstResponder:): Return no if disabled.
        (-acceptFirstMouse:): Ditto.
        * Source/NSTextFieldCell.m (-setEnabled:): Reset the string 
	value to an empty string if disabling.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23574 72102866-910b-0410-8b05-ffd578937521
2006-09-20 20:04:31 +00:00
Richard Frith-MacDonald
9d21170e10 Fix crash if content view is removed from window by moving it to another one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23567 72102866-910b-0410-8b05-ffd578937521
2006-09-20 11:00:25 +00:00
Matt Rice
8bf4c36cc2 * Source/NSDocument.m (-initWithContentsOfFile:ofType:): Set the
file name and type before attempting to read the document.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23546 72102866-910b-0410-8b05-ffd578937521
2006-09-17 15:15:42 +00:00
Fred Kiefer
c7839ee576 Corrected bug in latest patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23545 72102866-910b-0410-8b05-ffd578937521
2006-09-17 14:08:29 +00:00
Fred Kiefer
69a8fabe3d Allow read only table views to select the text in a cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23538 72102866-910b-0410-8b05-ffd578937521
2006-09-16 23:19:48 +00:00
Richard Frith-MacDonald
01df6ea62e fix memory leak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23532 72102866-910b-0410-8b05-ffd578937521
2006-09-16 04:09:28 +00:00
Richard Frith-MacDonald
10de682166 Fix possible uninitialised variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23497 72102866-910b-0410-8b05-ffd578937521
2006-09-14 05:00:15 +00:00
Richard Frith-MacDonald
5eef626c6b Don't try to draw arrow if image does not exist
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23486 72102866-910b-0410-8b05-ffd578937521
2006-09-13 06:20:28 +00:00
Gregory John Casamento
c06e564071 * Headers/AppKit/NSDrawer.h: Added ivars to support implementation.
* Source/GSNibCompatibility.m: Moved comments to top, for gcc < 3.0
        compilation.
        * Source/NSDrawer.m: Added GSDrawerWindow implementation and
        implementation of some methods in NSDrawer to interact with the 
        window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23482 72102866-910b-0410-8b05-ffd578937521
2006-09-13 04:32:23 +00:00
Richard Frith-MacDonald
0232b540d9 minor coordinate fix for flushing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23465 72102866-910b-0410-8b05-ffd578937521
2006-09-12 12:59:17 +00:00
Richard Frith-MacDonald
2eede887c5 Window frame/coordinate handling cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23460 72102866-910b-0410-8b05-ffd578937521
2006-09-12 09:49:54 +00:00
Richard Frith-MacDonald
17d346b3e5 Window frame handling fixups (bug #17377)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23399 72102866-910b-0410-8b05-ffd578937521
2006-09-06 11:29:20 +00:00
Richard Frith-MacDonald
7d001ccf0c Fix to get file to compile with older compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23392 72102866-910b-0410-8b05-ffd578937521
2006-09-05 11:03:27 +00:00
Nicolas Roard
5c156d87df moved a declaration at the beginning of the method (gcc 2.9x ...)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23388 72102866-910b-0410-8b05-ffd578937521
2006-09-04 00:11:45 +00:00
Nicolas Roard
d3ff656a0c Added JPEG writing support to NSBitmapImageRep. Only handles RGB images (NS*RGBColorSpace). You can specify the compression ratio by using the NSImageCompressionFactor key in the properties dictionary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23387 72102866-910b-0410-8b05-ffd578937521
2006-09-04 00:02:20 +00:00
Gregory John Casamento
d916e0adb1 Reverted previous change. Added comments in NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23384 72102866-910b-0410-8b05-ffd578937521
2006-09-03 16:18:42 +00:00
Gregory John Casamento
d0bc68ca3a * Source/GSStandardWindowDecorationView.m: Correct issue in
initWithFrame🪟 that was causing a crash when the window 
	was closed.
	* Source/NSControl.m: Reinstated fix from Fred Kiefer for 
	mouseDown: simplification and refactoring. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23380 72102866-910b-0410-8b05-ffd578937521
2006-08-31 04:23:56 +00:00
Gregory John Casamento
da7ae90539 * Source/GSNibLoader.m: loadModelData:... Remove TEST_RELEASE
from handler block.
	* Source/NSColor.m: initWithCoder: retain autoreleased instances
	of NSColor to prevent double release when the pool is cleared.
	* Source/NSControl.m: initWithCoder: retain cell to prevent
	double release when the pool is cleared.
	* Source/NSFont.m: initWithCoder: retain autoreleased instances
	of NSFont to prevent double release when the pool is cleared.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23340 72102866-910b-0410-8b05-ffd578937521
2006-08-27 02:35:03 +00:00
Gregory John Casamento
aaa0f632ce * Source/NSTableView.m: initWithCoder: minor cleanup.
* Source/NSTextFieldCell.m: initWithCoder retain 
	text/background colors to prevent crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23339 72102866-910b-0410-8b05-ffd578937521
2006-08-26 22:28:47 +00:00
Gregory John Casamento
63e4a9aebd * Source/GSNibCompatibility.m: In [NSIBObjectData initWithCoder:]
clean up the buildMap calls.  In NSCustomResource retain the resource
	that is returned to prevent a crash.  Add dealloc method to 
	NSCustomObject.
	* Source/NSClipView.m: In initWithCoder: retain and release
	documentView before removing it from the view and resetting
	it as the document view.   This ensures that the view will
	not be deallocated.
	* Source/NSScrollView.m: Retain the contentView before exchanging
	it and then release to prevent the view from being deallocated in
	initWithCoder:
	* Source/NSTableView.m: Replace call to "new" with alloc/init for
	NSTableHeaderView in initWithCoder:
	* Source/NSView.m: in initWithCoder: keyed coding don't release
	the subs array since it's already autoreleased.  This was causing
	a crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23336 72102866-910b-0410-8b05-ffd578937521
2006-08-26 14:10:18 +00:00
Fred Kiefer
48f42d5793 Moved variable declaration to work with older compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23320 72102866-910b-0410-8b05-ffd578937521
2006-08-21 12:09:38 +00:00
Gregory John Casamento
3c5f004f90 * Source/NSApplication.m: Remove keys from initWithCoder: and
encodeWithCoder:.
	* Source/NSCell.m: Initialize the cell based on content in 
	initWithCoder:.
	* Source/NSFormCell.m: Removed unnecessary decoding of NSContents key
	in initWithCoder: since it is already done in NSCell.m.
	* Source/NSMatrix.m: initWithCoder:/encodeWithCoder: added 
	autosizesCells flag and clear flags which are not used
	prior to encoding.
	* Source/NSPopUpButtonCell.m: Implemented encoding in 
	encodeWithCoder:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23318 72102866-910b-0410-8b05-ffd578937521
2006-08-20 16:18:31 +00:00
Gregory John Casamento
9381ab8eec * Source/NSBrowser.m: Added comment in encodeWithCoder:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23316 72102866-910b-0410-8b05-ffd578937521
2006-08-19 19:56:47 +00:00
Gregory John Casamento
f3a5a67c45 * Source/NSBrowserCell.m: Improved encoding and decoding in
encodeWithCoder: and initWithCoder:
	* Source/NSBrowser.m: Improved encoding and decoding in
	encodeWithCoder: and initWithCoder:
	* Source/NSScrollView.m: Improved encoding and decoding in
	encodeWithCoder: and initWithCoder:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23315 72102866-910b-0410-8b05-ffd578937521
2006-08-19 14:34:52 +00:00
Gregory John Casamento
569ceb5d66 * Source/NSButtonCell.m: Improvements in both initWithCoder: and
encodeWithCoder: utilize the setCellAttribute:to: method and
	the cellAttribute: method to determine settings when saving
	to a keyed archive.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23310 72102866-910b-0410-8b05-ffd578937521
2006-08-17 04:55:32 +00:00
Gregory John Casamento
f4e0785e42 * Source/NSTabView.m: Corrections in initWithCoder: and
encodeWithCoder: to properly encode items and tabview orientation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23298 72102866-910b-0410-8b05-ffd578937521
2006-08-16 04:54:25 +00:00
Gregory John Casamento
b87d2a64cd * Headers/Additions/GNUstepGUI/GSNibCompatibility.h: Added oids method.
* Images/common_Printer.tiff: Replaced old printer icon with one
  created from the PrefsIcon_SelectSpooler_Tile.jpg image on the website.
* Source/GSNibCompatibility.m: Added oids method to get the map.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23292 72102866-910b-0410-8b05-ffd578937521
2006-08-15 05:04:35 +00:00
Gregory John Casamento
baf3f68d20 encoding improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23285 72102866-910b-0410-8b05-ffd578937521
2006-08-13 20:21:46 +00:00
Gregory John Casamento
fe2d2fe22d Temporary rollback of change to -[NSControl mouseDown:] until it can be determined why it is causing some applications to crash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23284 72102866-910b-0410-8b05-ffd578937521
2006-08-13 17:06:57 +00:00
Gregory John Casamento
74049ce6bc Added NSPSMatrix private class, added GS specific keys to NSProgressIndicator for info that GS encodes, but Cocoa doesn't. All GS specific keys shall have GS* as the prefix. Implemented encodeWithCoder: in NSTableColumn and corrected NSTable encoding to correct problems during IB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23265 72102866-910b-0410-8b05-ffd578937521
2006-08-12 22:44:56 +00:00
Fred Kiefer
f2beece4f3 Small clean ups in NSView, NSTableView and the headers included in
AppKit.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23257 72102866-910b-0410-8b05-ffd578937521
2006-08-11 20:04:53 +00:00
Fred Kiefer
ccc72cc74f Moved tracking code from controll to cell class to allow the use in a
matrix.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23255 72102866-910b-0410-8b05-ffd578937521
2006-08-11 14:08:32 +00:00
Gregory John Casamento
bad637ff8e Correct memory issue with NSClassSwapper, encode control view in the action cell, add comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23249 72102866-910b-0410-8b05-ffd578937521
2006-08-11 05:53:28 +00:00
Fred Kiefer
75d5b070c1 Simplified NSControls mouseDown: method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23248 72102866-910b-0410-8b05-ffd578937521
2006-08-10 21:54:18 +00:00
Gregory John Casamento
59eedc6dac Correct encoding of repeat and delay, since they are encoded as ints.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23227 72102866-910b-0410-8b05-ffd578937521
2006-08-09 06:27:58 +00:00
Gregory John Casamento
78bbf9e972 Implement encoding for these objects and correct issue with font size encoding. It was encoded/decoded as an int when it should have been a float.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23226 72102866-910b-0410-8b05-ffd578937521
2006-08-09 05:48:54 +00:00
Gregory John Casamento
84d0296b74 Correction for GSNibCompatibility. Added coding to classes for keyed archiving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23225 72102866-910b-0410-8b05-ffd578937521
2006-08-09 01:37:32 +00:00
Fred Kiefer
dc4a427c47 Clean up of NSStepper and NSStepperCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23224 72102866-910b-0410-8b05-ffd578937521
2006-08-08 23:14:14 +00:00
Fred Kiefer
6bbbc9a062 Adopted setBordered: and setBezeled: to Cocoa documentation to always
switch off the other setting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23212 72102866-910b-0410-8b05-ffd578937521
2006-08-07 15:41:11 +00:00
Gregory John Casamento
48db9c7614 Correction for window size in -[NSWindowTemplate nibInstantiate]. Implemented encoding in encodeWithCoder: for some classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23207 72102866-910b-0410-8b05-ffd578937521
2006-08-06 04:32:16 +00:00
Gregory John Casamento
3db08e83f6 Encode item and title of menu, so that it will show in the nib.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23206 72102866-910b-0410-8b05-ffd578937521
2006-08-05 13:08:53 +00:00
Gregory John Casamento
fb8609cf7a Don't encode the superview when encoding the contentView of a window, since it can be a subview of the GS decoration views. Correct type for visibleWindows, should be NSArray, not NSSet.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23204 72102866-910b-0410-8b05-ffd578937521
2006-08-05 12:46:20 +00:00
Fred Kiefer
d0d68dd618 Corrected bug #17096, setting of typing attributes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23183 72102866-910b-0410-8b05-ffd578937521
2006-07-20 22:32:41 +00:00
Gregory John Casamento
6462d48f4a Added better error message to initWithCoder in GSNibContainer and also added code in GSNibCompatibility to fix superview and window settings after a window is loaded in the nib file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23180 72102866-910b-0410-8b05-ffd578937521
2006-07-19 03:16:49 +00:00
Eric Sersale
06fed61392 * Headers/AppKit/NSHelpManager.h:
* Source/NSHelpManager.m:
  added -setContextHelp:forObject: as specified in Apple docs;
  -setContextHelp:withObject: deprecated. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23174 72102866-910b-0410-8b05-ffd578937521
2006-07-17 12:03:15 +00:00
Eric Sersale
acf57e2b37 * Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h: added -buttonAction:
method.
* Source/GSHelpManagerPanel.m: implemented -buttonAction:.
added a button to close the panel and changed the style mask of the window 
to NSTitledWindowMask | NSResizableWindowMask.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23171 72102866-910b-0410-8b05-ffd578937521
2006-07-16 13:32:01 +00:00
Eric Sersale
30dc6bf85a * Headers/AppKit/AppKit.h: added NSHelpManager.h.
* Headers/AppKit/NSHelpManager.h: declaration for new method -pathForHelpResource:
  * Source/NSHelpManager.m: implemented -pathForHelpResource: in the NSBundle 
  category. -pathForHelpResource: looks for help files giving the priority
  to localized resources. 
  -showHelp: looks for rtfd files too.
  * Source/GSHelpManagerPanel.m: various fixes to avoid a crash when quitting
  and to resize correctly the NSTextView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23164 72102866-910b-0410-8b05-ffd578937521
2006-07-15 11:42:02 +00:00
Gregory John Casamento
b718aee750 Added method initWithWindow:.. to initialize the template from an actual window instance.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23162 72102866-910b-0410-8b05-ffd578937521
2006-07-14 05:18:08 +00:00