KMPreferenceEnum.swift 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // KMPreferenceEnum.swift
  3. // PDF Reader Pro
  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 KMPreferenceOpenDocumentType: Int {
  16. case inSameWindow = 0
  17. case newWindow = 1
  18. }
  19. enum KMPreferenceOpenFileType: Int {
  20. case `default` = 0
  21. case maxim = 1
  22. case fit = 2
  23. }
  24. enum KMPreferenceRevertInitSettingType: Int {
  25. case normal = 0
  26. case fullScreen = 1
  27. }
  28. enum KMPreferenceSavePasswordType: Int {
  29. case always = 0
  30. case never = 1
  31. case ask = 2
  32. }
  33. enum KMPreferenceViewSetting: String {
  34. case pageNumber = "pageNumber"
  35. }
  36. enum KMPreferenceLeftSideDisplayType: Int {
  37. case closeWhenOpenFile = 0 // 打开文件时收起
  38. case openAppSaveLastSelect // 打开App记住上次选择
  39. case showOutlineIfHas // 显示大纲列表,如果有
  40. }
  41. enum KMPreferencePropertyPanelExpandType: Int {
  42. case auto = 0
  43. case manual
  44. }
  45. enum KMPreferencePageIndicatorDisplayType: Int {
  46. case automatic = 0
  47. case always
  48. case never
  49. }
  50. enum KMPreferenceMarkupColorKey: Int {
  51. case highlight = 0
  52. case rectangleFill
  53. case strikthrough
  54. case rectangleBorder
  55. case underline
  56. case circleFill
  57. case pen
  58. case circleBorder
  59. case text
  60. case line
  61. case note
  62. case arrow
  63. }