MacPDF: Rename LagomPDFDocument to MacPDFDocument

This commit is contained in:
Nico Weber 2023-09-30 18:58:24 -04:00 committed by Andrew Kaster
parent f99771d46f
commit 76f0a09b5e
6 changed files with 10 additions and 10 deletions

View file

@ -10,14 +10,14 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
add_compile_options(-DAK_DONT_REPLACE_STD)
set(RESOURCES
LagomPDFDocument.xib
MacPDFDocument.xib
MainMenu.xib
)
add_executable(MacPDF MACOSX_BUNDLE
main.mm
AppDelegate.mm
LagomPDFDocument.mm
MacPDFDocument.mm
MacPDFView.mm
)
target_compile_options(MacPDF PRIVATE

View file

@ -16,7 +16,7 @@
<string>com.adobe.pdf</string>
</array>
<key>NSDocumentClass</key>
<string>LagomPDFDocument</string>
<string>MacPDFDocument</string>
</dict>
</array>
<key>CFBundleExecutable</key>

View file

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface LagomPDFDocument : NSDocument <MacPDFViewDelegate>
@interface MacPDFDocument : NSDocument <MacPDFViewDelegate>
{
IBOutlet MacPDFView* _pdfView;
}

View file

@ -4,20 +4,20 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#import "LagomPDFDocument.h"
#import "MacPDFDocument.h"
#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
#include <LibPDF/Document.h>
@interface LagomPDFDocument ()
@interface MacPDFDocument ()
{
NSData* _data; // Strong, _doc refers to it.
RefPtr<PDF::Document> _doc;
}
@end
@implementation LagomPDFDocument
@implementation MacPDFDocument
- (void)promptForPassword:(NSWindow*)window
{
@ -73,7 +73,7 @@
- (NSString*)windowNibName
{
return @"LagomPDFDocument";
return @"MacPDFDocument";
}
- (void)windowControllerDidLoadNib:(NSWindowController*)aController

View file

@ -5,7 +5,7 @@
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="LagomPDFDocument">
<customObject id="-2" userLabel="File's Owner" customClass="MacPDFDocument">
<connections>
<outlet property="_pdfView" destination="gIp-Ho-8D9" id="bcT-vU-foe"/>
<outlet property="window" destination="xOd-HO-29H" id="JIz-fz-R2o"/>

View file

@ -60,7 +60,7 @@ static NSBitmapImageRep* ns_from_gfx(NonnullRefPtr<Gfx::Bitmap> bitmap_p)
@implementation MacPDFView
// Called from LagomPDFDocument
// Called from MacPDFDocument.
- (void)setDocument:(WeakPtr<PDF::Document>)doc
{
NSLog(@"doc set");