|
@@ -348,6 +348,19 @@ NSPopoverDelegate>
|
|
|
} else if (type == KMUserScenarioTypeLite_type11) {
|
|
|
self.button.title = [NSString stringWithFormat:@" %@ ",NSLocalizedString(@"Upgrade", nil)];
|
|
|
}
|
|
|
+#if !VERSION_FREE
|
|
|
+// VerificationManager.default().needUpgradeLicense
|
|
|
+ if ([[VerificationManager defaultManager] needUpgradeLicense]) {
|
|
|
+ [self.officeButton setTitleColor:[NSColor whiteColor]];
|
|
|
+ self.officeButton.hidden = YES;
|
|
|
+ self.officeImg.hidden = YES;
|
|
|
+ self.officeButton.frame = CGRectMake(totalWidth, kbottomGap, officeWidth, self.view.frame.size.height -2 *kbottomGap);
|
|
|
+ CGRect officeRect = self.officeButton.frame;
|
|
|
+ self.officeImg.frame = officeRect;
|
|
|
+ totalWidth+=CGRectGetWidth(self.officeButton.bounds);
|
|
|
+ totalWidth+=4;
|
|
|
+ }
|
|
|
+#endif
|
|
|
if (type == KMUserScenarioTypeLite_type1 ||
|
|
|
type == KMUserScenarioTypeLite_type3 ||
|
|
|
type == KMUserScenarioTypeLite_type7 ||
|
|
@@ -455,6 +468,10 @@ NSPopoverDelegate>
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+- (IBAction)officeButtonAction:(id)sender {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
- (NSAttributedString *)numberConvertColor:(NSColor*)color String:(NSString *)string {
|
|
|
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:string];
|
|
|
NSString *temp = nil;
|