|
@@ -8,11 +8,7 @@
|
|
|
|
|
|
#import "WelcomeWindowController.h"
|
|
|
#import "WaitingView.h"
|
|
|
-#if VERSION_DMG
|
|
|
-#import <PDF_Master-Swift.h>
|
|
|
-#else
|
|
|
#import <PDF_Master-Swift.h>
|
|
|
-#endif
|
|
|
|
|
|
#import "TCPageIndicator.h"
|
|
|
#import "NSButton+TitleColor.h"
|
|
@@ -31,6 +27,7 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
@property (nonatomic,assign) IBOutlet NSView *content4View;
|
|
|
|
|
|
@property (strong) IBOutlet NSView *content5View;
|
|
|
+@property (strong) IBOutlet NSView *content6View;
|
|
|
|
|
|
@property (nonatomic,assign) IBOutlet NSTextField *title1Label;
|
|
|
@property (nonatomic,assign) IBOutlet NSTextField *subtitle1Label;
|
|
@@ -43,6 +40,8 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
|
|
|
@property (weak) IBOutlet NSTextField *title5Label;
|
|
|
@property (weak) IBOutlet NSTextField *subtitle5Label;
|
|
|
+@property (weak) IBOutlet NSTextField *title6Label;
|
|
|
+@property (weak) IBOutlet NSTextField *subtitle6Label;
|
|
|
|
|
|
@property (weak) IBOutlet NSBox *preBox;
|
|
|
@property (weak) IBOutlet NSBox *nextBox;
|
|
@@ -55,6 +54,7 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
@property (weak) IBOutlet NSBox *next2Box;
|
|
|
@property (weak) IBOutlet NSBox *next3Box;
|
|
|
@property (weak) IBOutlet NSBox *next4Box;
|
|
|
+@property (weak) IBOutlet NSBox *next5Box;
|
|
|
|
|
|
@property (weak) IBOutlet NSBox *signUpBox;
|
|
|
|
|
@@ -71,6 +71,7 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
@property (weak) IBOutlet TCPageIndicator *pageIndicator3;
|
|
|
@property (weak) IBOutlet TCPageIndicator *pageIndicator4;
|
|
|
@property (weak) IBOutlet TCPageIndicator *pageIndicator5;
|
|
|
+@property (weak) IBOutlet TCPageIndicator *pageIndicator6;
|
|
|
|
|
|
@property (nonatomic,retain) NSArray *contentViews;
|
|
|
@property (nonatomic,assign) NSInteger currentIndex;
|
|
@@ -115,7 +116,7 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
|
|
|
NSClipView *clipView = self.scrollView.contentView;
|
|
|
// ,self.content4View
|
|
|
- self.contentViews = @[self.content1View,self.content2View,self.content5View];
|
|
|
+ self.contentViews = @[self.content1View, self.content2View, self.content3View, self.content4View, self.content6View, self.content5View];
|
|
|
for (int i=0; i<self.contentViews.count; i++) {
|
|
|
NSView *view = self.contentViews[i];
|
|
|
view.frame = CGRectMake(i*clipView.bounds.size.width, 0,
|
|
@@ -140,20 +141,47 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
}
|
|
|
|
|
|
- (void)localizedString {
|
|
|
+#if VERSION_DMG
|
|
|
self.title1Label.stringValue = NSLocalizedString(@"The Brand New PDF Master", nil);
|
|
|
- self.subtitle1Label.stringValue = NSLocalizedString(@"PDF Master Invites You to Enjoy All Advanced Features!\n\nUse the new powerful software integrated with AI technology to edit your PDFs", nil);
|
|
|
+ self.subtitle1Label.stringValue = NSLocalizedString(@"PDF Master Beta Invites You to Enjoy All Advanced Features!\n\nEdit, Annotate and Convert PDFs with PDF Master to boost your productivity", nil);
|
|
|
|
|
|
- self.title2Label.stringValue = NSLocalizedString(@"Process PDF Document wit AI Robot", nil);
|
|
|
- self.subtitle2Label.stringValue = NSLocalizedString(@"Smart PDF AI robot, powered by Chatgpt helps you translate, rewrite, and correct PDFs with ease, bringing you an enhanced PDF experience.", nil);
|
|
|
+ self.title2Label.stringValue = NSLocalizedString(@"Comment PDFs with Rich Annotation Tools", nil);
|
|
|
+ self.subtitle2Label.stringValue = NSLocalizedString(@"Add highlights, freehand, text, stamps, links, shapes, and notes to your documents. Easily mark up your PDFs anytime!", nil);
|
|
|
|
|
|
// self.title3Label.stringValue = NSLocalizedString(@"Convert PDF to Office Fast and Easily", nil);
|
|
|
// self.subtitle3Label.stringValue = NSLocalizedString(@"Convert PDF to editable Word, Excel, PPT, Text and image with all your fonts and formatting preserved.", nil);
|
|
|
-//
|
|
|
+ self.title3Label.stringValue = NSLocalizedString(@"Edit Original Text and Images Like Word", nil);
|
|
|
+ self.subtitle3Label.stringValue = NSLocalizedString(@"Fix a typo or add a new text box in a PDF effortlessly. Crop, replace, rotate, flip, and export images as desired.", nil);
|
|
|
+
|
|
|
// self.title4Label.stringValue = NSLocalizedString(@"Fill out Form & Sign Documents", nil);
|
|
|
// self.subtitle4Label.stringValue = NSLocalizedString(@"Fill out forms effortlessly and add text, image or handwritten signatures to PDFs.", nil);
|
|
|
+ self.title4Label.stringValue = NSLocalizedString(@"Organize PDF Pages with Ease", nil);
|
|
|
+ self.subtitle4Label.stringValue = NSLocalizedString(@"Drag and drop page thumbnails to rearrange pages. Or easily delete, insert, rotate, split pages.", nil);
|
|
|
+
|
|
|
+ self.title6Label.stringValue = NSLocalizedString(@"Convert PDF to Office Fast and Easily", nil);
|
|
|
+ self.subtitle6Label.stringValue = NSLocalizedString(@"Convert PDF to editable Word, Excel, PPT, Text and image with all your fonts and formatting preserved.", nil);
|
|
|
+
|
|
|
+ self.title5Label.stringValue = NSLocalizedString(@"Sign up to Unlock Premium Features", nil);
|
|
|
+ self.subtitle5Label.stringValue = NSLocalizedString(@"All advanced features in PDF Master can be used after registration, including converting PDFs without limitation. ", nil);
|
|
|
+#else
|
|
|
+ self.title1Label.stringValue = NSLocalizedString(@"The Brand New PDF Master", nil);
|
|
|
+ self.subtitle1Label.stringValue = NSLocalizedString(@"PDF Master Invites You to Enjoy All Advanced Features!\n\nUse the new powerful software integrated with AI technology to edit your PDFs", nil);
|
|
|
+
|
|
|
+ self.title2Label.stringValue = NSLocalizedString(@"Process PDF Document wit AI Robot", nil);
|
|
|
+ self.subtitle2Label.stringValue = NSLocalizedString(@"Smart PDF AI robot, powered by Chatgpt helps you translate, rewrite, and correct PDFs with ease, bringing you an enhanced PDF experience.", nil);
|
|
|
+
|
|
|
+ self.title3Label.stringValue = NSLocalizedString(@"Edit Original Text and Images Like Word", nil);
|
|
|
+ self.subtitle3Label.stringValue = NSLocalizedString(@"Fix a typo or add a new text box in a PDF effortlessly. Crop, replace, rotate, flip, and export images as desired.", nil);
|
|
|
+
|
|
|
+ self.title4Label.stringValue = NSLocalizedString(@"Organize PDF Pages with Ease", nil);
|
|
|
+ self.subtitle4Label.stringValue = NSLocalizedString(@"Drag and drop page thumbnails to rearrange pages. Or easily delete, insert, rotate, split pages.", nil);
|
|
|
+
|
|
|
+ self.title6Label.stringValue = NSLocalizedString(@"Convert PDF to Office Fast and Easily", nil);
|
|
|
+ self.subtitle6Label.stringValue = NSLocalizedString(@"Convert PDF to editable Word, Excel, PPT, Text and image with all your fonts and formatting preserved.", nil);
|
|
|
|
|
|
self.title5Label.stringValue = NSLocalizedString(@"Sign up to Unlock Premium Features", nil);
|
|
|
self.subtitle5Label.stringValue = NSLocalizedString(@"All advanced features in PDF Master can be used after registration.", nil);
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
- (void)initSubViews {
|
|
@@ -177,7 +205,7 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
self.nextButtonVC.target = self;
|
|
|
self.nextButtonVC.action = @selector(nextButtonAction:);
|
|
|
|
|
|
- for (NSBox *box in @[self.next1Box, self.next2Box, self.next3Box, self.next4Box]) {
|
|
|
+ for (NSBox *box in @[self.next1Box, self.next2Box, self.next3Box, self.next4Box, self.next5Box]) {
|
|
|
box.borderType = NSNoBorder;
|
|
|
KMDesignButton *nextButtonVC = [[KMDesignButton alloc] initWithType:DesignButtonTypeText];
|
|
|
[box.contentView addSubview:nextButtonVC.view];
|
|
@@ -196,6 +224,8 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
self.next3ButtonVC = nextButtonVC;
|
|
|
} else if ([box isEqual:self.next4Box]) {
|
|
|
self.next4ButtonVC = nextButtonVC;
|
|
|
+ } else if ([box isEqual:self.next5Box]) {
|
|
|
+// self.next5
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -226,8 +256,8 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
[self.signUpButtonVC buttonWithType:TokenButtonTypeCta size:TokenButtonSizeL height:[[NSLayoutConstraint alloc] init]];
|
|
|
|
|
|
// , self.pageIndicator5
|
|
|
- for (TCPageIndicator *pageindicator in @[self.pageIndicator1, self.pageIndicator2, self.pageIndicator5]) {
|
|
|
- pageindicator.numberOfPages = 3;
|
|
|
+ for (TCPageIndicator *pageindicator in @[self.pageIndicator1, self.pageIndicator2, self.pageIndicator3, self.pageIndicator4, self.pageIndicator5, self.pageIndicator6]) {
|
|
|
+ pageindicator.numberOfPages = 6;
|
|
|
pageindicator.selectedColor = [NSColor colorWithRed:39/255.f green:60/255.f blue:98/255.f alpha:1.f];
|
|
|
pageindicator.normalColor = [NSColor colorWithRed:0/255.f green:0/255.f blue:0/255.f alpha:0.2];
|
|
|
pageindicator.pageIndicatorSize = NSMakeSize(6, 6);
|
|
@@ -242,7 +272,9 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
} else if ([pageindicator isEqual:self.pageIndicator4]) {
|
|
|
pageindicator.currentPage = 3;
|
|
|
} else if ([pageindicator isEqual:self.pageIndicator5]) {
|
|
|
- pageindicator.currentPage = 2;
|
|
|
+ pageindicator.currentPage = 5;
|
|
|
+ } else if ([pageindicator isEqual:self.pageIndicator6]) {
|
|
|
+ pageindicator.currentPage = 4;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -258,7 +290,7 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
|
|
|
- (void)setupUI {
|
|
|
for (NSTextField *titleLabel in @[self.title1Label, self.title2Label, self.title3Label,
|
|
|
- self.title4Label, self.title5Label]) {
|
|
|
+ self.title4Label, self.title6Label, self.title5Label]) {
|
|
|
titleLabel.font = [NSFont fontWithName:@"SFProText-Semibold" size:20];
|
|
|
titleLabel.textColor = [NSColor colorWithRed:37/255.f green:38/255.f blue:41/255.f alpha:1.f];
|
|
|
}
|
|
@@ -267,7 +299,7 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
ps.lineSpacing = 6;
|
|
|
ps.alignment = NSTextAlignmentCenter;
|
|
|
for (NSTextField *subtitleLabel in @[self.subtitle1Label, self.subtitle2Label, self.subtitle3Label,
|
|
|
- self.subtitle4Label, self.subtitle5Label]) {
|
|
|
+ self.subtitle4Label, self.subtitle6Label, self.subtitle5Label]) {
|
|
|
if ([subtitleLabel isEqual:self.subtitle1Label]) {
|
|
|
NSMutableParagraphStyle *ps_ = [[NSMutableParagraphStyle alloc] init];
|
|
|
// ps_.lineSpacing = 6;
|
|
@@ -303,9 +335,11 @@ static NSString * const kKMWelcomeRemindMeLaterKey = @"WelcomeRemindMeLaterKey";
|
|
|
self.preBox.hidden = YES;
|
|
|
} else if (self.currentIndex == 1) {
|
|
|
} else if (self.currentIndex == 2) {
|
|
|
- self.nextBox.hidden = YES;
|
|
|
+// self.nextBox.hidden = YES;
|
|
|
} else if (self.currentIndex == 3) {
|
|
|
} else if (self.currentIndex == 4){
|
|
|
+
|
|
|
+ } else if (self.currentIndex == 5) {
|
|
|
self.nextBox.hidden = YES;
|
|
|
}
|
|
|
}
|