//
//  GSSourceViewController.h
//  Fonts
//
//  Created by Georg Seifert on 03.11.08.
//  Copyright 2008 schriftgestaltung.de. All rights reserved.
//

@class GSFontViewController;
@class GSSidebarItem;
@class GSEditFilterWindowController;

@interface GSFontViewSidebarController : NSViewController <NSPopoverDelegate, NSMenuDelegate>
#if !TARGET_OS_IOS
@property (unsafe_unretained, nonatomic) IBOutlet GSFontViewController *controller;
@property (unsafe_unretained, nonatomic) IBOutlet NSOutlineView *myOutlineView;
@property (unsafe_unretained, nonatomic) IBOutlet NSTreeController *treeController;
@property (strong, nonatomic) GSEditFilterWindowController *editFilterWindowController;
@property (unsafe_unretained, nonatomic) IBOutlet NSButton *toggleDetailViewButton;

@property (readonly) NSArray *selectedTags;

#ifndef GLYPHS_VIEWER
@property (unsafe_unretained, nonatomic, readonly) NSString *buttonTitle;
#endif
@property (strong, nonatomic) NSArray *glyphGroups;

#ifndef GLYPHS_VIEWER

- (NSMenu *)outlineView:(NSOutlineView *)outlineView menuForItem:(id)item;

- (void)outlineView:(NSOutlineView *)outlineView doubleClickOnItem:(id)item;

#endif

- (void)selectAll:(id)sender;

- (IBAction)addCustomFilter:(id)sender;

- (IBAction)addCustomList:(id)sender;

- (IBAction)removeCustomFilter:(id)sender;

- (IBAction)sidebarAction:(id)sender;

- (void)setup;

- (void)updateTagsItem;

- (void)update;
#endif
@end
