Add help button to Network prefs that goes straight to portforwarding help.

This commit is contained in:
Mitchell Livingston 2006-08-08 23:03:45 +00:00
parent 5ba17385e7
commit 355ae372cf
9 changed files with 14 additions and 5 deletions

View File

@ -6,6 +6,7 @@
{
ACTIONS = {
folderSheetShow = id;
helpForNetwork = id;
importFolderSheetShow = id;
setAutoImport = id;
setAutoSize = id;

View File

@ -13,7 +13,7 @@
<key>41</key>
<string>138 419 582 304 0 0 1152 842 </string>
<key>66</key>
<string>179 527 582 104 0 0 1152 842 </string>
<string>71 359 585 104 0 0 1152 842 </string>
</dict>
<key>IBFramework Version</key>
<string>446.1</string>
@ -23,7 +23,7 @@
</array>
<key>IBOpenObjects</key>
<array>
<integer>153</integer>
<integer>66</integer>
</array>
<key>IBSystem Version</key>
<string>8J135</string>

View File

@ -134,7 +134,7 @@
[fDataLocationField setToolTip: nil];
[fDateStartedField setStringValue: @""];
//don't allow empty strings to be selected
//don't allow empty fields to be selected
[fTrackerField setSelectable: NO];
[fAnnounceField setSelectable: NO];
[fHashField setSelectable: NO];
@ -182,7 +182,7 @@
[fDataLocationField setToolTip: [torrent dataLocation]];
[fDateStartedField setObjectValue: [torrent date]];
//allow these strings to be selected
//allow these fields to be selected
[fTrackerField setSelectable: YES];
[fAnnounceField setSelectable: YES];
[fHashField setSelectable: YES];

View File

@ -103,4 +103,6 @@
- (void) setRatioEnabled: (BOOL) enable;
- (void) setQuickRatio: (float) ratioLimit;
- (void) helpForNetwork: (id) sender;
@end

View File

@ -785,6 +785,12 @@
[[NSNotificationCenter defaultCenter] postNotificationName: @"AutoSizeSettingChange" object: self];
}
- (void) helpForNetwork: (id) sender
{
[[NSHelpManager sharedHelpManager] openHelpAnchor: @"PortForwarding"
inBook: [[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleHelpBookName"]];
}
@end
@implementation PrefsController (Private)

View File

@ -1,5 +1,5 @@
<html>
<a name="PortForwarding" />
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link media="all" rel="stylesheet" href="../styles/TransBody.css" />