Commit graph

4473 commits

Author SHA1 Message Date
wlux
aa77a425fa Enable Ctrl-l keybinding and add Ctrl-o keybinding as in Emacs and Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28961 72102866-910b-0410-8b05-ffd578937521
2009-11-05 22:41:45 +00:00
wlux
9326ec2792 Fix an issue where a window's delegate could be called during
deallocation. This also avoids unnecessary screen flicker when the
window is closed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28960 72102866-910b-0410-8b05-ffd578937521
2009-11-05 22:23:52 +00:00
wlux
cb299e33c8 Fix a regression in the alert sheet functions which has introduced a
variant of #26101 where only one callback was used.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28959 72102866-910b-0410-8b05-ffd578937521
2009-11-05 21:56:42 +00:00
fredkiefer
bf557f3c90 Correct alpha_component passing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28956 72102866-910b-0410-8b05-ffd578937521
2009-11-04 21:49:48 +00:00
fredkiefer
4e00a49a68 Small changes for colour space handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28947 72102866-910b-0410-8b05-ffd578937521
2009-11-03 21:32:52 +00:00
fredkiefer
8899d486e7 dd a few more includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28946 72102866-910b-0410-8b05-ffd578937521
2009-11-03 18:33:35 +00:00
fredkiefer
8bd916f0a8 Add dummy implementations for NSConvertGlobalToWindowNumber and
NSConvertWindowNumberToGlobal.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28942 72102866-910b-0410-8b05-ffd578937521
2009-11-03 08:38:46 +00:00
fredkiefer
c353a6b67b Only set the current event when dequeuing and never return the
null_event.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28938 72102866-910b-0410-8b05-ffd578937521
2009-11-02 12:13:59 +00:00
fredkiefer
83e26ad83f 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
fredkiefer
6197db8247 Switch to the new shared composite and dissolve drawing code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28933 72102866-910b-0410-8b05-ffd578937521
2009-11-01 22:43:20 +00:00
rfm
1cb483bd41 make last change conditional on mingw
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28926 72102866-910b-0410-8b05-ffd578937521
2009-10-31 06:13:16 +00:00
rfm
0b5c108ce1 get things working on mingw again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28925 72102866-910b-0410-8b05-ffd578937521
2009-10-30 20:32:24 +00:00
fredkiefer
8372da344d Correct flipped drawing of progress bar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28919 72102866-910b-0410-8b05-ffd578937521
2009-10-30 08:26:48 +00:00
fredkiefer
d5c43f71ee Fill in more code for progress bar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28906 72102866-910b-0410-8b05-ffd578937521
2009-10-28 22:54:57 +00:00
fredkiefer
d5250aeb6b Correct indentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28901 72102866-910b-0410-8b05-ffd578937521
2009-10-28 07:47:14 +00:00
fredkiefer
9c7aff20ab 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
icicle
1443a6b299 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
rfm
893b275435 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28885 72102866-910b-0410-8b05-ffd578937521
2009-10-26 11:11:41 +00:00
rfm
35b11f6c6b 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
fredkiefer
f2b737e74a Correct the geometry computation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28876 72102866-910b-0410-8b05-ffd578937521
2009-10-25 12:10:59 +00:00
fredkiefer
47823bc12b 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
fredkiefer
7d7e198088 Add context savig/restore and first attempt at geometry maths.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28871 72102866-910b-0410-8b05-ffd578937521
2009-10-23 17:23:55 +00:00
rio
d357408ed6 Re-enabled extracting the images in GSDrawTiles after fixing the matrix drawing style, making the nine patch drawing method work again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28866 72102866-910b-0410-8b05-ffd578937521
2009-10-22 12:27:34 +00:00
fredkiefer
93c72aa048 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
wlux
4e3a0f869a Improve OS X compatibility with respect to managing the document
controller's recent-documents list.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28861 72102866-910b-0410-8b05-ffd578937521
2009-10-20 06:14:11 +00:00
wlux
f0ac4f2e8f Fix an off by one error which would crash programs with an open recent
menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28860 72102866-910b-0410-8b05-ffd578937521
2009-10-20 06:03:15 +00:00
rmottola
7a0d670c14 add method declaration so that certain compilers pick up the correct signature
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28858 72102866-910b-0410-8b05-ffd578937521
2009-10-19 20:58:02 +00:00
rfm
582746d0fa more fixyps for breakage in recent drawing changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28855 72102866-910b-0410-8b05-ffd578937521
2009-10-19 18:46:44 +00:00
rfm
8d15c4b1e3 Get theme tile drawing working again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28851 72102866-910b-0410-8b05-ffd578937521
2009-10-19 14:21:05 +00:00
rfm
30e8ce9365 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
rfm
297c9bfd1a 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
rfm
481441ccea 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
rfm
37b8ed30da 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
rfm
51e03c6d17 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
rfm
c8916fd438 minor fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28843 72102866-910b-0410-8b05-ffd578937521
2009-10-19 07:44:22 +00:00
rio
f1fc5dd78a Remove commented code and spurious NSLogs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28842 72102866-910b-0410-8b05-ffd578937521
2009-10-19 03:23:24 +00:00
rio
58a3a56cde Added 'NinePatch' drawing style, more efficient drawing and fixed bugs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28841 72102866-910b-0410-8b05-ffd578937521
2009-10-19 03:19:01 +00:00
rio
51058d5727 Fix drawing bug when painting Top-Middle and Bottom-Middle images in GSDrawTiles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28840 72102866-910b-0410-8b05-ffd578937521
2009-10-18 18:35:24 +00:00
rfm
5fc5e51616 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
rio
e0619d724b 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
rfm
bc795fdaa1 fix for activation with suppressed icon window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28837 72102866-910b-0410-8b05-ffd578937521
2009-10-18 08:02:40 +00:00
wlux
eb5f81a21a When using MS Windows style menus terminate an application by default
when its last window is closed.
In addition, fix a bug where the application was not terminated when
the last window is closed while the application is in the background.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28834 72102866-910b-0410-8b05-ffd578937521
2009-10-17 17:09:36 +00:00
wlux
2cdc3b0a23 Improve compatibility with Mac OS X and open a new document by default
when a document based application is started and there is no file to
open.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28833 72102866-910b-0410-8b05-ffd578937521
2009-10-17 17:01:24 +00:00
rfm
3325226e5c 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
rfm
817142915c Suppress app icon window by simply not ordering it in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28831 72102866-910b-0410-8b05-ffd578937521
2009-10-17 05:35:56 +00:00
sheldon
027f6c59ab Centralise GSGuiBundle() routine
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28830 72102866-910b-0410-8b05-ffd578937521
2009-10-17 05:05:35 +00:00
sheldon
541ba236db Move defaultExceptionHandler initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28829 72102866-910b-0410-8b05-ffd578937521
2009-10-17 04:56:22 +00:00
fredkiefer
4baeaf8d6b Move warning method that was shown too often.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28824 72102866-910b-0410-8b05-ffd578937521
2009-10-13 20:54:12 +00:00
fredkiefer
4f6bd4b133 Partial fix for bug #27638
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28816 72102866-910b-0410-8b05-ffd578937521
2009-10-12 18:54:17 +00:00
fredkiefer
e0ce4b3581 Use NSModalPanelRunLoopMode instead of NSDefaultRunLoopMode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28815 72102866-910b-0410-8b05-ffd578937521
2009-10-12 18:29:41 +00:00
fredkiefer
4414d1c038 Fix for bug #27637
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28814 72102866-910b-0410-8b05-ffd578937521
2009-10-12 16:42:45 +00:00
fredkiefer
1949a3ac82 Remove two no longer needed hash methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28813 72102866-910b-0410-8b05-ffd578937521
2009-10-12 16:10:10 +00:00
fredkiefer
c7ac1eafa2 Turned Richards specific hash method into a generic one.
--- --

M    Source/NSColor.m
M    ChangeLog


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28812 72102866-910b-0410-8b05-ffd578937521
2009-10-12 16:02:42 +00:00
rfm
13a0f17839 finish implementng hash methods for NSColor subclasses
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28811 72102866-910b-0410-8b05-ffd578937521
2009-10-12 15:57:59 +00:00
rfm
36de572f15 add a couple of hash implementations... need more
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28810 72102866-910b-0410-8b05-ffd578937521
2009-10-12 15:23:24 +00:00
rfm
5fdeffdf69 improve isEqual: for named colors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28809 72102866-910b-0410-8b05-ffd578937521
2009-10-12 15:05:47 +00:00
rfm
6c26110011 tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28808 72102866-910b-0410-8b05-ffd578937521
2009-10-12 14:49:12 +00:00
fredkiefer
97071994de Remove special handling for proxies in NSColor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28805 72102866-910b-0410-8b05-ffd578937521
2009-10-12 13:52:28 +00:00
rfm
97972737e3 Fixup color changes on theme activation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28803 72102866-910b-0410-8b05-ffd578937521
2009-10-12 09:09:59 +00:00
fredkiefer
38dfaac467 Fix for bug #27631
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28802 72102866-910b-0410-8b05-ffd578937521
2009-10-11 20:17:28 +00:00
rfm
53b1ca1077 fix to get open panels working again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28801 72102866-910b-0410-8b05-ffd578937521
2009-10-11 16:29:03 +00:00
fredkiefer
1c217a60b2 Add the corresponding code in dealloc to the last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28800 72102866-910b-0410-8b05-ffd578937521
2009-10-11 16:03:49 +00:00
fredkiefer
ebbbacbe03 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
fredkiefer
b3aacde1c3 Remove usage of NSDeallocateObject
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28789 72102866-910b-0410-8b05-ffd578937521
2009-10-10 14:10:52 +00:00
fredkiefer
5e4e8730d9 Fix bug #27613. After closing the print option panel via the close
button the application was no longer reacting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28788 72102866-910b-0410-8b05-ffd578937521
2009-10-10 13:56:45 +00:00
rfm
c560ba5eb2 Fix bug setting name of an image which already has a name. Added thread safety
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28743 72102866-910b-0410-8b05-ffd578937521
2009-09-27 08:54:03 +00:00
fredkiefer
106e20f047 * Source/NSApplication.m (-setApplicationIconImage:,
-finishLaunching): Move the set name code to finishLaunching, as
  the image called NSApplicationIcon should stay the same all the time.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28741 72102866-910b-0410-8b05-ffd578937521
2009-09-26 19:28:29 +00:00
fredkiefer
7c0ecbbb83 Add method init for NSTextContainer as suggested
by Derek Fawcus <dfawcus@cisco.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28738 72102866-910b-0410-8b05-ffd578937521
2009-09-25 22:08:50 +00:00
fredkiefer
001528c4ac Remove now obsolte comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28723 72102866-910b-0410-8b05-ffd578937521
2009-09-21 16:59:22 +00:00
fredkiefer
9e33aabc27 Get NSToolbar setVisible: to really display/hide the toolbar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28722 72102866-910b-0410-8b05-ffd578937521
2009-09-21 16:04:36 +00:00
fredkiefer
7b15f5c439 Use default paragraph style in text layout when none is set.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28714 72102866-910b-0410-8b05-ffd578937521
2009-09-19 15:28:33 +00:00
fredkiefer
e28685c8f8 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
fredkiefer
9d6acb8a2b Correct the only use of the method that Hans Baier renamed :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28690 72102866-910b-0410-8b05-ffd578937521
2009-09-16 07:11:21 +00:00
hansfbaier
7021534ef8 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
hansfbaier
d4e93f2587 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
fredkiefer
80e0875d45 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
rfm
726ab25f1e revert last change and do proper fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28652 72102866-910b-0410-8b05-ffd578937521
2009-09-10 11:02:17 +00:00
rfm
21c9e0dca8 Fix to display correct app icon.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28651 72102866-910b-0410-8b05-ffd578937521
2009-09-10 10:15:32 +00:00
fredkiefer
c10bfc152d Two small changes that should make Emacs 23.1 usable with GNUstep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28643 72102866-910b-0410-8b05-ffd578937521
2009-09-08 22:10:56 +00:00
fredkiefer
c354825c15 * Source/NSScrollView.m (-initWithCoder:): Don't add the vertical
scroller directly into the subviews. Call tile to position all
  subviews correctly.
  Based on patch by Quentin Mathe <quentin.mathe@gmail.com>.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28625 72102866-910b-0410-8b05-ffd578937521
2009-09-07 16:19:42 +00:00
fredkiefer
63164f9779 * 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
fredkiefer
58bdad9031 * Source/NSPopUpButton.m (-selectedTag): Return the tag of the selected item.
Patch by Douglas Simons <doug.simons@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28617 72102866-910b-0410-8b05-ffd578937521
2009-09-06 21:38:15 +00:00
rfm
3837171b94 fix #27344
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28584 72102866-910b-0410-8b05-ffd578937521
2009-09-01 05:58:48 +00:00
rfm
3884d4644a fix #25907
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28583 72102866-910b-0410-8b05-ffd578937521
2009-09-01 05:20:08 +00:00
gcasa
528eb702bd Correct images used for H/V orientation of the dimple.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28570 72102866-910b-0410-8b05-ffd578937521
2009-08-28 22:08:16 +00:00
gcasa
2ca663467a Correct the image name to be consistent with the other image names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28568 72102866-910b-0410-8b05-ffd578937521
2009-08-28 21:33:37 +00:00
gcasa
b376b80f9e * Images/common_DimpleH.tiff: Horizontal image for dimple. This
image is not different from the vertical dimple for the default
	theme.  It's here so that it can be overriden by a theme, if
	needed.
	* Images/GNUmakefile: Add new image.
	* Source/GSThemeDrawing.m: Modify code in cellForScrollerKnob
	to use common_Dimple.tiff or common_DimpleH.tiff depending
	on the orientation of the scroller.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28567 72102866-910b-0410-8b05-ffd578937521
2009-08-28 21:22:52 +00:00
rfm
e91677691b Fix error returning named images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28566 72102866-910b-0410-8b05-ffd578937521
2009-08-28 13:04:15 +00:00
rfm
c1a52b18ce tweak theme image handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28565 72102866-910b-0410-8b05-ffd578937521
2009-08-28 09:48:00 +00:00
rfm
81659ffe9f cast to fix warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28560 72102866-910b-0410-8b05-ffd578937521
2009-08-28 05:02:24 +00:00
rfm
f59617c25d Add trivial debug for tracking activation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28557 72102866-910b-0410-8b05-ffd578937521
2009-08-27 17:13:31 +00:00
rfm
47cf8f490b Fix bad return of proxy to user code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28556 72102866-910b-0410-8b05-ffd578937521
2009-08-27 14:57:00 +00:00
rfm
e1cdeb9825 theme system image fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28554 72102866-910b-0410-8b05-ffd578937521
2009-08-27 06:03:16 +00:00
gcasa
7961719661 * 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
rfm
f48b5d132e 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
fredkiefer
9d3c6e1abb Fix compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28527 72102866-910b-0410-8b05-ffd578937521
2009-08-23 22:10:32 +00:00
fredkiefer
e1bb31f0d2 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
gcasa
e70f79fbf7 * 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
gcasa
e89b630802 * 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
gcasa
08af90abe3 * Source/GSHorizontalTypesetter.m: Remove unlock and
log the exception, but don't rethrow it.
	* Source/GSLayoutManager.m: return a zero length range in
	 -(NSRange)glyphRangeForCharacterRange:actualCharacterRange:
	when charRange has a length and a location of 0.
	Added by Gregory John Casamento <greg.casamento@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28521 72102866-910b-0410-8b05-ffd578937521
2009-08-23 16:37:28 +00:00
stefanbidi
d715c22bc7 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
gcasa
22ffef8a5e * 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
fredkiefer
c55922adaa * Source/NSMenuItemCell.m (-drawStateImageWithFrame:inView:,
-drawTitleWithFrame:inView:): Remove specific drawing code, use
  general code instead.
* Source/NSMenuItemCell.m (-drawingRectForBounds:): Add call to
  calcSize.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28505 72102866-910b-0410-8b05-ffd578937521
2009-08-21 20:13:59 +00:00
fredkiefer
73ffe03b59 * Source/NSBitmapImageRep+ICNS.m: Redefine icns_size_t to int, as
this needs to be a 32 bit integer and on 64 bit systems long
  uses 64 bits.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28501 72102866-910b-0410-8b05-ffd578937521
2009-08-21 13:57:16 +00:00
gcasa
bc251cbb51 * Source/NSTextView.m: Don't add the text storage if it's nil
in initWithCoder:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28470 72102866-910b-0410-8b05-ffd578937521
2009-08-19 04:58:31 +00:00
gcasa
c927eb226f * Source/NSTextStorage.m: Correct spelling of header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28468 72102866-910b-0410-8b05-ffd578937521
2009-08-16 19:15:32 +00:00
fredkiefer
1bcf5f9b59 * Source/NSView.m (-initWithFrame:, -initWithCoder:) Set
_post_frame_changes and _post_bounds_changes to YES by default.
  Patch by Quentin Mathe <qmathe@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28465 72102866-910b-0410-8b05-ffd578937521
2009-08-15 22:34:13 +00:00
fredkiefer
3e16cca09b * Source/NSTextStorage.m (-replacementObjectForPortCoder:):
Added this method as suggested by Richard.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28464 72102866-910b-0410-8b05-ffd578937521
2009-08-15 22:05:08 +00:00
gcasa
9b9a645742 * Source/NSDrawer.m: Changed - (void) stopTimer. Fixed to
prevent a crash when the drawer is opened/closed and then the
	window is then closed causing a double release.  


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28457 72102866-910b-0410-8b05-ffd578937521
2009-08-12 22:28:25 +00:00
fredkiefer
1e8c060227 * Source/NSTextStorage.m (-classForCoder, -initWithCoder:,
-encodeWithCoder:): Encode this class and not the concrete 
  one. Also call super encoding/decoding methods as they are
  correct in base now.
* Source/GSTextStorage.m (-classForPortCoder, -encodeWithCoder:,
  -replacementObjectForPortCoder:): Remove these methods.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28456 72102866-910b-0410-8b05-ffd578937521
2009-08-12 22:00:16 +00:00
gcasa
8179620995 * Source/NSMenuItem.m: encodeWithCoder: only encode the NSSubitems
key if the menu is not owned by a popup.   This avoids an
	assertion error when loading the resulting nib into InterfaceBuilder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28446 72102866-910b-0410-8b05-ffd578937521
2009-08-09 03:27:13 +00:00
gcasa
423d1f0826 * Source/NSTextView.m: initWithCoder: change to use text storage
more directly to allow the handling of attributed strings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28445 72102866-910b-0410-8b05-ffd578937521
2009-08-08 17:07:07 +00:00
gcasa
1c6132043d * Source/GSTextStorage.m: In initWithCoder: don't overwrite the
contents of the text storage by attempting to unarchive when the
	unarchiver is keyed.
	* Source/NSTextView.m: In initWithCoder: retrieve the contents
	of the text storage for display in the text view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28443 72102866-910b-0410-8b05-ffd578937521
2009-08-08 07:08:23 +00:00
gcasa
7ce476660b * Source/NSTextView.m: initWithCoder: temporarily remove decoding
of NSTextContainer since it is causing a crash when editing a text
	view's that was loaded from a nib file. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28442 72102866-910b-0410-8b05-ffd578937521
2009-08-08 04:43:41 +00:00
fredkiefer
893e9b1fba 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
gcasa
c48ab519e9 * 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
gcasa
d0c9807bff * Source/GSThemeTools.m: -[GSThemeTools drawRoundBezel:withColor:]
add code to draw highlights for rounded buttons to give them a 
	better 3D look.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28421 72102866-910b-0410-8b05-ffd578937521
2009-07-30 19:42:21 +00:00
fredkiefer
383bc8bdf8 * Source/NSDocument.m (-setFileName:): Set the file name to the
absolute file path.
  Patch by Jonathan Gillaspie <jonathan.gillaspie@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28418 72102866-910b-0410-8b05-ffd578937521
2009-07-28 21:01:53 +00:00
gcasa
57489095d8 * 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
fredkiefer
3860bdcb03 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
gcasa
c58602f5f5 * Source/NSAlert.m: Offset color by less in -resetWindow. Remove
redundant logic for calling the "didEnd" method in the NSBeginSheet...
	functions.
	* Source/NSApplication.m: Add code to reset parent window in 
	beginSheet:... method.  Also added check to make sure the
	modalDelegate is not nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28411 72102866-910b-0410-8b05-ffd578937521
2009-07-26 02:56:56 +00:00
gcasa
9529d2cdb7 * Source/NSAlert.m: Remove category for setAttachedSheet method.
* Source/NSApplication.m: Added private category to add 
	setAttachedSheet: to NSWindow.  Modified beginSheet:... method
	to call the new method with the sheet that is associated with it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28410 72102866-910b-0410-8b05-ffd578937521
2009-07-26 00:56:29 +00:00
gcasa
b34fbf2d07 * Source/NSAlert.m: GSAlertSheet - removed unecessary parentWindow
and  container ivars in interface declaration.  Removed uneeded
	accessors for parentWindow and contentRect.  Added check in
	frameFromParentWindowFrame to check to see if parent is initialized
	prior to using it.   Removed NSBox in the init.. method since it 
	could cause issues with drawing.   Added code to lighten the 
	color of the background of the sheet relative to the parent window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28409 72102866-910b-0410-8b05-ffd578937521
2009-07-26 00:35:13 +00:00
fredkiefer
46509a69fd * Source/NSTextView.m (-initWithCoder:, -setTextContainer:):
Attempt to resolve the memory issues when coding a text container.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28405 72102866-910b-0410-8b05-ffd578937521
2009-07-24 07:35:38 +00:00
fredkiefer
d1c72afe9a * Source/NSPrintOperation.m: Add include needed for Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28399 72102866-910b-0410-8b05-ffd578937521
2009-07-17 06:42:32 +00:00
fredkiefer
6c9fd79eff * Source/NSPrintOperation.m (-_printPaginateWithInfo:knowsRange:,
-_print):
Try to handle not set print information more graceful.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28396 72102866-910b-0410-8b05-ffd578937521
2009-07-16 07:18:52 +00:00
fredkiefer
ceb2a84741 * Source/NSPrintOperation.m (-_printPaginateWithInfo:knowsRange:):
Use scale 1.0 if none is given.
Patch by Georg Fleischmann <G.Fleischmann@vhf.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28394 72102866-910b-0410-8b05-ffd578937521
2009-07-14 08:10:53 +00:00
gcasa
ee53b24c7e * Source/NSAlert.m: Implementation of GSAlertSheet.
* Source/NSApplication.m: Change order in which setWindowParent:
	and runModalForWindow: are called in beginSheet:... method.
	* Source/NSDrawer.m: Remove notifications when drawer is closed
	in dealloc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28392 72102866-910b-0410-8b05-ffd578937521
2009-07-13 18:12:52 +00:00
fredkiefer
b6208240c8 * Source/NSTableView.m (-_editPreviousEditableCellBeforeRow:column:,
-_editNextEditableCellAfterRow:column:): Comment out the loop
around of the last change. This leads to wrong results, when the
table view isn't the only view in the window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28383 72102866-910b-0410-8b05-ffd578937521
2009-07-06 14:21:22 +00:00
fredkiefer
d1d98575e5 * Source/NSView.m (-_setNeedsDisplayInRect_real:) Set the window
views as needing display, even when the invalidated rectangle
didn't change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28382 72102866-910b-0410-8b05-ffd578937521
2009-07-06 14:18:16 +00:00
fredkiefer
0e7730756b Better implementation of changing the edited cell in a table view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28381 72102866-910b-0410-8b05-ffd578937521
2009-07-05 21:52:17 +00:00
rmottola
c3f70a8543 removed c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28380 72102866-910b-0410-8b05-ffd578937521
2009-07-05 20:12:22 +00:00
fredkiefer
fc7b0dd25d Compare row against _numberOfRows not _numberOfColumns.
Patch by Tim Schmielau <tim@smmo.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28379 72102866-910b-0410-8b05-ffd578937521
2009-07-05 09:45:18 +00:00
rio
a225e27c0e Apply patch from Eric Wasylishen, add live resize and
live moving for table columns if GSUseGhostResize is
set to NO.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28376 72102866-910b-0410-8b05-ffd578937521
2009-06-30 00:40:57 +00:00
gcasa
674aa1498b Added fix suggested by George.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28375 72102866-910b-0410-8b05-ffd578937521
2009-06-29 03:47:10 +00:00
fredkiefer
b2da37a998 Add more implementation to NSObjectController.
Patch by Andy Balholm <andy@balholm.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28374 72102866-910b-0410-8b05-ffd578937521
2009-06-28 23:09:50 +00:00
fredkiefer
1b0faf97c9 Retain the shared user defaults controller before returning it in
initWithCoder:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28368 72102866-910b-0410-8b05-ffd578937521
2009-06-21 22:35:23 +00:00
fredkiefer
9291650f00 Small bug fixes for NSKeyValueBinding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28367 72102866-910b-0410-8b05-ffd578937521
2009-06-21 22:21:26 +00:00
gcasa
a1d6980672 * Headers/AppKit/NSSpeechSynthesizer.h:
* Source/NSSpeechSynthesizer.m: Implementation of
	NSSpeechSynthesizer.  
	Patch by David Chisnall <theraven@sucs.org>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28327 72102866-910b-0410-8b05-ffd578937521
2009-06-05 22:26:09 +00:00
fredkiefer
82e5af8ba4 Check whether there is a returned save panel, this wont be the case
when the user cancels the save operation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28321 72102866-910b-0410-8b05-ffd578937521
2009-06-02 21:40:07 +00:00
fredkiefer
bdca2254cc Replace a call to a now longer existing extension on NSInvocation
with the correct method calls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28312 72102866-910b-0410-8b05-ffd578937521
2009-05-31 15:48:49 +00:00
fredkiefer
2c265dbf17 Make sure the static variable windowmaps is always initialized before
using it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28311 72102866-910b-0410-8b05-ffd578937521
2009-05-31 15:30:03 +00:00
gcasa
be86a40839 * Source/NSWorkspace.m: Improve handling of CFBundleType...
constants in the private method _extIconForApp:info:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28297 72102866-910b-0410-8b05-ffd578937521
2009-05-24 02:17:05 +00:00
gcasa
e42b695869 * Source/GSStandardWindowDecorationView.m: Live window resize changes
for when using GNUstep decorations in resizeWindowStartingWithEvent:.
	* Source/NSLayoutManager.m: Unarchive the text containers into an 
	array in initWithCoder:.
	* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
	* Source/NSTextView.m: Changes to include text container from nib
	file into the nib loading process in initWithCoder:.   


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28296 72102866-910b-0410-8b05-ffd578937521
2009-05-23 15:50:51 +00:00
rio
7b6563b013 Add a live resize for splitviews. Users can revert to the old behaviour
by doing: defaults write NSGlobalDomain GSUseGhostResize YES


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28291 72102866-910b-0410-8b05-ffd578937521
2009-05-22 01:20:07 +00:00
rmottola
793ea1b10b fixed allocation of NSMutableArray
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28284 72102866-910b-0410-8b05-ffd578937521
2009-05-14 23:21:05 +00:00
gcasa
5c6bc58428 Initial changes for sheet implementation. More to come.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28283 72102866-910b-0410-8b05-ffd578937521
2009-05-14 22:17:48 +00:00
fredkiefer
bc94011f82 Get buttons for GSTitleView from NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28264 72102866-910b-0410-8b05-ffd578937521
2009-05-01 22:54:11 +00:00
fredkiefer
e442b9c770 * Source/NSBezierPath.m (-appendBezierPathWithRoundedRect:xRadius:yRadius:):
Small rearangment of code.
Patch by Fred Morcos <fred.morcos@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28254 72102866-910b-0410-8b05-ffd578937521
2009-04-27 13:12:25 +00:00
fredkiefer
19dd864f83 * Headers/AppKit/NSBezierPath.h,
* Source/NSBezierPath.m
* (+bezierPathWithRoundedRect:xRadius:yRadius:, -appendBezierPathWithRoundedRect:xRadius:yRadius:):
New 10.5 methods.
Patch by Fred Morcos <fred.morcos@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28247 72102866-910b-0410-8b05-ffd578937521
2009-04-25 12:38:15 +00:00
rfm
670001bae8 fix for #26277
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28244 72102866-910b-0410-8b05-ffd578937521
2009-04-24 07:44:09 +00:00
gcasa
a3a2c81175 * Headers/AppKit/NSSearchFieldCell.h: Give the values assigned in
Cocoa to the enum.  Patch by: doug@riverrock.org
	* Source/NSSearchFieldCell.m: Implemented search menu template and
	recent items.  Patch by: doug@rivverrock.org
	* Source/NSSearchField.m: Call cell methods to use search menu.
	Patch by: doug@riverrock.org


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28233 72102866-910b-0410-8b05-ffd578937521
2009-04-19 04:50:04 +00:00
gcasa
c33944c2ee * Source/NSApplication.m: Make certain that a sheet is always placed
above the window it's supposed to appear relative to.   Change
	to runModalForWindow:relativeToWindow:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28232 72102866-910b-0410-8b05-ffd578937521
2009-04-19 04:23:34 +00:00
gcasa
6ea6f0f5e2 * Source/NSScrollView.m: If the scrollview has scrollers,
don't pay attention to the hidden flag in nib loading.
	* Source/NSTableView.m: if the table has a cornerview, don't
	pay attention to the hidden flag in nib loading.  
	NOTE: In both instances it appears that Cocoa sets the hidden flag 
	when autohide is set to true.   GNUstep handles this case differently,
	so it's okay to ignore this flag when the scroller is in an
	NSScrollView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28231 72102866-910b-0410-8b05-ffd578937521
2009-04-19 03:23:11 +00:00
gcasa
d1db66cd7c Revert previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28225 72102866-910b-0410-8b05-ffd578937521
2009-04-16 20:05:32 +00:00
gcasa
e13e7a38a5 Correct issue with sheets/panels appearing beneath other modal panels.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28224 72102866-910b-0410-8b05-ffd578937521
2009-04-16 19:02:30 +00:00
gcasa
a14429a2df * Source/GSHorizontalTypesetter.m: Use thread dictionary to hold
the instance of the typesetter for that thread.
	* Source/NSStringDrawing.m: Add locks to methods to prevent modification
	of static variables by separate threads from causing the application
	to get glyph generation errors.
	NOTE: These changes based on suggestions/ideas from Doug 
	Simons <doug@riverrock.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28219 72102866-910b-0410-8b05-ffd578937521
2009-04-15 01:27:42 +00:00
gcasa
1162ab09f8 * Source/GSWindowDecorationView.m: initialize offsets to prevent
negative value warnings suggested by Doug.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28206 72102866-910b-0410-8b05-ffd578937521
2009-04-12 23:17:49 +00:00
gcasa
869bc003ff * Source/NSSearchFieldCell.m: Correct issue displaying images for
search field.  Fix in initWithCoder: to reset image names.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28205 72102866-910b-0410-8b05-ffd578937521
2009-04-12 23:13:02 +00:00
fredkiefer
aa8a27e064 New method used by Apple NIB files.
Patch by Doug Simons <doug@riverrock.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28204 72102866-910b-0410-8b05-ffd578937521
2009-04-11 20:28:08 +00:00
gcasa
48db16364e * Source/NSApplication.m: Follow the NSApplication responder
chain.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28202 72102866-910b-0410-8b05-ffd578937521
2009-04-10 19:30:05 +00:00
gcasa
1d847dc588 * Source/NSSplitView.m: Set subviews to resize when loaded from
the nib. 
	* Source/NSView.m: Partial revert of previous change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28201 72102866-910b-0410-8b05-ffd578937521
2009-04-10 19:00:20 +00:00
gcasa
76c2a7ac1f Minor correction to previous commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28200 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:30:19 +00:00
gcasa
6a93fe4625 * Source/NSView.m: Autoresize subviews since it is not pulling it
from the nib correctly.  Will come back and fix this issue.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28199 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:29:22 +00:00
gcasa
6fa031ac7a Resize the subviews of the splitview.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28198 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:05:19 +00:00
gcasa
30cc46e496 * Source/NSTabView.m: Autoresize subviews when loaded from the nib
and set the mask to the make height and width resizable when the
	tab is selected


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28197 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:03:45 +00:00
gcasa
008615f225 * Source/NSDrawer.m: Correction for NSDrawer issues with draw
temporarily showing up above the window and not syncing with
	window position.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28196 72102866-910b-0410-8b05-ffd578937521
2009-04-10 17:30:54 +00:00
gcasa
bff13e455a * Source/NSAlert.m: in the method _initWithoutGModel add a call
to setLevel: to set the level to NSModalPanelWindowLevel.   This was
	not previously being done and was causing alert panels to get lost 
	behind other application windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28195 72102866-910b-0410-8b05-ffd578937521
2009-04-10 14:25:20 +00:00
gcasa
77635ad0d1 * Source/NSMenuView.m: Removed adjustment to Y coords in the
setWindowFrame... method.  This adjustment is only supposed to be
	done when a popup is under "restrictive screen conditions" which
	is currently unimplemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28191 72102866-910b-0410-8b05-ffd578937521
2009-04-10 05:33:14 +00:00
gcasa
384da96300 * Source/NSMenuView.m: In the method
- (void) setWindowFrameForAttachingToRect:... test if the view
	is flipped and make the adjustment.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28190 72102866-910b-0410-8b05-ffd578937521
2009-04-10 05:15:24 +00:00
gcasa
6573b6c50f * Source/NSMenuView.m: In the method
- (void) setWindowFrameForAttachingToRect:... changed how
	popup/pulldown buttons handle the preferred edge.
	Per Cocoa documentation, the selected cell should always show up
	over the button for popups.   For pull down menus, the preferred 
	edge is relevant.   This is also apparent from testing under Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28189 72102866-910b-0410-8b05-ffd578937521
2009-04-10 04:54:24 +00:00
gcasa
6addac1c7c * Source/NSRulerMarker.m: Changes suggested by Doug Simons for
allowing markers to be set on an NSMouseDown event.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28188 72102866-910b-0410-8b05-ffd578937521
2009-04-10 02:55:34 +00:00
gcasa
6b3ab20fe5 * Source/NSDocumentController.m: Return default type if the
URL is not a file URL and the call to typeFromFileExtension: returns
	nil in typeForContentsOfURL:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28187 72102866-910b-0410-8b05-ffd578937521
2009-04-08 02:24:27 +00:00
gcasa
b14f6d35eb * Headers/AppKit/NSSpeechSynthesizer.h: Added _module ivar.
* Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU.
	* Source/NSPasteboard.m: Retain the path since it's autoreleased.
	* Source/NSTextView.m: Set the textview to allow undos by default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28186 72102866-910b-0410-8b05-ffd578937521
2009-04-07 22:52:52 +00:00
fredkiefer
7d79f9683b Correct the calling of the delegate methods in the alert sheet
functions. Should fix #26101.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28185 72102866-910b-0410-8b05-ffd578937521
2009-04-07 20:54:41 +00:00
fredkiefer
3ce8f6bfd3 Add 10.5 methods and new ivar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28184 72102866-910b-0410-8b05-ffd578937521
2009-04-07 20:16:53 +00:00
stoyan
8c03924b6f * Source/NSSplitView.m (-mouseDown:): When checking if divider
position also check orientaion for _isVertical == NO situation.
This fix avoids situation when split view is vertical, postion
changed but method exists after next 'else if' check.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28181 72102866-910b-0410-8b05-ffd578937521
2009-04-06 21:55:04 +00:00
fredkiefer
05cdcc9d76 Fix a differnace to Cocoa and warn about another one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28135 72102866-910b-0410-8b05-ffd578937521
2009-03-26 22:37:47 +00:00
fredkiefer
7f7914ef97 Try to deal with the case when there is no current context.
May happen in secondard threads. Fixes #25943.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28133 72102866-910b-0410-8b05-ffd578937521
2009-03-25 08:40:38 +00:00
fredkiefer
719f644328 Set values for minSize, maxSize, horizontallyResizable and verticallyResizable
in the initializers consistently.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28132 72102866-910b-0410-8b05-ffd578937521
2009-03-25 08:14:30 +00:00
gcasa
3838770e32 * Source/NSSpeechSynthesizer.[hm]: Add code to tell the developer
that certain methods need to be overriden.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28124 72102866-910b-0410-8b05-ffd578937521
2009-03-23 16:23:46 +00:00
gcasa
0f55228069 * Headers/AppKit/AppKit.h: Add include for NSSpeechSynthesizer.h
* Headers/AppKit/NSSpeechSynthesizer.h: Declarations.
	* Source/GNUmakefile: Add new files.
	* Source/NSSpeechSynthesizer.m: Add initial skeleton for
	NSSpeechSynthesizer class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28121 72102866-910b-0410-8b05-ffd578937521
2009-03-23 06:36:50 +00:00
gcasa
58a0a30ac7 * Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Add
connection to _doneButton outlet.
	* Source/GSToolbarCustomizationPalette.m: Added code in init
	to set the state of the size checkbox.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28120 72102866-910b-0410-8b05-ffd578937521
2009-03-23 03:57:50 +00:00
gcasa
3b6b35f3e8 Changes for size mode support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28113 72102866-910b-0410-8b05-ffd578937521
2009-03-21 16:34:15 +00:00
gcasa
4ddc00a3b5 * Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Changed
formatting.  Added text field and buttons.
	* Source/GSToolbarCustomizationPalette.m: Added reset button and
	done button. 
	* Source/NSToolbarFrameworkPrivate.h: Added _resetConfig method.
	* Source/NSToolbar.m: Added _resetConfig method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28112 72102866-910b-0410-8b05-ffd578937521
2009-03-21 16:14:46 +00:00
gcasa
0ad1374043 * Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Add
Default item to popup and make the connection to the show: method
	to allow setting the toolbar display mode.
	* Source/GSToolbarCustomizationPalette.m: Enable changing of
	text, text & icon, icon only on the toolbar.   
	* Source/NSToolbar.m: Change _build method to load the 
	displayMode setting. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28110 72102866-910b-0410-8b05-ffd578937521
2009-03-21 14:23:41 +00:00
rfm
bb0a422594 make url loading easier
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28106 72102866-910b-0410-8b05-ffd578937521
2009-03-20 10:17:29 +00:00
fredkiefer
ad69731f71 Don't reference ivar after the object has been freed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28105 72102866-910b-0410-8b05-ffd578937521
2009-03-20 09:52:06 +00:00
fredkiefer
70acdf46bd Fix inconsitency in NSScrollView decoding that led to uninitialized
memory being used.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28103 72102866-910b-0410-8b05-ffd578937521
2009-03-20 08:58:07 +00:00
fredkiefer
c65acd8866 Fix small memory access bug found by valgrind.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28102 72102866-910b-0410-8b05-ffd578937521
2009-03-20 07:55:25 +00:00
rfm
d268c27a9e open some app that suppots the URL scheme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28094 72102866-910b-0410-8b05-ffd578937521
2009-03-18 16:12:37 +00:00
fredkiefer
d93b330bd2 Add parentheses to stop compiler from complaining.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28091 72102866-910b-0410-8b05-ffd578937521
2009-03-18 09:21:51 +00:00
gcasa
31e0c9633c * Source/GSToolbarView.m: Added code to save the configuration when
deleting an item as well as saving an item.
	* Source/NSToolbarFrameworkPrivate.h: removed old _loadConfig method
	added new methods to track changes to toolbars.
	* Source/NSToolbar.m: Added check for items already in the toolbar,
	removed calls to _loadConfig which were commented out, implemented
	setConfigurationFromDictionary: as described in the documentation,
	changed _build to get dictionary from defaults if it's there. 
	Implemented new method _containsItemWithIdentifier: and 
	_itemsFromConfig.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28084 72102866-910b-0410-8b05-ffd578937521
2009-03-16 07:33:31 +00:00
gcasa
e1b4fe3b38 Fixes to correct issues with toolbar pallete customization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28083 72102866-910b-0410-8b05-ffd578937521
2009-03-16 05:25:22 +00:00
gcasa
1ba10abc25 Fix for infinite notification loop which occurs with some nib files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28082 72102866-910b-0410-8b05-ffd578937521
2009-03-16 02:38:54 +00:00
gcasa
3cece3e73f Use new flags in initWithCoder:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28081 72102866-910b-0410-8b05-ffd578937521
2009-03-16 02:10:38 +00:00
gcasa
d770c39054 Add more flags for nib loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28080 72102866-910b-0410-8b05-ffd578937521
2009-03-16 00:28:39 +00:00
gcasa
963399be63 Minor cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28078 72102866-910b-0410-8b05-ffd578937521
2009-03-15 19:21:57 +00:00
gcasa
8d54101c02 * Source/NSScrollView.m: Remove FIXME comment and provided an
explaination for why a cast wasn't used.   Added nonDynamic flag
	as well as other flags from the nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28077 72102866-910b-0410-8b05-ffd578937521
2009-03-15 19:19:55 +00:00
fredkiefer
89ee2952bb Use setTitle: instead of setStringValue: for theme button.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28076 72102866-910b-0410-8b05-ffd578937521
2009-03-15 17:40:08 +00:00