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
Wolfgang Lux
44fb01a3fb
Replace calls to private method -_setupForTypes: in NSOpenPanel, as
...
that method was removed from its superclass NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34782 72102866-910b-0410-8b05-ffd578937521
2012-02-19 16:32:52 +00:00
Eric Wasylishen
f2fe6fead5
* Source/NSOpenPanel.m: Rewrite/simplify selection handling,
...
fix bug reported by Riccardo where OK button is disabled when
selecting directories after selecting a file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34480 72102866-910b-0410-8b05-ffd578937521
2012-01-10 18:42:04 +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
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
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
Quentin Mathe
217512165b
Overriden -[NSSavePanel runModal] in NSOpenPanel to take in account the allowed
...
file types as documented in Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31577 72102866-910b-0410-8b05-ffd578937521
2010-10-31 15:34:25 +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
Germán Arias
a3ea6e9598
Add missing internationalization and more localizable strings in spanish
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29193 72102866-910b-0410-8b05-ffd578937521
2010-01-03 04:41:36 +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
dd971a7f9b
Reset the current selection of an NSOpenPanel when directory selection
...
is disabled. This prevents bogus directories being returned from the
next modal session of the panel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29155 72102866-910b-0410-8b05-ffd578937521
2009-12-21 22:55:01 +00:00
Wolfgang Lux
93c18dfe7d
Do better job on validating the OK button of the Open panel. Replaces
...
the previous "fix" for bug #25471 , which made it impossible to use the
open panel for choosing directories (except by entering a fake file
name into the panel) and actually did not fix that bug other than by
coincidence.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29129 72102866-910b-0410-8b05-ffd578937521
2009-12-15 23:56:51 +00:00
Gregory John Casamento
c7059252b3
* Source/NSOpenPanel.m: Corrects bug #25471 . Only enable
...
the OK button when a file the application can open is selected.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27876 72102866-910b-0410-8b05-ffd578937521
2009-02-16 03:15:05 +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
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
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
0b9ee6f603
fix path to drive on mingw
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26524 72102866-910b-0410-8b05-ffd578937521
2008-05-14 08:59:55 +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
Richard Frith-MacDonald
436bd9b029
Fix error appending path components.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25218 72102866-910b-0410-8b05-ffd578937521
2007-06-03 07:47:10 +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
Fabien Vallon
97fb44c0ce
Improved documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22089 72102866-910b-0410-8b05-ffd578937521
2005-11-24 09:26:38 +00:00
Fabien Vallon
d269303a22
Improved documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22088 72102866-910b-0410-8b05-ffd578937521
2005-11-24 09:11:43 +00:00
Fabien Vallon
1a6c86957a
Improved documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22034 72102866-910b-0410-8b05-ffd578937521
2005-11-18 12:32:30 +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
Adam Fedor
303dd1baf9
Update FSF Address.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
Fred Kiefer
f351b52085
Use default filename from user defaults.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20752 72102866-910b-0410-8b05-ffd578937521
2005-02-19 17:00:00 +00:00
Fred Kiefer
419cde509b
Drawing change on NSBox.
...
Changed handling of buttons in save and open panel, this was possible after using different values for the run loop constants.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18708 72102866-910b-0410-8b05-ffd578937521
2004-02-29 00:11:51 +00:00
Richard Frith-Macdonald
a2f13a8686
Support typed in absolute paths and drag and drop of a single file.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17993 72102866-910b-0410-8b05-ffd578937521
2003-10-28 16:52:14 +00:00
Richard Frith-Macdonald
daf5efadae
More documentation tidyups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17302 72102866-910b-0410-8b05-ffd578937521
2003-07-22 16:52:17 +00:00
Richard Frith-Macdonald
5d38cbe75d
Tidyups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17276 72102866-910b-0410-8b05-ffd578937521
2003-07-21 09:59:52 +00:00
Benhur Stein
de241312ea
Fix bug #4255
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17182 72102866-910b-0410-8b05-ffd578937521
2003-07-10 14:52:55 +00:00
Adam Fedor
6be9174933
Include <> -> ""
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
Fred Kiefer
12f532ae25
Added new MacOSX methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15105 72102866-910b-0410-8b05-ffd578937521
2002-11-26 00:18:33 +00:00
Fred Kiefer
7a9a8d54a6
Corrected includes to speed up compilation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14972 72102866-910b-0410-8b05-ffd578937521
2002-11-11 00:15:29 +00:00
Adam Fedor
24653e2d38
Document NSDocumentController, imrpove setting directory.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14845 72102866-910b-0410-8b05-ffd578937521
2002-10-26 02:38:34 +00:00
Adam Fedor
356a824ea8
Document. Fix up NSDebugLogs
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14727 72102866-910b-0410-8b05-ffd578937521
2002-10-12 03:14:22 +00:00
Adam Fedor
01765b367c
Fix up for change in NSBrowser
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14419 72102866-910b-0410-8b05-ffd578937521
2002-09-08 04:21:10 +00:00
Nicola Pero
be371e47d7
Added missing #includes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13442 72102866-910b-0410-8b05-ffd578937521
2002-04-11 23:17:42 +00:00
Adam Fedor
d47e202fbe
Markup for autogsdoc
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
2001-12-17 16:51:51 +00:00
Nicola Pero
ae31bc8fce
Updated calls to setStringValue: to use @"" rather than nil
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11224 72102866-910b-0410-8b05-ffd578937521
2001-10-23 14:12:41 +00:00
Fred Kiefer
37ebea42c2
Implemented [URLs]. New method [_setupForDirectory:file:]. Simplified
...
[runModalForDirectory:file:types:]. Implemented
[runModalForDirectory:...relativeToWindow:] and [beginSheetForDirectory:...].
Declare all needed private methods from NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10924 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:10:10 +00:00
Pierre-Yves Rivaille
2500131c69
[NSSavePanel -runModalForDirectory:file:]
...
[NSOpenPanel -runModalForDirectory:file:types:]
Moved functionality from NSOpenPanel to NSSavePanel:
the "ok" button is shown as enabled or not at the beginning depending
on whether the given file is valid.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10702 72102866-910b-0410-8b05-ffd578937521
2001-08-13 14:57:20 +00:00
Adam Fedor
a56278096e
Merge from 0.7.0
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10329 72102866-910b-0410-8b05-ffd578937521
2001-07-09 02:49:03 +00:00
Mirko Viviani
60b8f20ce4
* Source/NSButtonCell.m ([NSButtonCell -setCellAttribute:to:]):
...
implemented.
([NSButtonCell -cellAttribute:]): implemented.
* Source/NSPopUpButton.m ([NSPopUpButton -keyDown:]): implemented
keyboard selection.
([NSPopUpButton -resignFirstResponder]): implemented.
([NSPopUpButton -resignKeyWindow]): implemented.
* Source/NSPopUpButtonCell.m ([NSPopUpButtonCell
-drawInteriorWithFrame:inView:]): from -drawWithFrame:inView:
* Source/NSButton.m ([NSButton -becomeFirstResponder]): set cell first
responder.
([NSButton -resignFirstResponder]): likewise.
([NSButton -becomeKeyWindow]): likewise.
([NSButton -resignKeyWindow]): likewise.
* Source/NSBrowserCell.m ([NSBrowserCell -drawInteriorWithFrame:
inView:]): draw correct dotted box.
* Source/NSBrowser.m ([NSBrowser -becomeFirstResponder]): make first
responder the latest column.
([NSBrowser -acceptsFirstResponder]): accepts first responder status.
([NSBrowser -keyDown:]): handle tabs to select next/previous key view.
([NSBrowser -moveRight:]): make browser column the first responder.
([NSBrowser -moveUp:]): likewise.
([NSBrowser -moveDown:]): likewise.
([NSBrowser -moveLeft:]): likewise.
([NSBrowser -_unloadFromColumn:]): remove columns from superview and
array.
([NSBrowser -_remapColumnSubviews:]): set the correct first responder.
* Source/NSWindow.m ([NSWindow -sendEvent:]): retain/release first
responder for keyUp/keyDown events. Discard NSLeftMouseDown for closed
windows.
([NSWindow -dealloc]): release _originalResponder
* Source/NSView.m ([NSView -removeSubview:]): remove next responder.
* Source/NSCell.m ([NSCell -setUpFieldEditorAttributes:]): clear
selected range.
([NSCell -editWithFrame:inView:editor:delegate:event:]): redisplay
textObject after invoking mouseDown:
([NSCell -drawInteriorWithFrame:inView:]): draw dotted-line outline
when first responder.
([NSCell -setCellAttribute:to:]): implemented.
* Source/NSTextView.m ([NSTextView -moveUp:]): don't call
_illegalMovement: for the text field editor.
([NSTextView -moveDown:]): likewise.
([NSTextView -moveLeft:]): likewise.
([NSTextView -moveRight:]): likewise.
* Source/NSTextField.m ([NSTextField -textDidEndEditing:]): fixed
return/tab/backtab text movement code.
* Headers/gnustep/gui/NSGraphics.h: added NSDottedFrameRect prototype.
* Headers/gnustep/gui/NSMatrix.h: added ivars for dotted frame rect.
* Source/NSMatrix.m ([NSMatrix -selectCell:]): implemented.
([NSMatrix -_selectCell:atRow:column:]): new method.
([NSMatrix -selectCellAtRow:column:]): call _selectCell:atRow:column:
([NSMatrix -selectCellWithTag:]): likewise.
([NSMatrix -selectAll:]): Do not select disabled or editable cells.
([NSMatrix -textDidEndEditing:]): fixed return/tab/backtab text
movement code.
([NSMatrix -_selectNextSelectableCellAfterRow:column:]): don't select
disabled cells.
([NSMatrix -_selectPreviousSelectableCellBeforeRow:column:]): likewise.
([NSMatrix -_privateFrame:mode:numberOfRows:numberOfColumns:]): set
dottedRow and dottedColumn.
([NSMatrix -insertRow:withCells:]): likewise.
([NSMatrix -removeColumn:]): likewise.
([NSMatrix -removeRow:]): likewise.
([NSMatrix -mouseDown:]): likewise and discard disabled cells.
([NSMatrix -drawRect:]): set shows cell first responder.
([NSMatrix -becomeFirstResponder]): draw dotted box for cell.
([NSMatrix -resignFirstResponder]): likewise.
([NSMatrix -becomeKeyWindow]): likewise.
([NSMatrix -resignKeyWindow]): likewise.
([NSMatrix -_setNeedsDisplayDottedCell]): likewise.
([NSMatrix -selectTextAtRow:column:]): set shows cell first responder.
([NSMatrix -setState:atRow:column:]): likewise. Deselect previous
selected cell in radio mode.
* Source/NSSavePanel.m (createRowsForColumn:): use _gsSavePanelCompare:
and check extension against _requiredFileType and not "app", "bundle",
etc.
([NSString -_gsSavePanelCompare:]): filename compare.
([NSSavePanel -_initWithoutGModel]): set key view for keyboard
interaction.
([NSSavePanel -keyDown:]): removed.
([NSSavePanel -controlTextDidEndEditing:]): removed.
* Source/NSOpenPanel.m ([NSOpenPanel -_shouldShowExtension:isDir:]):
added isDir argument.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9473 72102866-910b-0410-8b05-ffd578937521
2001-03-22 00:27:37 +00:00
Mirko Viviani
51d87dae28
2000-09-14 Mirko Viviani <mirko.viviani@rccr.cremona.it>
...
* Source/NSPanel.m ([GSAlertPanel
-initWithContentRect:styleMask:backing:defer:screen:]): set alternate
return image.
* Source/NSOpenPanel.m ([NSOpenPanel -controlTextDidEndEditing:]):
removed.
* Source/NSSavePanel.m ([NSSavePanel -controlTextDidEndEditing:]):
repost currentEvent.
([NSSavePanel -_initWithoutGModel]): removed form cell action, set
_okButton image.
([NSSavePanel -_performReturn:]): removed.
* Images/common_retH.tiff: new file.
* Images/GNUmakefile (IMAGE_FILES): update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7518 72102866-910b-0410-8b05-ffd578937521
2000-09-14 21:53:03 +00:00