mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
MacPDF: Rename LagomPDFDocument to MacPDFDocument
This commit is contained in:
parent
f99771d46f
commit
76f0a09b5e
6 changed files with 10 additions and 10 deletions
|
@ -10,14 +10,14 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||||
add_compile_options(-DAK_DONT_REPLACE_STD)
|
add_compile_options(-DAK_DONT_REPLACE_STD)
|
||||||
|
|
||||||
set(RESOURCES
|
set(RESOURCES
|
||||||
LagomPDFDocument.xib
|
MacPDFDocument.xib
|
||||||
MainMenu.xib
|
MainMenu.xib
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(MacPDF MACOSX_BUNDLE
|
add_executable(MacPDF MACOSX_BUNDLE
|
||||||
main.mm
|
main.mm
|
||||||
AppDelegate.mm
|
AppDelegate.mm
|
||||||
LagomPDFDocument.mm
|
MacPDFDocument.mm
|
||||||
MacPDFView.mm
|
MacPDFView.mm
|
||||||
)
|
)
|
||||||
target_compile_options(MacPDF PRIVATE
|
target_compile_options(MacPDF PRIVATE
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<string>com.adobe.pdf</string>
|
<string>com.adobe.pdf</string>
|
||||||
</array>
|
</array>
|
||||||
<key>NSDocumentClass</key>
|
<key>NSDocumentClass</key>
|
||||||
<string>LagomPDFDocument</string>
|
<string>MacPDFDocument</string>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@interface LagomPDFDocument : NSDocument <MacPDFViewDelegate>
|
@interface MacPDFDocument : NSDocument <MacPDFViewDelegate>
|
||||||
{
|
{
|
||||||
IBOutlet MacPDFView* _pdfView;
|
IBOutlet MacPDFView* _pdfView;
|
||||||
}
|
}
|
|
@ -4,20 +4,20 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "LagomPDFDocument.h"
|
#import "MacPDFDocument.h"
|
||||||
|
|
||||||
#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
|
#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
|
||||||
|
|
||||||
#include <LibPDF/Document.h>
|
#include <LibPDF/Document.h>
|
||||||
|
|
||||||
@interface LagomPDFDocument ()
|
@interface MacPDFDocument ()
|
||||||
{
|
{
|
||||||
NSData* _data; // Strong, _doc refers to it.
|
NSData* _data; // Strong, _doc refers to it.
|
||||||
RefPtr<PDF::Document> _doc;
|
RefPtr<PDF::Document> _doc;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation LagomPDFDocument
|
@implementation MacPDFDocument
|
||||||
|
|
||||||
- (void)promptForPassword:(NSWindow*)window
|
- (void)promptForPassword:(NSWindow*)window
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
- (NSString*)windowNibName
|
- (NSString*)windowNibName
|
||||||
{
|
{
|
||||||
return @"LagomPDFDocument";
|
return @"MacPDFDocument";
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowControllerDidLoadNib:(NSWindowController*)aController
|
- (void)windowControllerDidLoadNib:(NSWindowController*)aController
|
|
@ -5,7 +5,7 @@
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="LagomPDFDocument">
|
<customObject id="-2" userLabel="File's Owner" customClass="MacPDFDocument">
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="_pdfView" destination="gIp-Ho-8D9" id="bcT-vU-foe"/>
|
<outlet property="_pdfView" destination="gIp-Ho-8D9" id="bcT-vU-foe"/>
|
||||||
<outlet property="window" destination="xOd-HO-29H" id="JIz-fz-R2o"/>
|
<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
|
@implementation MacPDFView
|
||||||
|
|
||||||
// Called from LagomPDFDocument
|
// Called from MacPDFDocument.
|
||||||
- (void)setDocument:(WeakPtr<PDF::Document>)doc
|
- (void)setDocument:(WeakPtr<PDF::Document>)doc
|
||||||
{
|
{
|
||||||
NSLog(@"doc set");
|
NSLog(@"doc set");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue