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/MainController.h
Kim Wittenburg 221b43e29f Archive Project
2017-07-25 16:38:32 +02:00

38 lines
1.5 KiB
Objective-C
Executable File

//
// MainController.h
// iLyrics
//
// Created by Kim Wittenburg on 10.06.12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "iLyrics.h"
@interface MainController : NSObject <NSWindowDelegate, NSSplitViewDelegate, NSOutlineViewDataSource, NSOutlineViewDelegate>
@property (weak) IBOutlet NSMenuItem *iLyricsMenuItem;
@property (unsafe_unretained) IBOutlet NSWindow *window;
@property (weak) IBOutlet NSSearchField *searchField;
@property (weak) IBOutlet NSOutlineView *resultsOutline;
@property (weak) IBOutlet NSButton *showPreviewCheckBox;
@property (weak) IBOutlet NSPopover *previewPopover;
@property (unsafe_unretained) IBOutlet NSTextView *previewTextArea;
@property (weak) IBOutlet NSTextField *songLabel;
@property (weak) IBOutlet NSTextField *artistLabel;
@property (unsafe_unretained) IBOutlet NSTextView *lyricsArea;
@property (readonly) Lyrics *currentLyrics;
- (IBAction)getCurrentiTunesSong:(id)sender;
- (IBAction)getCurrentSpotifySong:(id)sender;
- (IBAction)startNewSearch:(id)sender;
- (IBAction)resetLoadedResults:(id)sender;
- (IBAction)lyricsSelectionChanged:(NSOutlineView *)sender;
- (IBAction)sendLyricsToiTunes:(id)sender;
- (IBAction)sendLyricsToCurrentiTunesTrack:(id)sender;
- (IBAction)sendLyricsToTracksMatchingTrack:(id)sender;
- (IBAction)downloadLyrics:(id)sender;
- (IBAction)showLyricsInBrowser:(id)sender;
- (IBAction)showiLyricsWindow:(id)sender;
- (void)saveToDefalts: (NSUserDefaults *)defaults;
- (void)loadFromDefaults: (NSUserDefaults *)defaults;
@end