Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

show the plug-in name in the help panel's title

  • Loading branch information...
commit ee7d1eaf3004f28dc79d25b68ed934f97467ef01 1 parent 30e4da5
@skurfer authored
View
2  Quicksilver/Code-App/QSPlugInsPrefPane.h
@@ -6,6 +6,7 @@
@interface QSPlugInsPrefPane : QSPreferencePane {
IBOutlet NSTableView *pluginSetsTable;
IBOutlet NSTableView *plugInTable;
+ NSString *plugInName;
IBOutlet id plugInText;
IBOutlet NSTextField *statusField;
IBOutlet NSDrawer *infoDrawer;
@@ -22,6 +23,7 @@
IBOutlet NSView *sidebar;
IBOutlet NSPanel *pluginInfoPanel;
}
+@property NSString *plugInName;
+ (void)getMorePlugIns;
- (int) viewMode;
- (void)setViewMode:(int)newViewMode;
View
6 Quicksilver/Code-App/QSPlugInsPrefPane.m
@@ -19,6 +19,8 @@ - (id)observedObject;
@implementation QSPlugInsPrefPane
+@synthesize plugInName;
+
- (id)preferencesSplitView {
return [sidebar superview];
}
@@ -138,9 +140,12 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
NSArray *selection = [arrayController selectedObjects];
BOOL isMainThread = [NSThread isMainThread];
NSString *htmlString;
+ NSString *defaultTitle = @"Plug-in Documentation";
if ([selection count] == 1) {
+ [self setPlugInName:[NSString stringWithFormat:@"%@: %@", defaultTitle, [[selection objectAtIndex:0] name]]];
htmlString = [[selection objectAtIndex:0] infoHTML];
} else {
+ [self setPlugInName:defaultTitle];
htmlString = @"";
}
if (isMainThread) {
@@ -148,7 +153,6 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
} else {
[self performSelectorOnMainThread:@selector(updateWithHTMLString:) withObject:htmlString waitUntilDone:NO];
}
-
}
}
View
2  Quicksilver/Code-QuickStepCore/QSPlugIn.m
@@ -299,7 +299,7 @@ - (NSString *)infoHTML {
NSDictionary *plist = [self info];
NSString *text = [plist valueForKeyPath:@"QSPlugIn.extendedDescription"];
if (![text length]) text = [plist valueForKeyPath:@"QSPlugIn.description"];
- if (!text) text = @"";
+ if (!text) text = @"No documentation available";
return [NSString stringWithFormat:@"<html><link rel=\"stylesheet\" href=\"resource:QSStyle.css\"><body>%@</body></html>", text];
}
- (NSComparisonResult) compare:(id)other {
View
18 Quicksilver/Nibs/QSPlugInsPrefPane.xib
@@ -1895,6 +1895,22 @@
</object>
<int key="connectionID">487</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">title: plugInName</string>
+ <reference key="source" ref="752278448"/>
+ <reference key="destination" ref="352175396"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="752278448"/>
+ <reference key="NSDestination" ref="352175396"/>
+ <string key="NSLabel">title: plugInName</string>
+ <string key="NSBinding">title</string>
+ <string key="NSKeyPath">plugInName</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">520</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -2701,7 +2717,7 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
- <int key="maxID">518</int>
+ <int key="maxID">520</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">

0 comments on commit ee7d1ea

Please sign in to comment.
Something went wrong with that request. Please try again.