mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 01:55:07 +00:00
MacPDF: Rename LagomPDFDocument to MacPDFDocument
This commit is contained in:
parent
f99771d46f
commit
76f0a09b5e
|
@ -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
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<string>com.adobe.pdf</string>
|
||||
</array>
|
||||
<key>NSDocumentClass</key>
|
||||
<string>LagomPDFDocument</string>
|
||||
<string>MacPDFDocument</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface LagomPDFDocument : NSDocument <MacPDFViewDelegate>
|
||||
@interface MacPDFDocument : NSDocument <MacPDFViewDelegate>
|
||||
{
|
||||
IBOutlet MacPDFView* _pdfView;
|
||||
}
|
|
@ -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
|
|
@ -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"/>
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue