Revision: 4194
http://skim-app.svn.sourceforge.net/skim-app/?rev=4194&view=rev
Author: hofman
Date: 2008-07-12 03:04:22 -0700 (Sat, 12 Jul 2008)
Log Message:
-----------
Rename method
Modified Paths:
--------------
trunk/SKPDFDocument.m
trunk/SKPDFSynchronizer.h
trunk/SKPDFSynchronizer.m
trunk/SKPDFView.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2008-07-12 09:50:43 UTC (rev 4193)
+++ trunk/SKPDFDocument.m 2008-07-12 10:04:22 UTC (rev 4194)
@@ -2007,7 +2007,7 @@
PDFSelection *sel = [page selectionForLineAtPoint:point];
NSRect rect = sel ? [sel boundsForPage:page] : NSMakeRect(point.x -
20.0, point.y - 5.0, 40.0, 10.0);
- [[self synchronizer] findLineForLocation:point inRect:rect
atPageIndex:pageIndex];
+ [[self synchronizer] findFileLineForLocation:point inRect:rect
atPageIndex:pageIndex];
}
}
Modified: trunk/SKPDFSynchronizer.h
===================================================================
--- trunk/SKPDFSynchronizer.h 2008-07-12 09:50:43 UTC (rev 4193)
+++ trunk/SKPDFSynchronizer.h 2008-07-12 10:04:22 UTC (rev 4194)
@@ -74,7 +74,7 @@
- (NSString *)fileName;
- (void)setFileName:(NSString *)newFileName;
-- (void)findLineForLocation:(NSPoint)point inRect:(NSRect)rect
atPageIndex:(unsigned int)pageIndex;
+- (void)findFileLineForLocation:(NSPoint)point inRect:(NSRect)rect
atPageIndex:(unsigned int)pageIndex;
- (void)findPageLocationForLine:(int)line inFile:(NSString *)file;
- (void)stopDOServer;
Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m 2008-07-12 09:50:43 UTC (rev 4193)
+++ trunk/SKPDFSynchronizer.m 2008-07-12 10:04:22 UTC (rev 4194)
@@ -79,7 +79,7 @@
@protocol SKPDFSynchronizerServerThread
- (oneway void)cleanup;
-- (oneway void)serverFindLineForLocation:(NSPoint)point inRect:(NSRect)rect
atPageIndex:(unsigned int)pageIndex;
+- (oneway void)serverFindFileLineForLocation:(NSPoint)point
inRect:(NSRect)rect atPageIndex:(unsigned int)pageIndex;
- (oneway void)serverFindPageLocationForLine:(int)line inFile:(bycopy NSString
*)file;
@end
@@ -237,8 +237,8 @@
#pragma mark | Finding
-- (void)findLineForLocation:(NSPoint)point inRect:(NSRect)rect
atPageIndex:(unsigned int)pageIndex {
- [serverOnServerThread serverFindLineForLocation:point inRect:rect
atPageIndex:pageIndex];
+- (void)findFileLineForLocation:(NSPoint)point inRect:(NSRect)rect
atPageIndex:(unsigned int)pageIndex {
+ [serverOnServerThread serverFindFileLineForLocation:point inRect:rect
atPageIndex:pageIndex];
}
- (void)findPageLocationForLine:(int)line inFile:(NSString *)file {
@@ -489,7 +489,7 @@
return rv;
}
-- (BOOL)pdfsyncFindLine:(int *)line file:(NSString **)file
forLocation:(NSPoint)point inRect:(NSRect)rect atPageIndex:(unsigned
int)pageIndex {
+- (BOOL)pdfsyncFindFileLine:(int *)line file:(NSString **)file
forLocation:(NSPoint)point inRect:(NSRect)rect atPageIndex:(unsigned
int)pageIndex {
BOOL rv = NO;
if (pageIndex < [pages count]) {
@@ -602,7 +602,7 @@
return rv;
}
-- (BOOL)synctexFindLine:(int *)line file:(NSString **)file
forLocation:(NSPoint)point inRect:(NSRect)rect atPageIndex:(unsigned
int)pageIndex {
+- (BOOL)synctexFindFileLine:(int *)line file:(NSString **)file
forLocation:(NSPoint)point inRect:(NSRect)rect atPageIndex:(unsigned
int)pageIndex {
BOOL rv = NO;
#ifdef SYNCTEX_FEATURE
if (synctex_edit_query(scanner, (int)pageIndex + 1, PDF_TO_SYNC(point.x),
PDF_TO_SYNC(point.y)) > 0) {
@@ -633,16 +633,16 @@
return rv;
}
-- (oneway void)serverFindLineForLocation:(NSPoint)point inRect:(NSRect)rect
atPageIndex:(unsigned int)pageIndex {
+- (oneway void)serverFindFileLineForLocation:(NSPoint)point
inRect:(NSRect)rect atPageIndex:(unsigned int)pageIndex {
int foundLine = -1;
NSString *foundFile = nil;
if ([self shouldKeepRunning] && [self parseSyncFileIfNeeded]) {
if ([self shouldKeepRunning]) {
if (isPdfsync)
- [self pdfsyncFindLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
+ [self pdfsyncFindFileLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
else
- [self synctexFindLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
+ [self synctexFindFileLine:&foundLine file:&foundFile
forLocation:point inRect:rect atPageIndex:pageIndex];
}
}
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2008-07-12 09:50:43 UTC (rev 4193)
+++ trunk/SKPDFView.m 2008-07-12 10:04:22 UTC (rev 4194)
@@ -3879,7 +3879,7 @@
PDFSelection *sel = [page selectionForLineAtPoint:location];
NSRect rect = sel ? [sel boundsForPage:page] : NSMakeRect(location.x -
20.0, location.y - 5.0, 40.0, 10.0);
- [[document synchronizer] findLineForLocation:location inRect:rect
atPageIndex:pageIndex];
+ [[document synchronizer] findFileLineForLocation:location inRect:rect
atPageIndex:pageIndex];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit