Skip to content

Commit

Permalink
Remove diumoo link panel
Browse files Browse the repository at this point in the history
  • Loading branch information
shanzi committed Jun 15, 2016
1 parent 9159058 commit b13bc1d
Show file tree
Hide file tree
Showing 6 changed files with 709 additions and 4,074 deletions.
2 changes: 1 addition & 1 deletion diumoo/diumoo-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>2476</string>
<string>2482</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.music</string>
<key>LSMinimumSystemVersion</key>
Expand Down
3 changes: 0 additions & 3 deletions diumoo/ui/DMPanel/DMPanelWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ - (void)controlAction:(id)sender
case 7:
[PLTabPreferenceControl showPrefsAtIndex:0];
break;
case 8:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://diumoo.net/channels"]];
break;
case 9:
[[DMSearchPanelController sharedSearchPanel] showWindow:nil];
break;
Expand Down
15 changes: 3 additions & 12 deletions diumoo/ui/DMPrefsPanel/DMPrefsPanelDataProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
#import "PLTabPreferenceControl.h"
#import <Foundation/Foundation.h>

#define PANEL_VIEW_COUNT 6
#define PANEL_VIEW_COUNT 5

#define GENERAL_PANEL_ID 0
#define ACCOUNT_PANEL_ID 1
#define KEYBINDINGS_PANNEL_ID 2
#define DMLINK_PANEL_ID 3
#define SPACE_PANEL_ID 4
#define INFO_PANEL_ID 5
#define SPACE_PANEL_ID 3
#define INFO_PANEL_ID 4

@interface DMPrefsPanelDataProvider : NSObject <PLTabPreferenceDelegate> {
// tab controller ( file owner )
Expand Down Expand Up @@ -63,14 +62,6 @@
IBOutlet MASShortcutView* togglePanelShortcut;
IBOutlet MASShortcutView* showPrefsPanel;

//------ DiumooLink outlet ---------
IBOutlet NSTextField* diumooLinkTitle;
IBOutlet NSTextField* diumooLinkDescription;
IBOutlet NSButton* installSafriPligin;
IBOutlet NSButton* installFirefoxPlugin;
IBOutlet NSButton* installChromePlugin;
IBOutlet NSButton* viewDetails;

//------ info outlet ---------------
IBOutlet NSTextField* displayName;
IBOutlet NSTextField* version;
Expand Down
28 changes: 0 additions & 28 deletions diumoo/ui/DMPrefsPanel/DMPrefsPanelDataProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ - (NSString*)titleForPreferencePanelAt:(NSInteger)index
case INFO_PANEL_ID:
return NSLocalizedString(@"PREF_ABOUT", @"关于");
break;
case DMLINK_PANEL_ID:
return @"diumoo Helper";
break;
default:
return @"";
break;
Expand All @@ -65,8 +62,6 @@ - (NSImage*)imageForPreferencePanelAt:(NSInteger)index
case INFO_PANEL_ID:
return [NSImage imageNamed:NSImageNameInfo];
break;
case DMLINK_PANEL_ID:
return [NSImage imageNamed:NSImageNameNetwork];
default:
return nil;
break;
Expand All @@ -88,9 +83,6 @@ - (NSView*)panelViewForPreferencePanelAt:(NSInteger)index
case INFO_PANEL_ID:
return info;
break;
case DMLINK_PANEL_ID:
return diumoohelper;
break;
default:
return nil;
break;
Expand Down Expand Up @@ -314,26 +306,6 @@ - (void)awakeFromNib
}
}

- (IBAction)installBrowserPlugins:(id)sender
{
switch ([sender tag]) {
case 0:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://diumoo.net/extensions"]];
break;
case 1:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://chrome.google.com/webstore/detail/bhcipoegncngbamefblmbehlppibdgfe"]];
break;
case 2:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://diumoo.net/extensions/downloads.html"]];
break;
case 3:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://diumoo.net/extensions/downloads.html"]];
break;
default:
break;
}
}

- (IBAction)donation:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://diumoo.net/"]];
Expand Down
Loading

0 comments on commit b13bc1d

Please sign in to comment.