-Repositioned the load more results button into the outline view -Improved the replacing of html escape characters -Lyrics Hosters can now be dragged into a preferred order in the preference window -Changed results outline's column ordering method -Some code changes -Replaced the Buttons in the lyrics pane with an action button -Preferred order of lyrics hosters will now be saved -Translation Improvements
36 lines
1.4 KiB
Objective-C
36 lines
1.4 KiB
Objective-C
//
|
|
// 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)downloadLyrics:(id)sender;
|
|
- (IBAction)showLyricsInBrowser:(id)sender;
|
|
- (IBAction)showiLyricsWindow:(id)sender;
|
|
- (void)saveToDefalts: (NSUserDefaults *)defaults;
|
|
- (void)loadFromDefaults: (NSUserDefaults *)defaults;
|
|
@end
|