Commit graph

5817 commits

Author SHA1 Message Date
Adam Fedor
a0ed4f9ca6 Stable 0.16.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/stable@27390 72102866-910b-0410-8b05-ffd578937521
2008-12-22 00:14:39 +00:00
Adam Fedor
172a4e321f Fix date
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27384 72102866-910b-0410-8b05-ffd578937521
2008-12-22 00:09:50 +00:00
Adam Fedor
3c6fab8849 Version 0.16.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27380 72102866-910b-0410-8b05-ffd578937521
2008-12-22 00:08:20 +00:00
Wolfgang Lux
ad13684362 Fix implementation of NSTextView's transpose action to really match
the implementation of Emacs' transpose command.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27366 72102866-910b-0410-8b05-ffd578937521
2008-12-21 11:40:58 +00:00
Wolfgang Lux
8279ffddbb Replace NSTextView's provisional implementation of
-centerSelectionInVisibleArea: by a correct one.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27365 72102866-910b-0410-8b05-ffd578937521
2008-12-21 11:31:55 +00:00
Wolfgang Lux
daedd434bb Minor NSTextView fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27364 72102866-910b-0410-8b05-ffd578937521
2008-12-21 11:24:19 +00:00
Gregory John Casamento
555fc13e2e * Source/GSNibLoading.m: Read objects/accessibility and oids
maps if we are in a gui builder so that data is accessible.
        * Source/NSActionCell.m: Don't archive target/action if they
        have no values.
        * Source/NSMenu.m: Only archive as "_NSMainMenu" if it has
        no parent and is not owner by a popup.
        * Source/NSPopUpButtonCell.m: Archive the default menu item
        which will show when this popup is displayed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27363 72102866-910b-0410-8b05-ffd578937521
2008-12-21 03:11:08 +00:00
Wolfgang Lux
232de18e5e Fix a crash during undo/redo when a text storage is shared among
multiple text views and some of these views are closed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27360 72102866-910b-0410-8b05-ffd578937521
2008-12-19 23:51:25 +00:00
Wolfgang Lux
e906e7378d Attempt to perform key equivalents in the key window before the main
menu as on OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27359 72102866-910b-0410-8b05-ffd578937521
2008-12-19 23:17:42 +00:00
Nicola Pero
1a322bec32 Fixed typo in my last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27348 72102866-910b-0410-8b05-ffd578937521
2008-12-19 13:03:31 +00:00
Nicola Pero
041abd2cdd Removed GNUSTEP_CORE_SOFTWARE=YES from makefiles and instead set PACKAGE_NAME=gnustep-gui
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27347 72102866-910b-0410-8b05-ffd578937521
2008-12-19 13:00:47 +00:00
Nicola Pero
8326c8fb5e Set GNUSTEP_CORE_SOFTWARE to YES so that gnustep-gui is installed by default in SYSTEM if gnustep-make has been configured with --disable-packages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27334 72102866-910b-0410-8b05-ffd578937521
2008-12-18 18:45:01 +00:00
Gregory John Casamento
c6ba3b8f8b * Source/GSNibLoading.m: Remove change which resets the bounds
in NSCustomView as it was not needed and caused issues in some 
	cases.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27326 72102866-910b-0410-8b05-ffd578937521
2008-12-18 02:14:02 +00:00
Richard Frith-MacDonald
d9e9d4f198 fixup error in last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27324 72102866-910b-0410-8b05-ffd578937521
2008-12-17 13:26:17 +00:00
Gregory John Casamento
69d27431a9 * Source/GSNibLoading.m: Correct issue with setting next key view and
previous key view.
	* Source/NSView.m: Comment out frame/bounds matrix calculation since they
	are done when needed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27317 72102866-910b-0410-8b05-ffd578937521
2008-12-17 00:36:12 +00:00
Gregory John Casamento
941c0684cb * Source/GSNibLoading.m: Changes to initialize bounds in
NSCustomView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27316 72102866-910b-0410-8b05-ffd578937521
2008-12-16 22:17:27 +00:00
Gregory John Casamento
1ecd731b02 * Source/NSView.m: Add back in matrix initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27315 72102866-910b-0410-8b05-ffd578937521
2008-12-16 21:56:47 +00:00
Wolfgang Lux
37cb9d46b0 Scroll NSTextView during dragging if the mouse pointer is close to the
border of the view's visible rectangle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27313 72102866-910b-0410-8b05-ffd578937521
2008-12-16 21:13:21 +00:00
Richard Frith-MacDonald
50a4201f22 Fix bug recognising path extensions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27309 72102866-910b-0410-8b05-ffd578937521
2008-12-16 19:31:50 +00:00
Fred Kiefer
734a6c759d Make the button redraw after setting the image.
Don't do anything when the same contents view gets set on the window
again.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27308 72102866-910b-0410-8b05-ffd578937521
2008-12-16 19:28:25 +00:00
Gregory John Casamento
21cf915c13 * Source/GSNibLoading.m: Make the log ino debug in awakeFromNib
* Source/NSApplication.m: Allow modal to end multiple times, per spec
        there is no exception for doing this.
        * Source/NSPasteboard.m: Allow multiple threads in pasteboard
        communication.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27306 72102866-910b-0410-8b05-ffd578937521
2008-12-16 18:59:26 +00:00
Fred Kiefer
e9aba06b34 Draw the background colour even when it is the clear colour.
(Fixes issue on xlib backend)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27302 72102866-910b-0410-8b05-ffd578937521
2008-12-16 08:00:29 +00:00
Gregory John Casamento
657bbb61c8 * Images/common_ToolbarCustomizeToolbarItem.tiff
* Images/GNUmakefile: Add new image for toolbar customization.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27300 72102866-910b-0410-8b05-ffd578937521
2008-12-16 02:23:00 +00:00
Gregory John Casamento
b10f360ccb * Source/GSNibLoading.m: remove extraneous awakeFromNib call in
nibInstantiateWithOwner:topLevelObjects:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27299 72102866-910b-0410-8b05-ffd578937521
2008-12-16 00:43:42 +00:00
Gregory John Casamento
214c745d1c * Headers/Additions/GNUstepGUI/GSNibLoading.h: Added methods to header
which were added during refactoring.
        * Source/GSNibLoading.m: Corrections to NSCustomView, refactoring.
        Changes to initialization logic to call awakeFromNib.
        * Source/NSBundleAdditions.m: Cleanup to move code to the nib loading
        code.
        * Source/NSClipView.m: Added assertion to guarantee that no
        NSCustomView is unarchived at time of initWithCoder: being called.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27298 72102866-910b-0410-8b05-ffd578937521
2008-12-15 23:34:09 +00:00
Fred Kiefer
2f0af2bf1b Ignore function keys as key equivalents.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27297 72102866-910b-0410-8b05-ffd578937521
2008-12-15 22:42:51 +00:00
Fred Kiefer
a492085ebe Don't invalidate valid cached representations. The new cache would have
exactly the same contents.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27295 72102866-910b-0410-8b05-ffd578937521
2008-12-15 17:14:30 +00:00
Wolfgang Lux
606df8c1b1 Ensure that new windows properly show their document edited status.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27292 72102866-910b-0410-8b05-ffd578937521
2008-12-14 19:15:18 +00:00
Wolfgang Lux
91f3b7674b Implement NSDocument autosaving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27288 72102866-910b-0410-8b05-ffd578937521
2008-12-14 16:39:15 +00:00
Wolfgang Lux
c3b2fa7059 Perform column validation for NSSavePanel (and thereby NSOpenPanel)
whenever the panel's browser is scrolled, since only the contents of
the visible columns is validated.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27287 72102866-910b-0410-8b05-ffd578937521
2008-12-14 14:31:41 +00:00
Fred Kiefer
d1695ecc3c Reorganize image caching code to make it easier to understand and
change. And a bit faster too.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27286 72102866-910b-0410-8b05-ffd578937521
2008-12-13 19:32:54 +00:00
Gregory John Casamento
8d584d8b43 * Source/NSOutlineView.m: Added change suggested by Doug in
bug #25078.  This should fix the problem in SVN.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27285 72102866-910b-0410-8b05-ffd578937521
2008-12-13 00:32:24 +00:00
Fred Kiefer
655fa58b2c Try to stop redundant redars of the NSBrowser, by only getting the
ownership of the titlecell during drawing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27284 72102866-910b-0410-8b05-ffd578937521
2008-12-12 20:16:14 +00:00
Gregory John Casamento
05bec8c892 * Headers/Additions/GNUstepGUI/GSNibLoading.h: Added new method
nibInstantiateWithCoder: to do the initialization normally done
        in NSView when not in IB/Gorm.
        * Source/GSNibLoading.m: Added implementation of new method and
        also re-wrote part of NSCustomView.
        * Source/NSView.m: Added an NSAssert to assure that no subview
        ever decoded is an NSCustomView.
---
Moved decoding of custom view attributes here so that it can cleanly initialize everything to ensure that the view works properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27281 72102866-910b-0410-8b05-ffd578937521
2008-12-12 07:03:48 +00:00
Fred Kiefer
97d5040a02 Made the code a bit more tolerant on matching colour spaces during
image conversion.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27280 72102866-910b-0410-8b05-ffd578937521
2008-12-11 23:34:56 +00:00
Gregory John Casamento
ec503ee59d * Source/GSNibLoading.m: Change code which adds subviews to use
an enumerator.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27273 72102866-910b-0410-8b05-ffd578937521
2008-12-10 07:26:06 +00:00
Gregory John Casamento
8068661f12 * Source/GSNibLoading.m: Add back code with adds in subviews from
the custom view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27272 72102866-910b-0410-8b05-ffd578937521
2008-12-10 06:48:43 +00:00
Gregory John Casamento
2e585bc667 * Source/GSNibLoading.m: (-[NSCustomView initWithCoder:]) replace
with real object and also replace in the coder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27271 72102866-910b-0410-8b05-ffd578937521
2008-12-10 06:32:08 +00:00
Gregory John Casamento
a35e14751d * Source/GSGormLoading.m: (-[GSNibItem initWithCoder:]) initialize
NSApplication and subclasses using sharedApplication.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27270 72102866-910b-0410-8b05-ffd578937521
2008-12-10 04:22:05 +00:00
Wolfgang Lux
50af44f4e8 Add a provisional implementation of the centerSelectionInVisibleArea:
responder method to NSTextView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27267 72102866-910b-0410-8b05-ffd578937521
2008-12-09 21:47:55 +00:00
Wolfgang Lux
239a9af20a Change the extension of the file name entered into a NSSavePanel's
text form when the set of allowed file types is changed and the
current extension is no longer allowed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27266 72102866-910b-0410-8b05-ffd578937521
2008-12-09 21:43:59 +00:00
Fred Kiefer
ea51783cbb Clean up for NSTextFieldCell and resulting changes to sub classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27260 72102866-910b-0410-8b05-ffd578937521
2008-12-08 16:28:13 +00:00
Gregory John Casamento
8e20be5f2d * Source/NSTableView.m: Switch to the alternate highlighting color
only when the background is white.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27252 72102866-910b-0410-8b05-ffd578937521
2008-12-08 03:44:52 +00:00
Gregory John Casamento
5518bc8938 * Source/NSTableView.m: Change highlighting color so that it shows
on both white and grey backgrounds.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27251 72102866-910b-0410-8b05-ffd578937521
2008-12-08 03:26:23 +00:00
Fred Kiefer
25353583be Made all initialisation methods on NSWindowController a bit safer. Solves bug #25004.
Don't draw an empty rect in NSCachedImageRep. Fixes the remaining issue of #22282.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27250 72102866-910b-0410-8b05-ffd578937521
2008-12-07 21:22:13 +00:00
Wolfgang Lux
aeec5f704c Start drag operation in NSTextView only after a single click into the
selected range.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27244 72102866-910b-0410-8b05-ffd578937521
2008-12-07 09:38:15 +00:00
Richard Frith-MacDonald
d78a39478c Use lightweight header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27239 72102866-910b-0410-8b05-ffd578937521
2008-12-07 05:58:33 +00:00
Richard Frith-MacDonald
bff954868b fixup finding tools on mingw
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27238 72102866-910b-0410-8b05-ffd578937521
2008-12-07 05:39:29 +00:00
Wolfgang Lux
978d3ef1fb NSSavePanel and NSOpenPanel now use the information provided by
NSWorkspace in order to identify file packages.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27232 72102866-910b-0410-8b05-ffd578937521
2008-12-06 19:05:38 +00:00
Wolfgang Lux
290b38361d Update the browser of NSSavePanel and NSOpenPanel when the list of
allowed file extensions is changed.
Also fix bug in NSSavePanel's _shouldShowExtension:isDir: introduced
in previous check in.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27231 72102866-910b-0410-8b05-ffd578937521
2008-12-06 18:38:27 +00:00