* 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:
Gregory John Casamento 2010-02-28 04:31:54 +00:00
parent 694c273aee
commit cc37831c44
6 changed files with 80 additions and 4 deletions

View file

@ -57,6 +57,7 @@
#import "AppKit/NSWorkspace.h"
#include "GSGuiPrivate.h"
#include "GNUstepGUI/GSTheme.h"
#define _SAVE_PANEL_X_PAD 5
#define _SAVE_PANEL_Y_PAD 4
@ -671,7 +672,8 @@ selectCellWithString: (NSString*)title
{
if (_gs_gui_save_panel == nil)
{
_gs_gui_save_panel = [[NSSavePanel alloc] init];
Class savePanelClass = [[GSTheme theme] savePanelClass];
_gs_gui_save_panel = [[savePanelClass alloc] init];
}
[_gs_gui_save_panel _resetDefaults];