mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
* Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Changed
formatting. Added text field and buttons. * Source/GSToolbarCustomizationPalette.m: Added reset button and done button. * Source/NSToolbarFrameworkPrivate.h: Added _resetConfig method. * Source/NSToolbar.m: Added _resetConfig method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28112 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
56c852e9be
commit
405c40fedc
6 changed files with 28 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
2009-03-21 12:13-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Changed
|
||||
formatting. Added text field and buttons.
|
||||
* Source/GSToolbarCustomizationPalette.m: Added reset button and
|
||||
done button.
|
||||
* Source/NSToolbarFrameworkPrivate.h: Added _resetConfig method.
|
||||
* Source/NSToolbar.m: Added _resetConfig method.
|
||||
|
||||
2009-03-21 09:57-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Add
|
||||
|
|
|
@ -2,13 +2,15 @@
|
|||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
FirstResponder = {
|
||||
Actions = (
|
||||
"reset:",
|
||||
"show:"
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
GSToolbarCustomizationPalette = {
|
||||
Actions = (
|
||||
"show:"
|
||||
"show:",
|
||||
"reset:"
|
||||
);
|
||||
Outlets = (
|
||||
_customizationWindow,
|
||||
|
|
Binary file not shown.
|
@ -297,6 +297,12 @@
|
|||
[_customizationWindow close];
|
||||
}
|
||||
|
||||
- (void) reset: (id) sender
|
||||
{
|
||||
// reset the toolbar to it's defaults.
|
||||
[_toolbar _resetConfig];
|
||||
}
|
||||
|
||||
- (void) paletteDidEnd: (NSNotification *)notif
|
||||
{
|
||||
[_toolbar _setCustomizationPaletteIsRunning: NO];
|
||||
|
|
|
@ -949,6 +949,15 @@ static GSValidationCenter *vc = nil;
|
|||
[_toolbarView _reload];
|
||||
}
|
||||
|
||||
- (void) _resetConfig
|
||||
{
|
||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||
NSString *tableKey =
|
||||
[NSString stringWithFormat: @"NSToolbar Config %@",_identifier];
|
||||
[defaults removeObjectForKey: tableKey];
|
||||
[self _build];
|
||||
}
|
||||
|
||||
- (BOOL) usesStandardBackgroundColor
|
||||
{
|
||||
return [_toolbarView _usesStandardBackgroundColor];
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
- (void) _validate: (NSWindow *)observedWindow;
|
||||
- (void) _toolbarViewWillMoveToSuperview: (NSView *)newSuperview;
|
||||
- (void) _saveConfig;
|
||||
- (void) _resetConfig;
|
||||
- (NSArray *) _itemsFromConfig;
|
||||
- (BOOL) _containsItemWithIdentifier: (NSString *) identifier;
|
||||
|
||||
|
|
Loading…
Reference in a new issue