Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ilyrics/iLyrics/PreferencesController.h
2012-06-18 23:41:56 +02:00

35 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