1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // KMMainModel.swift
- // Cisdem PDFMaster
- //
- // Created by tangchao on 2024/4/30.
- //
- import Cocoa
- extension KMMainModel.Key {
- static let kLeftSidePaneWidth = "leftSidePaneWidth"
- static let kRightSidePaneWidth = "rightSidePaneWidth"
- static let kSnapshots = "snapshots"
-
- static let kDisplaysPageBreaks = "displaysPageBreaks"
- static let kDisplaysAsBook = "displaysAsBook"
- static let kDisplayMode = "displayMode"
- static let kDisplayBox = "displayBox"
- static let kHasHorizontalScroller = "hasHorizontalScroller"
- static let kHasVerticalsCroller = "hasVerticalScroller"
- static let kAutoHidesScrollers = "autoHidesScrollers"
- static let kScaleFactor = "scaleFactor"
- static let kAutoScales = "autoScales"
-
- static let pageIndex = "pageIndex"
- static let scrollPoint = "scrollPoint"
- static let locked = "locked"
- }
- @objcMembers class KMMainModel: NSObject {
- struct Key {}
-
- // 标识 pdf 已编辑
- var isPDFDocumentEdited = false
- // 标识 pdf文字图片已编辑
- var isPDFTextImageEdited = false
-
- var password: String?
- var isShowQuickTour = false
- var isSaveKeyChain = true
- var rightMouseEventing = false
-
- var hasAddRedact: Bool = false
- var isShowBOTA: Bool = false
-
- let panelWidth = 212.0
- let defaultRightWidth = 260.0
- var lastLeftPanWidth = 0.0
- var lastRightPanWidth = 0.0
- var leftPanelOpen: Bool = false
- var rightPanelIsOpen = false
-
- var beforeMarkedPageIndex = NSNotFound
- var markedPageIndex = NSNotFound
- var beforeMarkedPagePoint = NSPoint.zero
- var markedPagePoint = NSPoint.zero
-
- var needConvertNotes = true
-
- var addAnnotations: [CPDFAnnotation] = []
- var removeAnnotations: [CPDFAnnotation] = []
- }
|