From 9fbcaebe6ca4b7af353d4a2846b9d2f96f296fcc Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 9 Dec 2010 19:50:16 +0000 Subject: [PATCH] add a button to the Prefs window for the script help --- macosx/PrefsController.h | 1 + macosx/PrefsController.m | 6 ++ macosx/en.lproj/PrefsWindow.xib | 150 ++++++++++++++++++++++---------- 3 files changed, 110 insertions(+), 47 deletions(-) diff --git a/macosx/PrefsController.h b/macosx/PrefsController.h index 473a2ad57..d3b986d05 100644 --- a/macosx/PrefsController.h +++ b/macosx/PrefsController.h @@ -157,6 +157,7 @@ - (void) updateRPCWhitelist; - (void) addRemoveRPCIP: (id) sender; +- (void) helpForScript: (id) sender; - (void) helpForPeers: (id) sender; - (void) helpForNetwork: (id) sender; - (void) helpForRemote: (id) sender; diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index ac340115e..03afad84a 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -1041,6 +1041,12 @@ tr_session * fHandle; [fRPCAddRemoveControl setEnabled: [fRPCWhitelistTable numberOfSelectedRows] > 0 forSegment: RPC_IP_REMOVE_TAG]; } +- (void) helpForScript: (id) sender +{ + [[NSHelpManager sharedHelpManager] openHelpAnchor: @"script" + inBook: [[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleHelpBookName"]]; +} + - (void) helpForPeers: (id) sender { [[NSHelpManager sharedHelpManager] openHelpAnchor: @"peers" diff --git a/macosx/en.lproj/PrefsWindow.xib b/macosx/en.lproj/PrefsWindow.xib index fb622be5e..a978d33a4 100644 --- a/macosx/en.lproj/PrefsWindow.xib +++ b/macosx/en.lproj/PrefsWindow.xib @@ -434,7 +434,7 @@ YES - 264 + 274 {{13, 10}, {516, 341}} @@ -448,7 +448,7 @@ 264 - {{219, 261}, {182, 26}} + {{219, 274}, {182, 26}} YES @@ -551,7 +551,7 @@ 264 - {{108, 267}, {109, 17}} + {{108, 280}, {109, 17}} YES @@ -567,7 +567,7 @@ 264 - {{44, 267}, {62, 17}} + {{44, 280}, {62, 17}} YES @@ -583,7 +583,7 @@ 264 - {{109, 198}, {188, 18}} + {{109, 211}, {188, 18}} YES @@ -605,7 +605,7 @@ 264 - {{109, 178}, {226, 18}} + {{109, 191}, {226, 18}} YES @@ -627,7 +627,7 @@ 264 - {{109, 45}, {181, 18}} + {{109, 58}, {181, 18}} YES @@ -649,7 +649,7 @@ 264 - {{293, 40}, {182, 26}} + {{293, 53}, {182, 26}} YES @@ -721,7 +721,7 @@ 264 - {{40, 46}, {66, 17}} + {{40, 59}, {66, 17}} YES @@ -737,7 +737,7 @@ 264 - {{109, 241}, {178, 18}} + {{109, 254}, {178, 18}} YES @@ -759,7 +759,7 @@ 264 - {{290, 236}, {182, 26}} + {{290, 249}, {182, 26}} YES @@ -831,7 +831,7 @@ 264 - {{109, 142}, {307, 18}} + {{109, 155}, {307, 18}} YES @@ -853,7 +853,7 @@ 264 - {{109, 82}, {315, 18}} + {{109, 95}, {315, 18}} YES @@ -875,7 +875,7 @@ 264 - {{109, 218}, {192, 18}} + {{109, 231}, {192, 18}} YES @@ -897,7 +897,7 @@ 264 - {{128, 102}, {197, 18}} + {{128, 115}, {197, 18}} YES @@ -919,7 +919,7 @@ 264 - {{21, 143}, {86, 17}} + {{21, 156}, {86, 17}} YES @@ -935,7 +935,7 @@ 264 - {{128, 122}, {235, 18}} + {{128, 135}, {235, 18}} YES @@ -955,7 +955,7 @@ - {{10, 33}, {496, 295}} + {{10, 33}, {496, 308}} Adding @@ -969,7 +969,7 @@ YES - 256 + 264 {{312, 177}, {35, 22}} YES @@ -1054,7 +1054,7 @@ - 256 + 264 {{42, 179}, {56, 17}} YES @@ -1070,7 +1070,7 @@ - 256 + 264 {{352, 179}, {101, 17}} YES @@ -1086,7 +1086,7 @@ - 256 + 264 {{101, 264}, {157, 18}} YES @@ -1108,7 +1108,7 @@ - 256 + 264 {{264, 263}, {50, 22}} YES @@ -1174,7 +1174,7 @@ - 256 + 264 {{101, 220}, {220, 18}} YES @@ -1196,7 +1196,7 @@ - 256 + 264 {{327, 219}, {41, 22}} YES @@ -1268,7 +1268,7 @@ - 256 + 264 {{51, 265}, {47, 17}} YES @@ -1284,7 +1284,7 @@ - 256 + 264 {{119, 245}, {269, 14}} YES @@ -1312,7 +1312,7 @@ - 256 + 264 {{101, 178}, {205, 18}} YES @@ -1334,7 +1334,7 @@ - 256 + 264 {{298, 151}, {35, 22}} YES @@ -1397,7 +1397,7 @@ - 256 + 264 {{338, 153}, {101, 17}} YES @@ -1413,7 +1413,7 @@ - 256 + 264 {{101, 152}, {191, 18}} YES @@ -1435,7 +1435,7 @@ - 256 + 264 {{359, 125}, {41, 22}} YES @@ -1507,7 +1507,7 @@ - 256 + 264 {{405, 127}, {55, 17}} YES @@ -1523,7 +1523,7 @@ - 256 + 264 {{101, 126}, {252, 18}} YES @@ -1545,7 +1545,7 @@ - 256 + 264 {{21, 87}, {77, 17}} YES @@ -1561,7 +1561,7 @@ - 256 + 264 {{299, 81}, {130, 26}} YES @@ -1613,7 +1613,7 @@ - 256 + 264 {{101, 61}, {183, 18}} YES @@ -1635,7 +1635,7 @@ - 256 + 264 {{299, 56}, {130, 26}} YES @@ -1683,7 +1683,7 @@ - 256 + 264 {{101, 86}, {195, 18}} YES @@ -1705,7 +1705,7 @@ - 256 + 264 {{373, 221}, {55, 17}} YES @@ -1721,7 +1721,7 @@ - 256 + 264 {{101, 21}, {195, 18}} YES @@ -1743,7 +1743,7 @@ - 256 + 264 {{26, 22}, {72, 17}} YES @@ -1759,8 +1759,8 @@ - 256 - {{299, 16}, {176, 26}} + 264 + {{299, 16}, {168, 26}} YES @@ -1829,6 +1829,26 @@ 1 + + + 268 + {{469, 16}, {25, 25}} + + YES + + 67239424 + 134217728 + + + + -2038415105 + 161 + + + 200 + 25 + + {{10, 33}, {496, 295}} @@ -4329,7 +4349,6 @@ AAABAAAAAQ {{1, 1}, {291, 76}} - 4 @@ -4356,7 +4375,6 @@ AAABAAAAAQ {{103, 96}, {308, 78}} - 18 @@ -7612,6 +7630,14 @@ AAABAAAAAQ 2065 + + + helpForScript: + + + + 2070 + @@ -7953,6 +7979,7 @@ AAABAAAAAQ + @@ -10354,6 +10381,20 @@ AAABAAAAAQ + + 2068 + + + YES + + + + + + 2069 + + + @@ -10763,6 +10804,8 @@ AAABAAAAAQ 2052.ImportedFromIB2 2053.IBPluginDependency 2053.ImportedFromIB2 + 2068.IBPluginDependency + 2069.IBPluginDependency 209.IBPluginDependency 209.ImportedFromIB2 216.IBPluginDependency @@ -10795,6 +10838,7 @@ AAABAAAAAQ 24.ImportedFromIB2 252.IBAttributePlaceholdersKey 252.IBPluginDependency + 252.IBViewBoundsToFrameTransform 252.ImportedFromIB2 253.IBPluginDependency 253.ImportedFromIB2 @@ -11377,6 +11421,8 @@ AAABAAAAAQ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -11415,6 +11461,9 @@ AAABAAAAAQ com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBUAAAw68AAA + com.apple.InterfaceBuilder.CocoaPlugin @@ -11600,7 +11649,7 @@ AAABAAAAAQ - 2065 + 2070 @@ -11859,6 +11908,7 @@ AAABAAAAAQ helpForNetwork: helpForPeers: helpForRemote: + helpForScript: importFolderSheetShow: incompleteFolderSheetShow: linkWebUI: @@ -11963,6 +12013,7 @@ AAABAAAAAQ id id id + id @@ -11978,6 +12029,7 @@ AAABAAAAAQ helpForNetwork: helpForPeers: helpForRemote: + helpForScript: importFolderSheetShow: incompleteFolderSheetShow: linkWebUI: @@ -12063,6 +12115,10 @@ AAABAAAAAQ helpForRemote: id + + helpForScript: + id + importFolderSheetShow: id