Skip to content

Commit

Permalink
Add history button
Browse files Browse the repository at this point in the history
  • Loading branch information
typcn committed Jan 26, 2016
1 parent c48b310 commit fb8c4ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bilibili/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1742</string>
<string>1744</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down
6 changes: 6 additions & 0 deletions bilibili/MainView/ToolBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ - (IBAction)menu:(id)sender {
[theMenu setAutoenablesItems:YES];
[[theMenu addItemWithTitle:NSLocalizedString(@"复制链接",nil) action:@selector(copyLink) keyEquivalent:@""] setTarget:self];
[[theMenu addItemWithTitle:NSLocalizedString(@"下载管理",nil) action:@selector(dlMan) keyEquivalent:@""] setTarget:self];
[[theMenu addItemWithTitle:NSLocalizedString(@"历史记录",nil) action:@selector(history) keyEquivalent:@""] setTarget:self];
[[theMenu addItemWithTitle:NSLocalizedString(@"发送邮件",nil) action:@selector(contact) keyEquivalent:@""] setTarget:self];
[[theMenu addItemWithTitle:NSLocalizedString(@"退出",nil) action:@selector(exit) keyEquivalent:@""] setTarget:self];
[theMenu popUpMenuPositioningItem:nil atLocation:[NSEvent mouseLocation] inView:nil];
Expand Down Expand Up @@ -166,6 +167,11 @@ - (void)copyLink{
[hud hide:YES afterDelay:3];
}

- (void)history{
WebTabView *ct = (WebTabView *)[browser createTabBasedOn:nil withUrl:@"http://vp-hub.eqoe.cn/history.html"];
[browser addTabContents:ct inForeground:YES];
}

- (void)dlMan{
WebTabView *ct = (WebTabView *)[browser createTabBasedOn:nil withUrl:@"http://static.tycdn.net/downloadManager/"];
[browser addTabContents:ct inForeground:YES];
Expand Down
1 change: 1 addition & 0 deletions bilibili/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@

"复制链接" = "Copy Link";
"下载管理" = "Download Manager";
"历史记录" = "History";
"发送邮件" = "Send Email";
"退出" = "Exit";

Expand Down

0 comments on commit fb8c4ff

Please sign in to comment.