Revision: 13665
          http://sourceforge.net/p/skim-app/code/13665
Author:   hofman
Date:     2023-09-11 21:43:02 +0000 (Mon, 11 Sep 2023)
Log Message:
-----------
rename class files

Modified Paths:
--------------
    trunk/Skim.xcodeproj/project.pbxproj

Added Paths:
-----------
    trunk/SKChainedUndoManager.h
    trunk/SKChainedUndoManager.m

Removed Paths:
-------------
    trunk/SKTextUndoManager.h
    trunk/SKTextUndoManager.m

Copied: trunk/SKChainedUndoManager.h (from rev 13664, trunk/SKTextUndoManager.h)
===================================================================
--- trunk/SKChainedUndoManager.h                                (rev 0)
+++ trunk/SKChainedUndoManager.h        2023-09-11 21:43:02 UTC (rev 13665)
@@ -0,0 +1,46 @@
+//
+//  SKChainedUndoManager.h
+//  Skim
+//
+//  Created by Christiaan Hofman on 13/11/2021.
+/*
+This software is Copyright (c) 2021-2023
+Christiaan Hofman. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+- Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in
+   the documentation and/or other materials provided with the
+   distribution.
+
+- Neither the name of Christiaan Hofman nor the names of any
+   contributors may be used to endorse or promote products derived
+   from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface SKChainedUndoManager : NSUndoManager {
+    NSUndoManager *nextUndoManager;
+}
+- (id)initWithNextUndoManager:(NSUndoManager *)undoManager;
+@end

Copied: trunk/SKChainedUndoManager.m (from rev 13664, trunk/SKTextUndoManager.m)
===================================================================
--- trunk/SKChainedUndoManager.m                                (rev 0)
+++ trunk/SKChainedUndoManager.m        2023-09-11 21:43:02 UTC (rev 13665)
@@ -0,0 +1,87 @@
+//
+//  SKChainedUndoManager.m
+//  Skim
+//
+//  Created by Christiaan Hofman on 13/11/2021.
+/*
+This software is Copyright (c) 2021-2023
+Christiaan Hofman. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+- Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in
+   the documentation and/or other materials provided with the
+   distribution.
+
+- Neither the name of Christiaan Hofman nor the names of any
+   contributors may be used to endorse or promote products derived
+   from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#import "SKChainedUndoManager.h"
+
+
+@implementation SKChainedUndoManager
+
+- (id)initWithNextUndoManager:(NSUndoManager *)undoManager {
+    self = [super init];
+    if (self) {
+        nextUndoManager = [undoManager retain];
+    }
+    return self;
+}
+
+- (void)dealloc {
+    SKDESTROY(nextUndoManager);
+    [super dealloc];
+}
+
+- (NSString *)redoMenuItemTitle {
+    return [nextUndoManager canRedo] ? [nextUndoManager redoMenuItemTitle] : 
[super redoMenuItemTitle];
+}
+
+- (NSString *)undoMenuItemTitle {
+    return [super canUndo] || nextUndoManager == nil ? [super 
undoMenuItemTitle] : [nextUndoManager undoMenuItemTitle];
+}
+
+- (BOOL)canRedo {
+    return [super canRedo] || [nextUndoManager canRedo];
+}
+
+- (BOOL)canUndo {
+    return [super canUndo] || [nextUndoManager canUndo];
+}
+
+- (void)redo {
+    if ([nextUndoManager canRedo])
+        [nextUndoManager redo];
+    else
+        [super redo];
+}
+
+- (void)undo {
+    if ([super canUndo])
+        [super undo];
+    else
+        [nextUndoManager undo];
+}
+
+@end

Deleted: trunk/SKTextUndoManager.h
===================================================================
--- trunk/SKTextUndoManager.h   2023-09-11 21:41:45 UTC (rev 13664)
+++ trunk/SKTextUndoManager.h   2023-09-11 21:43:02 UTC (rev 13665)
@@ -1,46 +0,0 @@
-//
-//  SKChainedUndoManager.h
-//  Skim
-//
-//  Created by Christiaan Hofman on 13/11/2021.
-/*
-This software is Copyright (c) 2021-2023
-Christiaan Hofman. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-- Redistributions of source code must retain the above copyright
-  notice, this list of conditions and the following disclaimer.
-
-- Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in
-   the documentation and/or other materials provided with the
-   distribution.
-
-- Neither the name of Christiaan Hofman nor the names of any
-   contributors may be used to endorse or promote products derived
-   from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#import <Cocoa/Cocoa.h>
-
-
-@interface SKChainedUndoManager : NSUndoManager {
-    NSUndoManager *nextUndoManager;
-}
-- (id)initWithNextUndoManager:(NSUndoManager *)undoManager;
-@end

Deleted: trunk/SKTextUndoManager.m
===================================================================
--- trunk/SKTextUndoManager.m   2023-09-11 21:41:45 UTC (rev 13664)
+++ trunk/SKTextUndoManager.m   2023-09-11 21:43:02 UTC (rev 13665)
@@ -1,87 +0,0 @@
-//
-//  SKChainedUndoManager.m
-//  Skim
-//
-//  Created by Christiaan Hofman on 13/11/2021.
-/*
-This software is Copyright (c) 2021-2023
-Christiaan Hofman. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-- Redistributions of source code must retain the above copyright
-  notice, this list of conditions and the following disclaimer.
-
-- Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in
-   the documentation and/or other materials provided with the
-   distribution.
-
-- Neither the name of Christiaan Hofman nor the names of any
-   contributors may be used to endorse or promote products derived
-   from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#import "SKChainedUndoManager.h"
-
-
-@implementation SKChainedUndoManager
-
-- (id)initWithNextUndoManager:(NSUndoManager *)undoManager {
-    self = [super init];
-    if (self) {
-        nextUndoManager = [undoManager retain];
-    }
-    return self;
-}
-
-- (void)dealloc {
-    SKDESTROY(nextUndoManager);
-    [super dealloc];
-}
-
-- (NSString *)redoMenuItemTitle {
-    return [nextUndoManager canRedo] ? [nextUndoManager redoMenuItemTitle] : 
[super redoMenuItemTitle];
-}
-
-- (NSString *)undoMenuItemTitle {
-    return [super canUndo] || nextUndoManager == nil ? [super 
undoMenuItemTitle] : [nextUndoManager undoMenuItemTitle];
-}
-
-- (BOOL)canRedo {
-    return [super canRedo] || [nextUndoManager canRedo];
-}
-
-- (BOOL)canUndo {
-    return [super canUndo] || [nextUndoManager canUndo];
-}
-
-- (void)redo {
-    if ([nextUndoManager canRedo])
-        [nextUndoManager redo];
-    else
-        [super redo];
-}
-
-- (void)undo {
-    if ([super canUndo])
-        [super undo];
-    else
-        [nextUndoManager undo];
-}
-
-@end

Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj        2023-09-11 21:41:45 UTC (rev 
13664)
+++ trunk/Skim.xcodeproj/project.pbxproj        2023-09-11 21:43:02 UTC (rev 
13665)
@@ -157,7 +157,7 @@
                CE5BEA190C7C635400EBDCF7 /* NSGeometry_SKExtensions.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CE5BEA170C7C635400EBDCF7 /* 
NSGeometry_SKExtensions.m */; };
                CE5BF8010C7CBF6300EBDCF7 /* SKTableView.m in Sources */ = {isa 
= PBXBuildFile; fileRef = CE5BF7FF0C7CBF6300EBDCF7 /* SKTableView.m */; };
                CE5BF8430C7CC24A00EBDCF7 /* SKOutlineView.m in Sources */ = 
{isa = PBXBuildFile; fileRef = CE5BF8410C7CC24A00EBDCF7 /* SKOutlineView.m */; 
};
-               CE5CB23F2740329E00315060 /* SKTextUndoManager.m in Sources */ = 
{isa = PBXBuildFile; fileRef = CE5CB23D2740329E00315060 /* SKTextUndoManager.m 
*/; };
+               CE5CB23F2740329E00315060 /* SKChainedUndoManager.m in Sources 
*/ = {isa = PBXBuildFile; fileRef = CE5CB23D2740329E00315060 /* 
SKChainedUndoManager.m */; };
                CE5F43730BF8A3410069D89C /* IOKit.framework in Frameworks */ = 
{isa = PBXBuildFile; fileRef = CE5F42D30BF8A3400069D89C /* IOKit.framework */; 
};
                CE5FA1680C909886008BE480 /* SKFDFParser.m in Sources */ = {isa 
= PBXBuildFile; fileRef = CE5FA1660C909886008BE480 /* SKFDFParser.m */; };
                CE61008C2624FF85007CEC88 /* NotesDocument.xib in Resources */ = 
{isa = PBXBuildFile; fileRef = CE61008B2624FF84007CEC88 /* NotesDocument.xib 
*/; };
@@ -955,8 +955,8 @@
                CE5BF7FF0C7CBF6300EBDCF7 /* SKTableView.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= SKTableView.m; sourceTree = "<group>"; };
                CE5BF8400C7CC24A00EBDCF7 /* SKOutlineView.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
SKOutlineView.h; sourceTree = "<group>"; };
                CE5BF8410C7CC24A00EBDCF7 /* SKOutlineView.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= SKOutlineView.m; sourceTree = "<group>"; };
-               CE5CB23C2740329E00315060 /* SKTextUndoManager.h */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.h; path = 
SKTextUndoManager.h; sourceTree = "<group>"; };
-               CE5CB23D2740329E00315060 /* SKTextUndoManager.m */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = 
SKTextUndoManager.m; sourceTree = "<group>"; };
+               CE5CB23C2740329E00315060 /* SKChainedUndoManager.h */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.h; path = 
SKChainedUndoManager.h; sourceTree = "<group>"; };
+               CE5CB23D2740329E00315060 /* SKChainedUndoManager.m */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = 
SKChainedUndoManager.m; sourceTree = "<group>"; };
                CE5F23571057B75000B5A7B9 /* SKCompatibility.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
SKCompatibility.h; sourceTree = "<group>"; };
                CE5F42D30BF8A3400069D89C /* IOKit.framework */ = {isa = 
PBXFileReference; lastKnownFileType = wrapper.framework; name = 
IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree 
= "<absolute>"; };
                CE5FA1650C909886008BE480 /* SKFDFParser.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
SKFDFParser.h; sourceTree = "<group>"; };
@@ -1257,7 +1257,6 @@
                CEF60DE5114C0E8E0074ACC4 /* it */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = it; path = 
it.lproj/MainMenu.strings; sourceTree = "<group>"; };
                CEF60DE6114C0E8E0074ACC4 /* it */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = it; path = 
it.lproj/PreferenceWindow.strings; sourceTree = "<group>"; };
                CEF60DE7114C0EA80074ACC4 /* ru */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = ru; path = 
ru.lproj/TransitionSheet.strings; sourceTree = "<group>"; };
-               CEF60DE9114C0EA80074ACC4 /* ru */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = ru; path = 
ru.lproj/ScaleSheet.strings; sourceTree = "<group>"; };
                CEF60DEA114C0EA80074ACC4 /* ru */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = ru; path = 
ru.lproj/ReleaseNotes.strings; sourceTree = "<group>"; };
                CEF60DEC114C0EA80074ACC4 /* ru */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = ru; path = 
ru.lproj/PrintAccessoryView.strings; sourceTree = "<group>"; };
                CEF60DED114C0EA80074ACC4 /* ru */ = {isa = PBXFileReference; 
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = ru; path = 
ru.lproj/PasswordSheet.strings; sourceTree = "<group>"; };
@@ -2040,8 +2039,8 @@
                                CE4972890BDE8B2900D7F1D2 /* SKToolbarItem.m */,
                                CE5BD6710C7ADF1500EBDCF7 /* 
SKTypeSelectHelper.h */,
                                CE5BD6720C7ADF1500EBDCF7 /* 
SKTypeSelectHelper.m */,
-                               CE5CB23C2740329E00315060 /* SKTextUndoManager.h 
*/,
-                               CE5CB23D2740329E00315060 /* SKTextUndoManager.m 
*/,
+                               CE5CB23C2740329E00315060 /* 
SKChainedUndoManager.h */,
+                               CE5CB23D2740329E00315060 /* 
SKChainedUndoManager.m */,
                        );
                        name = "View Helpers";
                        sourceTree = "<group>";
@@ -2774,7 +2773,7 @@
                                CEE54D9C0DA2E7B30037169F /* 
PDFAnnotationLine_SKExtensions.m in Sources */,
                                CEE54DAE0DA2E8CD0037169F /* 
PDFAnnotationFreeText_SKExtensions.m in Sources */,
                                CEE54DB40DA2E99D0037169F /* 
PDFAnnotationMarkup_SKExtensions.m in Sources */,
-                               CE5CB23F2740329E00315060 /* SKTextUndoManager.m 
in Sources */,
+                               CE5CB23F2740329E00315060 /* 
SKChainedUndoManager.m in Sources */,
                                CEE54F6C0DA3FB060037169F /* 
SKMainToolbarController.m in Sources */,
                                CEE54F700DA3FBE00037169F /* 
NSSegmentedControl_SKExtensions.m in Sources */,
                                CEE54F900DA3FE9A0037169F /* 
NSValueTransformer_SKExtensions.m in Sources */,

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to