36 lines
1.1 KiB
Objective-C
36 lines
1.1 KiB
Objective-C
//
|
|
// PreferencesController.h
|
|
// iLyrics
|
|
//
|
|
// Created by Kim Wittenburg on 14.06.12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "LyricsHoster.h"
|
|
#import "PreferencesWindow.h"
|
|
#import "AutoLyrics.h"
|
|
|
|
@interface PreferencesController : NSObject <NSWindowDelegate, NSTableViewDataSource>
|
|
|
|
@property (unsafe_unretained) IBOutlet PreferencesWindow *preferencesWindow;
|
|
@property (weak) IBOutlet NSToolbarItem *generalButton;
|
|
@property (weak) IBOutlet NSTableView *hosterTable;
|
|
@property NSArray *hosters;
|
|
@property (weak) IBOutlet NSView *generalView;
|
|
@property (weak) IBOutlet NSView *autoLyricsView;
|
|
@property (weak) IBOutlet NSButton *toggleAutoLyricsButton;
|
|
@property (weak) IBOutlet NSButton *replaceOldCheckBox;
|
|
|
|
-(void) addHoster: (id<LyricsHoster>) hoster;
|
|
-(void) removeHoster: (id<LyricsHoster>) hoster;
|
|
|
|
- (IBAction)showGeneralPreferences:(id)sender;
|
|
- (IBAction)showAutoLyricsPreferences:(id)sender;
|
|
|
|
- (IBAction)toggleAutoLyrics:(id)sender;
|
|
- (IBAction)changeAutoLyricsInterval:(id)sender;
|
|
- (IBAction)toggleReplaceOldLyrics:(id)sender;
|
|
|
|
@end
|