Revision: 6336
http://skim-app.svn.sourceforge.net/skim-app/?rev=6336&view=rev
Author: hofman
Date: 2010-03-18 09:45:45 +0000 (Thu, 18 Mar 2010)
Log Message:
-----------
set table header titles in tableview subclasses
Modified Paths:
--------------
trunk/SKFindTableView.m
trunk/SKMainWindowController.m
trunk/SKNoteOutlineView.m
trunk/SKNotesDocument.m
Modified: trunk/SKFindTableView.m
===================================================================
--- trunk/SKFindTableView.m 2010-03-18 01:05:42 UTC (rev 6335)
+++ trunk/SKFindTableView.m 2010-03-18 09:45:45 UTC (rev 6336)
@@ -38,9 +38,15 @@
#import "SKFindTableView.h"
+#define PAGE_COLUMNID @"page"
@implementation SKFindTableView
+ (BOOL)usesDefaultFontSize { return YES; }
+- (void)awakeFromNib {
+ [super awakeFromNib];
+ [[[self tableColumnWithIdentifier:PAGE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Page", @"Table header title")];
+}
+
@end
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2010-03-18 01:05:42 UTC (rev 6335)
+++ trunk/SKMainWindowController.m 2010-03-18 09:45:45 UTC (rev 6336)
@@ -366,10 +366,6 @@
[[noteSearchField cell] setPlaceholderString:NSLocalizedString(@"Search",
@"placeholder")];
[[noteOutlineView tableColumnWithIdentifier:COLOR_COLUMNID]
setDataCell:[[[SKColorCell alloc] init] autorelease]];
- [[[noteOutlineView tableColumnWithIdentifier:NOTE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Note", @"Table header title")];
- [[[noteOutlineView tableColumnWithIdentifier:PAGE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Page", @"Table header title")];
- [[[findTableView tableColumnWithIdentifier:PAGE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Page", @"Table header title")];
- [[[groupedFindTableView tableColumnWithIdentifier:PAGE_COLUMNID]
headerCell] setTitle:NSLocalizedString(@"Page", @"Table header title")];
[noteOutlineView setDoubleAction:@selector(selectSelectedNote:)];
[noteOutlineView setTarget:self];
Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m 2010-03-18 01:05:42 UTC (rev 6335)
+++ trunk/SKNoteOutlineView.m 2010-03-18 09:45:45 UTC (rev 6336)
@@ -43,9 +43,14 @@
#import "NSEvent_SKExtensions.h"
#import "NSMenu_SKExtensions.h"
#import "NSGeometry_SKExtensions.h"
+#import "SKColorCell.h"
#define NUMBER_OF_TYPES 9
+#define PAGE_COLUMNID @"page"
+#define NOTE_COLUMNID @"note"
+#define COLOR_COLUMNID @"color"
+
@implementation SKNoteOutlineView
+ (BOOL)usesDefaultFontSize { return YES; }
@@ -59,6 +64,9 @@
if (noteTypeMatrix == nil) {
[self noteTypeMenu]; // this sets the menu for the header view
[super awakeFromNib];
+ [[self tableColumnWithIdentifier:COLOR_COLUMNID]
setDataCell:[[[SKColorCell alloc] init] autorelease]];
+ [[[self tableColumnWithIdentifier:NOTE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Note", @"Table header title")];
+ [[[self tableColumnWithIdentifier:PAGE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Page", @"Table header title")];
}
}
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2010-03-18 01:05:42 UTC (rev 6335)
+++ trunk/SKNotesDocument.m 2010-03-18 09:45:45 UTC (rev 6336)
@@ -63,7 +63,6 @@
#import "NSPointerArray_SKExtensions.h"
#import "SKFloatMapTable.h"
#import "NSColor_SKExtensions.h"
-#import "SKColorCell.h"
#define SKNotesDocumentWindowFrameAutosaveName @"SKNotesDocumentWindow"
@@ -130,10 +129,6 @@
[[searchField cell] setSearchMenuTemplate:menu];
[[searchField cell] setPlaceholderString:NSLocalizedString(@"Search",
@"placeholder")];
- [[outlineView tableColumnWithIdentifier:COLOR_COLUMNID]
setDataCell:[[[SKColorCell alloc] init] autorelease]];
- [[[outlineView tableColumnWithIdentifier:NOTE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Note", @"Table header title")];
- [[[outlineView tableColumnWithIdentifier:PAGE_COLUMNID] headerCell]
setTitle:NSLocalizedString(@"Page", @"Table header title")];
-
[outlineView setAutoresizesOutlineColumn: NO];
NSSortDescriptor *indexSortDescriptor = [[[NSSortDescriptor alloc]
initWithKey:SKNPDFAnnotationPageIndexKey ascending:YES] autorelease];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit