* 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
This commit is contained in:
gcasa 2010-02-28 04:31:54 +00:00
parent 8ae82c7bb3
commit 1e25c52b89
6 changed files with 80 additions and 4 deletions

View file

@ -53,6 +53,7 @@
#import "AppKit/NSOpenPanel.h"
#include "GSGuiPrivate.h"
#include "GNUstepGUI/GSTheme.h"
static NSString *
pathToColumn(NSBrowser *browser, int column)
@ -262,8 +263,10 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
+ (NSOpenPanel *) openPanel
{
if (!_gs_gui_open_panel)
_gs_gui_open_panel = [[NSOpenPanel alloc] init];
{
Class openPanelClass = [[GSTheme theme] openPanelClass];
_gs_gui_open_panel = [[openPanelClass alloc] init];
}
[_gs_gui_open_panel _resetDefaults];
return _gs_gui_open_panel;