by popular demand the return of the advanced bar (now Pieces Bar)

This commit is contained in:
Mitchell Livingston
2007-11-04 15:01:34 +00:00
parent d0353ecb5f
commit 3bccf26f23
8 changed files with 196 additions and 7 deletions

View File

@@ -2495,6 +2495,12 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
[self setWindowSizeToFit];
}
- (void) togglePiecesBar: (id) sender
{
[fDefaults setBool: ![fDefaults boolForKey: @"PiecesBar"] forKey: @"PiecesBar"];
[fTableView reloadData];
}
- (void) toggleStatusBar: (id) sender
{
[self showStatusBar: [fStatusBar isHidden] animate: YES];
@@ -2854,7 +2860,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
return [fWindow attachedSheet] == nil;
//enable sort and advanced bar items
if (action == @selector(setSort:) /*|| action == @selector(toggleAdvancedBar:) ||*/)
if (action == @selector(setSort:))
return [fWindow isVisible];
if (action == @selector(toggleSmallView:))
@@ -2862,6 +2868,12 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
[menuItem setState: [fDefaults boolForKey: @"SmallView"] ? NSOnState : NSOffState];
return [fWindow isVisible];
}
if (action == @selector(togglePiecesBar:))
{
[menuItem setState: [fDefaults boolForKey: @"PiecesBar"] ? NSOnState : NSOffState];
return [fWindow isVisible];
}
//enable show info
if (action == @selector(showInfo:))