KMPreferenceEnum.swift 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // KMPreferenceEnum.swift
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2023/3/13.
  6. //
  7. import Foundation
  8. //enum KMPreference {
  9. // case leftSideDisplayType = KMPreferenceLeftSideDisplayType.closeWhenOpenFile
  10. //}
  11. enum KMPreferenceCloseFilePromptType: Int {
  12. case promp = 0
  13. case noPromp = 1
  14. }
  15. enum KMPreferenceSavePasswordType: Int {
  16. case always = 0
  17. case never = 1
  18. case ask = 2
  19. }
  20. enum KMPreferenceViewSetting: String {
  21. case pageNumber = "pageNumber"
  22. }
  23. enum KMPreferenceLeftSideDisplayType: Int {
  24. case closeWhenOpenFile = 0 // 打开文件时收起
  25. case openAppSaveLastSelect // 打开App记住上次选择
  26. case showOutlineIfHas // 显示大纲列表,如果有
  27. }
  28. enum KMPreferencePropertyPanelExpandType: Int {
  29. case auto = 0
  30. case manual
  31. }
  32. enum KMPreferencePageIndicatorDisplayType: Int {
  33. case automatic = 0
  34. case always
  35. case never
  36. }
  37. enum KMPreferenceMarkupColorKey: Int {
  38. case highlight = 0
  39. case rectangleFill
  40. case strikthrough
  41. case rectangleBorder
  42. case underline
  43. case circleFill
  44. case pen
  45. case circleBorder
  46. case text
  47. case line
  48. case note
  49. case arrow
  50. }