Commit graph

5776 commits

Author SHA1 Message Date
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
Richard Frith-MacDonald
f255ae36f0 ignore files beginiing with .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27230 72102866-910b-0410-8b05-ffd578937521
2008-12-06 18:35:01 +00:00
Wolfgang Lux
02bce68800 Implement support for document types with multiple allowed file
extensions in NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27228 72102866-910b-0410-8b05-ffd578937521
2008-12-06 17:06:05 +00:00
Wolfgang Lux
51ae4e18a6 Make NSOpenPanel and NSSavePanel consistently start up in the last
used directory by default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27220 72102866-910b-0410-8b05-ffd578937521
2008-12-06 14:11:46 +00:00
Wolfgang Lux
c476e3fa6d Fix bug where a NSDocument would appear unmodified after saving the
document, undoing a number of changes, and then making an equal number
of changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27219 72102866-910b-0410-8b05-ffd578937521
2008-12-06 13:24:00 +00:00
Wolfgang Lux
fe56e4959d Implement undo: and redo: responder actions in NSWindow as on Mac OS X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27218 72102866-910b-0410-8b05-ffd578937521
2008-12-06 10:58:38 +00:00
Richard Frith-MacDonald
7f9939a624 clarify#
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27216 72102866-910b-0410-8b05-ffd578937521
2008-12-06 08:13:13 +00:00
Richard Frith-MacDonald
19b84c87b4 Fix failure to locate tools
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27215 72102866-910b-0410-8b05-ffd578937521
2008-12-06 08:01:09 +00:00
Gregory John Casamento
09955c2002 * Source/GSNibLoading.m: Check to make sure the menu has more than
0 entries in _setMain:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27206 72102866-910b-0410-8b05-ffd578937521
2008-12-04 03:33:02 +00:00
Gregory John Casamento
f74ca7e5c1 * Source/NSDocumentController.m: Fixed fileExtensionFromType:,
bug #24894


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27205 72102866-910b-0410-8b05-ffd578937521
2008-12-03 22:19:36 +00:00
Gregory John Casamento
ccf577f687 * Source/GSInfoPanel.m: -[GSInfoPanel initWithDictionary:]
don't show authors in the info panel if there are none given
	in the dictionary.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27199 72102866-910b-0410-8b05-ffd578937521
2008-12-03 06:34:50 +00:00
Gregory John Casamento
0f92239a0b * Source/NSApplication.m: Always resize icon to 48x48 so that
icons larger than this will display correctly.  Change made in
	setApplicationIconImage:. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27197 72102866-910b-0410-8b05-ffd578937521
2008-12-03 06:08:12 +00:00
Gregory John Casamento
0425232826 * Source/GSNibLoading.m: Added some new methods to address
bug #24985.
	* Source/NSMenu.m: Removed some spaces after a close brace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27196 72102866-910b-0410-8b05-ffd578937521
2008-12-03 04:52:06 +00:00
Gregory John Casamento
03d2fc6b14 Fix for bug #24785.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27195 72102866-910b-0410-8b05-ffd578937521
2008-12-03 00:48:42 +00:00
Richard Frith-MacDonald
a06a8ceb9e Fix bug #24990
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27194 72102866-910b-0410-8b05-ffd578937521
2008-12-02 23:06:49 +00:00
Richard Frith-MacDonald
74aae24e15 Fix bug #24672
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27193 72102866-910b-0410-8b05-ffd578937521
2008-12-02 22:54:38 +00:00
Richard Frith-MacDonald
10fe2a1e3b fix uninitialised variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27191 72102866-910b-0410-8b05-ffd578937521
2008-12-02 22:39:37 +00:00
Gregory John Casamento
7e2e7607b5 * Source/GSNibLoading.m
* Source/NSButtonCell.m
	* Source/NSNibAXAttributeConnector.m
	* Source/NSNibAXRelationshipConnector.m
	* Source/NSNibBindingConnector.m
	* Source/NSNib.m
	* Source/NSProgressIndicator.m: Change to use new headers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27189 72102866-910b-0410-8b05-ffd578937521
2008-12-02 07:27:14 +00:00
Gregory John Casamento
252c5e6ccd * Headers/Additions/GNUstepGUI/GSNibCompatibility.h: Remove
* Headers/Additions/GNUstepGUI/GSNibTemplates.h: Remove 
	* Source/GNUmakefile: Update to reference new files.
	* Source/GSGormLoader.m: Change to reference the 
	* Source/GSGormLoading.m: New gorm loading file.
	* Source/GSNibCompatibility.m: Removed.
	* Source/GSNibLoader.m: Reference the new file.
	* Source/GSNibLoading.m: New file containing the nib loading logic.
	* Source/GSNibTemplates.m: Removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27188 72102866-910b-0410-8b05-ffd578937521
2008-12-02 07:05:19 +00:00
Gregory John Casamento
fd6062af3b * Source/GSNibCompatibility.m: Fix for bug #24979. Change in
initWithCoder: for NSCustomView to return the real object directly 
	and call nibInstantiate.  Change to prevent double instantiation
	of NSApplication.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27186 72102866-910b-0410-8b05-ffd578937521
2008-12-02 06:39:48 +00:00
Gregory John Casamento
baf9f5de3f Update changelog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27185 72102866-910b-0410-8b05-ffd578937521
2008-12-02 05:32:40 +00:00
Gregory John Casamento
5a414944de Change so that echos bullets by default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27184 72102866-910b-0410-8b05-ffd578937521
2008-12-01 23:57:21 +00:00
Wolfgang Lux
e21870de5d Fix header syntax in install.sh and provide default for make command
argument.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27181 72102866-910b-0410-8b05-ffd578937521
2008-11-30 17:39:33 +00:00
Richard Frith-MacDonald
bacf599365 Fix uninitialised variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27177 72102866-910b-0410-8b05-ffd578937521
2008-11-30 14:06:15 +00:00
Gregory John Casamento
5df9b0ddb3 (Updated last comment in ChangeLog)
* Source/GSNibCompatibility.m: Added back in _root assignment in
	-[NSIBObjectData initWithCoder:].  It's removal caused an issue with
	loading some nibs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27171 72102866-910b-0410-8b05-ffd578937521
2008-11-29 05:53:34 +00:00
Gregory John Casamento
df0e44c0ec * Source/GSNibCompatibility.m: Added back in _root assignment in
-[NSIBObjectData initWithCoder:] which was causing an issue.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27170 72102866-910b-0410-8b05-ffd578937521
2008-11-29 05:39:36 +00:00
Gregory John Casamento
8c5b239f5a * Source/GSNibCompatibility.m: Correct issue when loading into
Gorm.  NSClassSwapper should check to see if it's in the gui builder
	and return the appropriate class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27169 72102866-910b-0410-8b05-ffd578937521
2008-11-28 20:16:26 +00:00
Gregory John Casamento
b74117a2ac Install into SYSTEM when using install.sh
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27165 72102866-910b-0410-8b05-ffd578937521
2008-11-28 03:12:37 +00:00
Gregory John Casamento
3bde1ce15d * Source/GSNibCompatibility.m: Corrected issue with using generic
cells on some controls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27153 72102866-910b-0410-8b05-ffd578937521
2008-11-27 15:07:09 +00:00