Permalink
Browse files

support index

git-svn-id: https://ichm.googlecode.com/svn/trunk@30 e1f60c0e-2a54-0410-99cd-d3f60e83567d
  • Loading branch information...
1 parent ab5ee34 commit 0e5e6da0755b683f51095a7627d529e66c17a396 iamawalrus committed Aug 25, 2008
Showing with 351 additions and 70 deletions.
  1. +6 −0 CHMDocument.h
  2. +47 −4 CHMDocument.m
  3. +3 −2 CHMTableOfContent.h
  4. +24 −2 CHMTableOfContent.m
  5. +267 −62 English.lproj/CHMDocument.xib
  6. +4 −0 ichm.xcodeproj/project.pbxproj
  7. BIN view.tif
View
6 CHMDocument.h
@@ -87,6 +87,12 @@ struct chmFile;
- (IBAction)searchInFile:(id)sender;
+// sidebar view
+- (IBAction)popViewMenu:(id)sender;
+- (IBAction)changeToContentsView:(id)sender;
+- (IBAction)changeToIndexView:(id)sender;
+- (void)resetViewMenuState:(NSMenuItem*)sender;
+
- (IBAction)zoom:(id)sender;
- (IBAction)zoomIn:(id)sender;
- (IBAction)zoomOut:(id)sender;
View
51 CHMDocument.m
@@ -625,6 +625,7 @@ - (void)setupTOCSource{
CHMTableOfContent* newTOC = [[CHMTableOfContent alloc] initWithData:tocData encodingName:[self currentEncodingName]];
CHMTableOfContent* oldTOC = indexSource;
indexSource = newTOC;
+ [indexSource sort];
if(oldTOC)
[oldTOC release];
@@ -703,7 +704,7 @@ - (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
// set label for tab bar
NSURL * url = [[[frame dataSource] request] URL];
NSString *path = [self extractPathFromURL:url];
- LinkItem* item = [tocSource itemForPath:path withStack:nil];
+ LinkItem* item = [[tocView dataSource] itemForPath:path withStack:nil];
NSTabViewItem *tabItem = [docTabView selectedTabViewItem];
NSString *name = [item name];
if(name && [name length]>0)
@@ -887,7 +888,7 @@ - (IBAction)locateTOC:(id)sender
NSURL * url = [[[[curWebView mainFrame] dataSource] request] URL];
NSString *path = [self extractPathFromURL:url];
NSMutableArray *tocStack = [[NSMutableArray alloc] init];
- LinkItem* item = [tocSource itemForPath:path withStack:tocStack];
+ LinkItem* item = [[tocView dataSource] itemForPath:path withStack:tocStack];
NSEnumerator *enumerator = [tocStack reverseObjectEnumerator];
for (LinkItem *p in enumerator) {
[tocView expandItem:p];
@@ -1210,11 +1211,11 @@ - (IBAction)searchInFile:(id)sender
if (0 == [searchString length])
{
- [tocView setDataSource:tocSource];
+ [self changeToContentsView:sender];
+
[searchSource release];
[self removeHighlight];
searchSource = nil;
- [self locateTOC:sender];
return;
}
@@ -1280,6 +1281,8 @@ - (IBAction)searchInFile:(id)sender
[searchSource sort];
[tocView deselectAll:self];
[tocView setDataSource:searchSource];
+ [[[tocView outlineTableColumn] headerCell] setStringValue:NSLocalizedString(@"Search", @"Search")];
+
[tocView reloadData];
}
# pragma mark find panel
@@ -1418,4 +1421,44 @@ - (IBAction)showAddBookmark:(id)sender
[bookmarkController showAddBookmark:self];
}
+
+#pragma mark sidebar view changing
+- (IBAction)popViewMenu:(id)sender
+{
+ NSButton *button = (NSButton*)sender;
+ NSMenu *menu = [sender menu];
+ NSMenuItem *indexItem = [menu itemWithTag:2];
+ if (!indexSource)
+ [indexItem setEnabled:NO];
+ [NSMenu popUpContextMenu:menu withEvent:[NSApp currentEvent] forView:button];
+}
+
+- (void)resetViewMenuState:(NSMenuItem*)sender
+{
+ NSMenu * menu = [(NSMenuItem*)sender menu];
+ for (NSMenuItem *item in [menu itemArray])
+ {
+ [item setState:NSOffState];
+ }
+ [sender setState:NSOnState];
+}
+
+- (IBAction)changeToContentsView:(id)sender
+{
+ [tocView setDataSource:tocSource];
+ [[[tocView outlineTableColumn] headerCell] setStringValue:NSLocalizedString(@"Contents", @"Contents")];
+ [self resetViewMenuState:sender];
+ [self locateTOC:sender];
+}
+
+- (IBAction)changeToIndexView:(id)sender
+{
+ if (indexSource)
+ {
+ [tocView setDataSource:indexSource];
+ [[[tocView outlineTableColumn] headerCell] setStringValue:NSLocalizedString(@"Index", @"Index")];
+ [self resetViewMenuState:sender];
+ }
+}
+
@end
View
5 CHMTableOfContent.h
@@ -19,6 +19,7 @@
- (id)initWithData:(NSData *)data encodingName:(NSString*)encodingName;
- (LinkItem *)itemForPath:(NSString*)path withStack:(NSMutableArray*)stack;
- (int)rootChildrenCount;
+- (void)sort;
@end
@interface CHMSearchResult : CHMTableOfContent
@@ -29,7 +30,6 @@
- (id)initwithTOC:(CHMTableOfContent*)toc withIndex:(CHMTableOfContent*)index;
- (void)addPath:(NSString*)path Score:(float)score;
-- (void)sort;
@end
@interface LinkItem : NSObject
@@ -43,11 +43,13 @@
- (int)numberOfChildren;
- (LinkItem *)childAtIndex:(int)n;
- (NSString *)name;
+- (NSString *)uppercaseName;
- (NSString *)path;
- (void)setName:(NSString *)name;
- (void)setPath:(NSString *)path;
- (void)appendChild:(LinkItem *)item;
- (LinkItem*)find_by_path:(NSString *)path withStack:(NSMutableArray*)stack;
+- (void)sort;
@end
@interface ScoredLinkItem : LinkItem
@@ -58,5 +60,4 @@
@property (readwrite, assign) float relScore;
- (id)initWithName:(NSString *)name Path:(NSString *)path Score:(float)score;
-- (void)sort;
@end
View
26 CHMTableOfContent.m
@@ -67,6 +67,11 @@ - (NSString *)name
return _name;
}
+- (NSString *)uppercaseName
+{
+ return [_name uppercaseString];
+}
+
- (NSString *)path
{
return _path;
@@ -99,6 +104,16 @@ - (LinkItem*)find_by_path:(NSString *)path withStack:(NSMutableArray*)stack
return nil;
}
+
+- (void)sort
+{
+ NSSortDescriptor *sd = [[NSSortDescriptor alloc] initWithKey:@"uppercaseName" ascending:YES];
+ NSMutableArray * sda = [[NSMutableArray alloc] init];
+ [sda addObject:sd];
+ [_children sortUsingDescriptors:sda];
+ [sda release];
+ [sd release];
+}
@end
@interface CHMTableOfContent (Private)
@@ -187,7 +202,13 @@ - (int)rootChildrenCount
{
return [rootItems numberOfChildren];
}
-# pragma mark NSOutlineView
+
+- (void)sort
+{
+ [rootItems sort];
+}
+
+# pragma mark NSOutlineView datasource
- (int)outlineView:(NSOutlineView *)outlineView
numberOfChildrenOfItem:(id)item
{
@@ -275,7 +296,8 @@ static void elementDidStart( CHMTableOfContent *context, const xmlChar *name, co
if( !strcasecmp( "Name", (char *)type ) ) {
// Name of the topic
NSString *str = [[NSString alloc] initWithUTF8String:(char *)value];
- [[context curItem] setName:str];
+ if (![[context curItem] name])
+ [[context curItem] setName:str];
[str release];
}
else if( !strcasecmp( "Local", (char *)type ) ) {
View
329 English.lproj/CHMDocument.xib
@@ -8,11 +8,12 @@
<string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <integer value="100131"/>
+ <integer value="100045"/>
<integer value="100123"/>
- <integer value="100064"/>
- <integer value="100055"/>
+ <integer value="100163"/>
<integer value="100115"/>
- <integer value="100131"/>
+ <integer value="100064"/>
<integer value="100099"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
@@ -99,13 +100,21 @@
<object class="NSOutlineView" id="667450853">
<reference key="NSNextResponder" ref="68302576"/>
<int key="NSvFlags">4352</int>
- <string key="NSFrameSize">{176, 559}</string>
+ <string key="NSFrameSize">{176, 514}</string>
<reference key="NSSuperview" ref="68302576"/>
<bool key="NSEnabled">YES</bool>
- <object class="_NSCornerView" key="NSCornerView">
- <nil key="NSNextResponder"/>
+ <object class="NSTableHeaderView" key="NSHeaderView" id="949736114">
+ <reference key="NSNextResponder" ref="707939621"/>
<int key="NSvFlags">256</int>
+ <string key="NSFrameSize">{176, 17}</string>
+ <reference key="NSSuperview" ref="707939621"/>
+ <reference key="NSTableView" ref="667450853"/>
+ </object>
+ <object class="_NSCornerView" key="NSCornerView" id="586085639">
+ <reference key="NSNextResponder" ref="468006254"/>
+ <int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{-26, 0}, {16, 17}}</string>
+ <reference key="NSSuperview" ref="468006254"/>
</object>
<object class="NSMutableArray" key="NSTableColumns">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -116,7 +125,7 @@
<object class="NSTableHeaderCell" key="NSHeaderCell">
<int key="NSCellFlags">75628032</int>
<int key="NSCellFlags2">0</int>
- <string key="NSContents"/>
+ <string key="NSContents">Contents</string>
<object class="NSFont" key="NSSupport">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">1.100000e+01</double>
@@ -179,14 +188,14 @@
</object>
</object>
<double key="NSRowHeight">1.700000e+01</double>
- <int key="NSTvFlags">1396736000</int>
+ <int key="NSTvFlags">1379958784</int>
<int key="NSColumnAutoresizingStyle">1</int>
<int key="NSDraggingSourceMaskForLocal">15</int>
<int key="NSDraggingSourceMaskForNonLocal">0</int>
<bool key="NSAllowsTypeSelect">YES</bool>
</object>
</object>
- <string key="NSFrameSize">{176, 559}</string>
+ <string key="NSFrame">{{0, 17}, {176, 514}}</string>
<reference key="NSSuperview" ref="468006254"/>
<reference key="NSNextKeyView" ref="667450853"/>
<reference key="NSDocView" ref="667450853"/>
@@ -196,12 +205,11 @@
<object class="NSScroller" id="801717089">
<reference key="NSNextResponder" ref="468006254"/>
<int key="NSvFlags">-2147483392</int>
- <string key="NSFrame">{{176, 0}, {15, 559}}</string>
+ <string key="NSFrame">{{161, 17}, {15, 514}}</string>
<reference key="NSSuperview" ref="468006254"/>
<reference key="NSTarget" ref="468006254"/>
<string key="NSAction">_doScroller:</string>
- <double key="NSCurValue">3.700000e+01</double>
- <double key="NSPercent">1.390978e-01</double>
+ <double key="NSPercent">9.980583e-01</double>
</object>
<object class="NSScroller" id="214060269">
<reference key="NSNextResponder" ref="468006254"/>
@@ -213,16 +221,77 @@
<string key="NSAction">_doScroller:</string>
<double key="NSPercent">5.782313e-01</double>
</object>
+ <object class="NSClipView" id="707939621">
+ <reference key="NSNextResponder" ref="468006254"/>
+ <int key="NSvFlags">2304</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="949736114"/>
+ </object>
+ <string key="NSFrameSize">{176, 17}</string>
+ <reference key="NSSuperview" ref="468006254"/>
+ <reference key="NSNextKeyView" ref="949736114"/>
+ <reference key="NSDocView" ref="949736114"/>
+ <reference key="NSBGColor" ref="99488724"/>
+ <int key="NScvFlags">4</int>
+ </object>
+ <reference ref="586085639"/>
</object>
- <string key="NSFrameSize">{176, 559}</string>
+ <string key="NSFrame">{{0, 28}, {176, 531}}</string>
<reference key="NSSuperview" ref="212093844"/>
<reference key="NSNextKeyView" ref="68302576"/>
<int key="NSsFlags">528</int>
<reference key="NSVScroller" ref="801717089"/>
<reference key="NSHScroller" ref="214060269"/>
<reference key="NSContentView" ref="68302576"/>
+ <reference key="NSHeaderClipView" ref="707939621"/>
+ <reference key="NSCornerView" ref="586085639"/>
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
</object>
+ <object class="NSButton" id="361542019">
+ <reference key="NSNextResponder" ref="212093844"/>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{0, -1}, {176, 30}}</string>
+ <reference key="NSSuperview" ref="212093844"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="843219102">
+ <int key="NSCellFlags">-1543373312</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="389328562"/>
+ <reference key="NSControlView" ref="361542019"/>
+ <int key="NSButtonFlags">-2033434369</int>
+ <int key="NSButtonFlags2">162</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <object class="NSButton" id="910969486">
+ <reference key="NSNextResponder" ref="212093844"/>
+ <int key="NSvFlags">288</int>
+ <string key="NSFrame">{{-1, -1}, {29, 30}}</string>
+ <reference key="NSSuperview" ref="212093844"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="749607253">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="389328562"/>
+ <reference key="NSControlView" ref="910969486"/>
+ <int key="NSButtonFlags">-2033434369</int>
+ <int key="NSButtonFlags2">162</int>
+ <object class="NSCustomResource" key="NSNormalImage">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">view</string>
+ </object>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
</object>
<string key="NSFrame">{{643, 0}, {176, 559}}</string>
<reference key="NSSuperview" ref="295361290"/>
@@ -432,11 +501,11 @@
<string key="NSTitle">Open In New Tab</string>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
- <object class="NSCustomResource" key="NSOnImage">
+ <object class="NSCustomResource" key="NSOnImage" id="888656195">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">NSMenuCheckmark</string>
</object>
- <object class="NSCustomResource" key="NSMixedImage">
+ <object class="NSCustomResource" key="NSMixedImage" id="456085450">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">NSMenuMixedState</string>
</object>
@@ -511,6 +580,32 @@
<reference key="NSSuperview"/>
<string key="NSClassName">NSView</string>
</object>
+ <object class="NSMenu" id="241538245">
+ <string key="NSTitle">sidebar view</string>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMenuItem" id="356937972">
+ <reference key="NSMenu" ref="241538245"/>
+ <string key="NSTitle">Contents</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <int key="NSState">1</int>
+ <reference key="NSOnImage" ref="888656195"/>
+ <reference key="NSMixedImage" ref="456085450"/>
+ <int key="NSTag">1</int>
+ </object>
+ <object class="NSMenuItem" id="389535723">
+ <reference key="NSMenu" ref="241538245"/>
+ <string key="NSTitle">Index</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="888656195"/>
+ <reference key="NSMixedImage" ref="456085450"/>
+ <int key="NSTag">2</int>
+ </object>
+ </object>
+ <bool key="NSNoAutoenable">YES</bool>
+ </object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
@@ -683,6 +778,38 @@
</object>
<int key="connectionID">100140</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">menu</string>
+ <reference key="source" ref="910969486"/>
+ <reference key="destination" ref="241538245"/>
+ </object>
+ <int key="connectionID">100169</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">popViewMenu:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="910969486"/>
+ </object>
+ <int key="connectionID">100170</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">changeToIndexView:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="389535723"/>
+ </object>
+ <int key="connectionID">100172</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">changeToContentsView:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="356937972"/>
+ </object>
+ <int key="connectionID">100173</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -782,54 +909,12 @@
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="468006254"/>
+ <reference ref="361542019"/>
+ <reference ref="910969486"/>
</object>
<reference key="parent" ref="295361290"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">100055</int>
- <reference key="object" ref="468006254"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="801717089"/>
- <reference ref="214060269"/>
- <reference ref="667450853"/>
- </object>
- <reference key="parent" ref="212093844"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">100056</int>
- <reference key="object" ref="801717089"/>
- <reference key="parent" ref="468006254"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">100057</int>
- <reference key="object" ref="214060269"/>
- <reference key="parent" ref="468006254"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">100058</int>
- <reference key="object" ref="667450853"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="703449866"/>
- </object>
- <reference key="parent" ref="468006254"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">100060</int>
- <reference key="object" ref="703449866"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="812486029"/>
- </object>
- <reference key="parent" ref="667450853"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">100063</int>
- <reference key="object" ref="812486029"/>
- <reference key="parent" ref="703449866"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">100094</int>
<reference key="object" ref="37771630"/>
<object class="NSMutableArray" key="children">
@@ -952,6 +1037,104 @@
<reference key="object" ref="588623657"/>
<reference key="parent" ref="221144331"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100055</int>
+ <reference key="object" ref="468006254"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="667450853"/>
+ <reference ref="214060269"/>
+ <reference ref="801717089"/>
+ <reference ref="949736114"/>
+ </object>
+ <reference key="parent" ref="212093844"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100058</int>
+ <reference key="object" ref="667450853"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="703449866"/>
+ </object>
+ <reference key="parent" ref="468006254"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100060</int>
+ <reference key="object" ref="703449866"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="812486029"/>
+ </object>
+ <reference key="parent" ref="667450853"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100063</int>
+ <reference key="object" ref="812486029"/>
+ <reference key="parent" ref="703449866"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100057</int>
+ <reference key="object" ref="214060269"/>
+ <reference key="parent" ref="468006254"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100056</int>
+ <reference key="object" ref="801717089"/>
+ <reference key="parent" ref="468006254"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100158</int>
+ <reference key="object" ref="361542019"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="843219102"/>
+ </object>
+ <reference key="parent" ref="212093844"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100159</int>
+ <reference key="object" ref="843219102"/>
+ <reference key="parent" ref="361542019"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100160</int>
+ <reference key="object" ref="910969486"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="749607253"/>
+ </object>
+ <reference key="parent" ref="212093844"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100161</int>
+ <reference key="object" ref="749607253"/>
+ <reference key="parent" ref="910969486"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100162</int>
+ <reference key="object" ref="949736114"/>
+ <reference key="parent" ref="468006254"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100163</int>
+ <reference key="object" ref="241538245"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="356937972"/>
+ <reference ref="389535723"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100164</int>
+ <reference key="object" ref="356937972"/>
+ <reference key="parent" ref="241538245"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100165</int>
+ <reference key="object" ref="389535723"/>
+ <reference key="parent" ref="241538245"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -995,6 +1178,14 @@
<string>100131.IBPluginDependency</string>
<string>100132.IBPluginDependency</string>
<string>100133.IBPluginDependency</string>
+ <string>100158.IBPluginDependency</string>
+ <string>100159.IBPluginDependency</string>
+ <string>100160.IBPluginDependency</string>
+ <string>100161.IBPluginDependency</string>
+ <string>100163.IBEditorWindowLastContentRect</string>
+ <string>100163.IBPluginDependency</string>
+ <string>100164.IBPluginDependency</string>
+ <string>100165.IBPluginDependency</string>
<string>5.IBEditorWindowLastContentRect</string>
<string>5.IBPluginDependency</string>
<string>5.IBWindowTemplateEditedContentRect</string>
@@ -1046,9 +1237,17 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{219, 178}, {819, 559}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{219, 178}, {819, 559}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>{{437, 943}, {116, 43}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>{{117, 327}, {819, 559}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>{{117, 327}, {819, 559}}</string>
<reference ref="9"/>
<integer value="0"/>
<string>{{201, 387}, {507, 413}}</string>
@@ -1079,7 +1278,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">100157</int>
+ <int key="maxID">100173</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -1094,6 +1293,8 @@
<string>addNewTab:</string>
<string>beginFind:</string>
<string>changeEncoding:</string>
+ <string>changeToContentsView:</string>
+ <string>changeToIndexView:</string>
<string>changeTopic:</string>
<string>closeTab:</string>
<string>doneFind:</string>
@@ -1107,6 +1308,7 @@
<string>hideSidebar:</string>
<string>locateTOC:</string>
<string>openInNewTab:</string>
+ <string>popViewMenu:</string>
<string>searchInFile:</string>
<string>showAddBookmark:</string>
<string>showFindPanel:</string>
@@ -1140,6 +1342,9 @@
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
View
4 ichm.xcodeproj/project.pbxproj
@@ -29,6 +29,7 @@
C35B9BDF0E39E48D00A63BC3 /* PSMTabBarControl.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = C35B9BCD0E39E38500A63BC3 /* PSMTabBarControl.framework */; };
C36FD4240E482D3800496822 /* CHMWebView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C36FD4230E482D3800496822 /* CHMWebView.xib */; };
C36FD52C0E48403F00496822 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = C36FD52B0E48403F00496822 /* Localizable.strings */; };
+ C39A12160E607D330009C875 /* view.tif in Resources */ = {isa = PBXBuildFile; fileRef = C39A12150E607D330009C875 /* view.tif */; };
C3A79CC30E30438B00FF4485 /* CHMTableOfContent.m in Sources */ = {isa = PBXBuildFile; fileRef = C3A79CC20E30438B00FF4485 /* CHMTableOfContent.m */; };
C3AA9B220E3EC8A200D2FB53 /* CHMWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = C3AA9B210E3EC8A200D2FB53 /* CHMWebView.m */; };
C3BF8BA00E4FDD7200AE3BEE /* CHMBookmark.m in Sources */ = {isa = PBXBuildFile; fileRef = C3BF8B9F0E4FDD7200AE3BEE /* CHMBookmark.m */; };
@@ -102,6 +103,7 @@
C36FD52D0E48404B00496822 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_CN; path = zh_CN.lproj/Localizable.strings; sourceTree = "<group>"; };
C36FD5830E4850F100496822 /* German */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = German; path = German.lproj/Localizable.strings; sourceTree = "<group>"; };
C36FD5840E48513900496822 /* German */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = German; path = German.lproj/CHMWebView.xib; sourceTree = "<group>"; };
+ C39A12150E607D330009C875 /* view.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = view.tif; sourceTree = "<group>"; };
C3A79CC10E30438B00FF4485 /* CHMTableOfContent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CHMTableOfContent.h; sourceTree = "<group>"; };
C3A79CC20E30438B00FF4485 /* CHMTableOfContent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CHMTableOfContent.m; sourceTree = "<group>"; };
C3AA9B1D0E3EC88600D2FB53 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/CHMWebView.xib; sourceTree = "<group>"; };
@@ -280,6 +282,7 @@
C3C082260E4557F900D58E19 /* images */ = {
isa = PBXGroup;
children = (
+ C39A12150E607D330009C875 /* view.tif */,
C33BB2040E46DA100026F435 /* ichm_file.icns */,
C30F2B2E0E42135C003A17A7 /* home.png */,
C35B99F90E39C23400A63BC3 /* redbird.icns */,
@@ -355,6 +358,7 @@
C33BB2050E46DA100026F435 /* ichm_file.icns in Resources */,
C36FD52C0E48403F00496822 /* Localizable.strings in Resources */,
C3D2046B0E53EFAF00D5CA58 /* Bookmark.xib in Resources */,
+ C39A12160E607D330009C875 /* view.tif in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
BIN view.tif
Binary file not shown.

0 comments on commit 0e5e6da

Please sign in to comment.