Commit graph

138 commits

Author SHA1 Message Date
Doug Simons
7bcce58ffe fix the save panel title to update correctly when it is set
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38437 72102866-910b-0410-8b05-ffd578937521
2015-03-26 20:03:54 +00:00
Frank Le Grand
4b27157a46 Merged Trunk changes from rev 35219 to TestPlant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36953 72102866-910b-0410-8b05-ffd578937521
2013-08-09 14:24:48 +00:00
Marcian Lytwyn
36e77b95f7 Merge from revision 35723 from main branch plus NSCell allowsUndo flag extract from xib
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35724 72102866-910b-0410-8b05-ffd578937521
2012-10-19 22:51:20 +00:00
Marcian Lytwyn
121b601eb0 Fix open/save panel runModal - should only default dir
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35541 72102866-910b-0410-8b05-ffd578937521
2012-09-09 00:52:57 +00:00
Marcian Lytwyn
37d5e64967 Modify WinNSOpenPanel to utilize base classes directory attribute variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35464 72102866-910b-0410-8b05-ffd578937521
2012-08-27 16:43:09 +00:00
Marcian Lytwyn
91399c7d53 Added NSOpenSavePanelDelegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35237 72102866-910b-0410-8b05-ffd578937521
2012-06-27 17:50:57 +00:00
Eric Wasylishen
30a76f4458 * Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:):
Set icon size based on cell's cellSize


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34346 72102866-910b-0410-8b05-ffd578937521
2011-12-22 19:08:47 +00:00
Eric Wasylishen
b2e98ecb59 * Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:):
Set file icons on browser cells in the open/save panels.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34322 72102866-910b-0410-8b05-ffd578937521
2011-12-19 01:00:07 +00:00
Eric Wasylishen
19b6765e49 * Source/NSOpenPanel.m: Use the NSSavePanel _allowedFileTypes ivar
in place of the _fileTypes ivar. Replace calls to _setupForTypes: with
-setAllowedFileTypes:.
* Headers/AppKit/NSOpenPanel.h: Remove now unused _fileTypes ivar
* Source/NSSavePanel.m: Treat directories whose names have extensions
in the _allowedFileTypes array as file packages.
Previously, we only relied on -[NSWorkspace isFilePackageAtPath:],
to determine if a director is a file package, which only considers the
info.plists of installed applications.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33810 72102866-910b-0410-8b05-ffd578937521
2011-09-07 07:46:28 +00:00
Fred Kiefer
5d344a2b0a Change all the runModal:... methods to return an NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33352 72102866-910b-0410-8b05-ffd578937521
2011-06-19 20:44:24 +00:00
Eric Wasylishen
a2f673e468 * Headers/AppKit/NSSavePanel.h:
* Source/NSSavePanel.m: Implement -setNameFieldStringValue:,
-nameFieldStringValue, -setNameFieldLabel:, -nameFieldLabel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32933 72102866-910b-0410-8b05-ffd578937521
2011-04-27 04:55:22 +00:00
Fred Kiefer
2e738f7ba2 Correct issues with missing or incorrect self
tests in initXXX methods pointed out by static analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32588 72102866-910b-0410-8b05-ffd578937521
2011-03-14 22:59:20 +00:00
Fred Kiefer
f6d4e48099 Use an image view instead of a button to display the application icon. That way
icons get scaled correctly.
Patch by Philippe Roussel <p.o.roussel@free.fr>.


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

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



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32560 72102866-910b-0410-8b05-ffd578937521
2011-03-14 02:25:08 +00:00
Fred Kiefer
2d01942e4b Replace #include -> #import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
Germán Arias
f999016f34 Applied changes in menuInWindow.patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31895 72102866-910b-0410-8b05-ffd578937521
2011-01-16 00:32:54 +00:00
Gregory John Casamento
3afec9e148 2011-01-09 21:58-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSSavePanel.m: (-_initWithoutGModel): added
	code near the and to close the current menu when in Win95
	mode.  If this doesn't happen the menu remains open
	and allows the user to drag the window around while the 
	menu remains in it's old position.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31864 72102866-910b-0410-8b05-ffd578937521
2011-01-10 02:48:30 +00:00
Fred Kiefer
de9abfb7ee Correct the definition of NSDragOperation and all its usages.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31754 72102866-910b-0410-8b05-ffd578937521
2010-12-22 16:16:14 +00:00
Fred Kiefer
da1abbdb04 Add method directoryURL to NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30278 72102866-910b-0410-8b05-ffd578937521
2010-05-02 10:21:40 +00:00
David Chisnall
a9ba2e5e77 Removed all uses of @defs() from -gui, so it now compiles cleanly with the non-fragile ABI. All ivars that must be accessed from other classes are now wrapped in PACKAGE_SCOPE. With clang, this expands to @package, with GCC it expands to @public.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30045 72102866-910b-0410-8b05-ffd578937521
2010-03-27 00:01:03 +00:00
Gregory John Casamento
cc37831c44 * Headers/Additions/GNUstepGUI/GSTheme.h: Add category to allow
overriding of classes used for save/open panels.
	* Source/GNUmakefile: Build new category.
	* Source/GSThemeOpenSavePanels.m: Implementation of methods
	-savePanelClass and -openPanelClass.
	* Source/NSOpenPanel.m: Modifications to use class from current 
	theme.
	* Source/NSSavePanel.m: Modifications to use class from current 
	theme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29791 72102866-910b-0410-8b05-ffd578937521
2010-02-28 04:31:54 +00:00
Riccardo Mottola
56ceebba48 do not draw form background
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29534 72102866-910b-0410-8b05-ffd578937521
2010-02-10 11:14:21 +00:00
Fred Kiefer
2d18e9cce8 Add missing internationalisation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29189 72102866-910b-0410-8b05-ffd578937521
2010-01-02 17:09:11 +00:00
Wolfgang Lux
ddb6ca07c4 Reset the allowsOtherFileTypes NSSavePanel attribute to its default
when a fresh save panel is requested.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29154 72102866-910b-0410-8b05-ffd578937521
2009-12-21 22:45:57 +00:00
Wolfgang Lux
103671a71e Avoid a bogus warning that was shown when a Save panel requires a file
type extension and the user has entered a file name without an
extension. In addition fix the filename method so that setting
allowsOtherFileTypes to YES works as advertised.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29126 72102866-910b-0410-8b05-ffd578937521
2009-12-15 22:52:40 +00:00
Wolfgang Lux
c9ae01cb7a Present a warning when the user enters a filename with a wrong
extension in NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29080 72102866-910b-0410-8b05-ffd578937521
2009-11-29 14:07:29 +00:00
Fred Kiefer
2229c7fc91 Optimize last change on NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27964 72102866-910b-0410-8b05-ffd578937521
2009-02-23 21:10:20 +00:00
Riccardo Mottola
0fed43fa2c Return autoreleased copy of the directory string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27857 72102866-910b-0410-8b05-ffd578937521
2009-02-13 19:11:06 +00:00
Wolfgang Lux
f980764a02 Make sure NSSavePanel and NSOpenPanel show the contents of their
initial directory regardless of the result of validation. This should
fix bug #25363.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27820 72102866-910b-0410-8b05-ffd578937521
2009-02-08 22:11:19 +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
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
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
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
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
db8e30700b Fix problems where the string value of a text field control might not
be updated while its cell is edited and where the save panel's text
form ignores the file name passed to -runModalForDirectory:file:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27059 72102866-910b-0410-8b05-ffd578937521
2008-11-14 23:12:33 +00:00
Wolfgang Lux
39f911eae7 Trigger the action of NSButton and NSPopUpButton in their keyDown
method only for the Space key.
Fix key view loop of NSAlert panels and NSSavePanel so that all
buttons become reachable with the Tab key.
Make Escape key equivalent of the Cancel button of NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27011 72102866-910b-0410-8b05-ffd578937521
2008-11-05 23:01:37 +00:00
Fred Kiefer
31293f108c Use flushWindow instead of [GSCurrentContext() flushGraphics].
Should fix #24200.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26837 72102866-910b-0410-8b05-ffd578937521
2008-09-08 19:28:05 +00:00
Fred Kiefer
bcd595e826 Standardize path before checking existance.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26770 72102866-910b-0410-8b05-ffd578937521
2008-07-12 18:27:41 +00:00
Adam Fedor
7afdd32ac1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
Richard Frith-MacDonald
285dddf250 make save and open panels usable on mswindows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26520 72102866-910b-0410-8b05-ffd578937521
2008-05-13 15:04:01 +00:00
Fred Kiefer
193e31e678 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
Fred Kiefer
a66882b17b Add new MacOSX 10.4 methods and constants to NSWindow. Requires
recompilation of all applications!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25469 72102866-910b-0410-8b05-ffd578937521
2007-09-09 12:19:01 +00:00
Sergii Stoian
fe8dd53463 * Source/NSSavePanel.m: ([_initWithoutGModel]) Change propeties of
buttons: remove setting buttons type (by default
  NSMomentaryPushInButton); refuse first responder for buttons.
  Set setImageDimsWhenDisabled:NO to image button. Cleanup.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25225 72102866-910b-0410-8b05-ffd578937521
2007-06-07 00:22:31 +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
Richard Frith-MacDonald
46be8e4caf Fix for bug #16688, but needs more investigation/work
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22995 72102866-910b-0410-8b05-ffd578937521
2006-05-29 08:47:32 +00:00
Fred Kiefer
43537498de Adopted dragging destination method return values to MacOSX 10.4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22893 72102866-910b-0410-8b05-ffd578937521
2006-05-10 22:11:28 +00:00
Fabien Vallon
248dcf44d8 Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22091 72102866-910b-0410-8b05-ffd578937521
2005-11-24 10:37:36 +00:00
Fabien Vallon
8c11f4903e Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22033 72102866-910b-0410-8b05-ffd578937521
2005-11-18 11:06:09 +00:00