KMMainModel.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // KMMainModel.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2024/4/30.
  6. //
  7. import Cocoa
  8. extension KMMainModel.Key {
  9. static let kDisplaysPageBreaks = "displaysPageBreaks"
  10. static let kDisplaysAsBook = "displaysAsBook"
  11. static let kDisplayMode = "displayMode"
  12. static let kDisplayBox = "displayBox"
  13. static let kHasHorizontalScroller = "hasHorizontalScroller"
  14. static let kHasVerticalsCroller = "hasVerticalScroller"
  15. static let kAutoHidesScrollers = "autoHidesScrollers"
  16. static let kScaleFactor = "scaleFactor"
  17. static let kAutoScales = "autoScales"
  18. static let pageIndex = "pageIndex"
  19. static let scrollPoint = "scrollPoint"
  20. static let locked = "locked"
  21. }
  22. @objcMembers class KMMainModel: NSObject {
  23. struct Key {}
  24. // 标识 pdf 已编辑
  25. var isPDFDocumentEdited = false
  26. var password: String?
  27. var isShowQuickTour = false
  28. var isSaveKeyChain = true
  29. }