PSSpecifier.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #import "PSTableCell.h"
  2. #include <sys/cdefs.h>
  3. __BEGIN_DECLS
  4. extern NSString *const PSAccessoryKey; // @"accessory"
  5. extern NSString *const PSActionKey; // @"action"
  6. extern NSString *const PSAdjustFontSizeToFitWidthKey; // @"adjustFontSizeToFitWidth"
  7. extern NSString *const PSAlignmentKey; // @"alignment"
  8. extern NSString *const PSAppGroupBundleIDKey; // @"appGroupBundleID"
  9. extern NSString *const PSAutoCapsKey; // @"autoCaps"
  10. extern NSString *const PSAutoCorrectionKey; // @"autoCorrection"
  11. extern NSString *const PSBestGuesserKey; // @"bestGuess"
  12. extern NSString *const PSBundleCustomIconPathKey; // @"icon2"
  13. extern NSString *const PSBundleHasBundleIconKey; // @"hasBundleIcon"
  14. extern NSString *const PSBundleHasIconKey; // @"hasIcon"
  15. extern NSString *const PSBundleIconPathKey; // @"icon"
  16. extern NSString *const PSBundleIsControllerKey; // @"isController"
  17. extern NSString *const PSBundleOverridePrincipalClassKey; // @"overridePrincipalClass"
  18. extern NSString *const PSBundlePathKey; // @"bundle"
  19. extern NSString *const PSBundleTintedIconPathKey; // @"tintedIcon"
  20. extern NSString *const PSButtonActionKey; // @"buttonAction"
  21. extern NSString *const PSCancelKey; // @"cancel"
  22. extern NSString *const PSCellClassKey; // @"cellClass"
  23. extern NSString *const PSConfirmationActionKey; // @"confirmationAction"
  24. extern NSString *const PSConfirmationCancelActionKey; // @"cancel"
  25. extern NSString *const PSConfirmationCancelKey; // @"cancelTitle"
  26. extern NSString *const PSConfirmationDestructiveKey; // @"isDestructive"
  27. extern NSString *const PSConfirmationKey; // @"confirmation"
  28. extern NSString *const PSConfirmationOKKey; // @"okTitle"
  29. extern NSString *const PSConfirmationPromptKey; // @"prompt"
  30. extern NSString *const PSConfirmationTitleKey; // @"title"
  31. extern NSString *const PSContainerBundleIDKey; // @"containerBundleID"
  32. extern NSString *const PSControlIsLoadingKey; // @"control-loading"
  33. extern NSString *const PSControlKey; // @"control"
  34. extern NSString *const PSControllerLoadActionKey; // @"loadAction"
  35. extern NSString *const PSControlMaximumKey; // @"max"
  36. extern NSString *const PSControlMinimumKey; // @"min"
  37. extern NSString *const PSCopyableCellKey; // @"isCopyable"
  38. extern NSString *const PSDataSourceClassKey; // @"dataSourceClass"
  39. extern NSString *const PSDecimalKeyboardKey; // @"isDecimalPad"
  40. extern NSString *const PSDefaultsKey; // @"defaults"
  41. extern NSString *const PSDefaultValueKey; // @"default"
  42. extern NSString *const PSDeferItemSelectionKey; // @"deferItemSelection"
  43. extern NSString *const PSDeletionActionKey; // @"deletionAction"
  44. extern NSString *const PSDetailControllerClassKey; // @"detail"
  45. extern NSString *const PSEditableTableCellTextFieldShouldPopOnReturn; // @"textFieldShouldPopOnReturn"
  46. extern NSString *const PSEditPaneClassKey; // @"pane"
  47. extern NSString *const PSEmailAddressingKeyboardKey; // @"isEmailAddressing"
  48. extern NSString *const PSEmailAddressKeyboardKey; // @"isEmail"
  49. extern NSString *const PSEnabledKey; // @"enabled"
  50. extern NSString *const PSFooterAlignmentGroupKey; // @"footerAlignment"
  51. extern NSString *const PSFooterCellClassGroupKey; // @"footerCellClass"
  52. extern NSString *const PSFooterTextGroupKey; // @"footerText"
  53. extern NSString *const PSFooterViewKey; // @"footerView"
  54. extern NSString *const PSGetterKey; // @"get"
  55. extern NSString *const PSHeaderCellClassGroupKey; // @"headerCellClass"
  56. extern NSString *const PSHeaderDetailTextGroupKey; // @"headerDetailText"
  57. extern NSString *const PSHeaderViewKey; // @"headerView"
  58. extern NSString *const PSHidesDisclosureIndicatorKey; // @"hidesDisclosureIndicator"
  59. extern NSString *const PSIconImageKey; // @"iconImage"
  60. extern NSString *const PSIconImageShouldFlipForRightToLeftKey; // @"iconImageShouldFlipForRightToLeft"
  61. extern NSString *const PSIDKey; // @"id"
  62. extern NSString *const PSIPKeyboardKey; // @"isIP"
  63. extern NSString *const PSIsPerGizmoKey; // @"isPerGizmo"
  64. extern NSString *const PSIsRadioGroupKey; // @"isRadioGroup"
  65. extern NSString *const PSIsTopLevelKey; // @"isTopLevel"
  66. extern NSString *const PSKeyboardTypeKey; // @"keyboard"
  67. extern NSString *const PSKeyNameKey; // @"key"
  68. extern NSString *const PSLazilyLoadedBundleKey; // @"lazy-bundle"
  69. extern NSString *const PSLazyIconAppID; // @"appIDForLazyIcon"
  70. extern NSString *const PSLazyIconDontUnload; // @"dontUnloadLazyIcon"
  71. extern NSString *const PSLazyIconLoading; // @"useLazyIcons"
  72. extern NSString *const PSLazyIconLoadingCustomQueue; // @"customIconQueue"
  73. extern NSString *const PSMarginWidthKey; // @"marginWidth"
  74. extern NSString *const PSNegateValueKey; // @"negate"
  75. extern NSString *const PSNotifyNanoKey; // @"notifyNano"
  76. extern NSString *const PSNumberKeyboardKey; // @"isNumeric"
  77. extern NSString *const PSPlaceholderKey; // @"placeholder"
  78. extern NSString *const PSPrioritizeValueTextDisplayKey; // @"prioritizeValueTextDisplay"
  79. extern NSString *const PSRadioGroupCheckedSpecifierKey; // @"radioGroupCheckedSpecifier"
  80. extern NSString *const PSRequiredCapabilitiesKey; // @"requiredCapabilities"
  81. extern NSString *const PSRequiredCapabilitiesOrKey; // @"requiredCapabilitiesOr"
  82. extern NSString *const PSSearchNanoApplicationsBundlePath; // @"nanoAppsBundlePath"
  83. extern NSString *const PSSearchNanoInternalSettingsBundlePath; // @"nanoInternalBundlePath"
  84. extern NSString *const PSSearchNanoSettingsBundlePath; // @"nanoBundlePath"
  85. extern NSString *const PSSetterKey; // @"set"
  86. extern NSString *const PSSetupCustomClassKey; // @"customControllerClass"
  87. extern NSString *const PSShortTitlesDataSourceKey; // @"shortTitlesDataSource"
  88. extern NSString *const PSShortTitlesKey; // @"shortTitles"
  89. extern NSString *const PSSliderIsContinuous; // @"isContinuous"
  90. extern NSString *const PSSliderIsSegmented; // @"isSegmented"
  91. extern NSString *const PSSliderLeftImageKey; // @"leftImage"
  92. extern NSString *const PSSliderLeftImagePromiseKey; // @"leftImagePromise"
  93. extern NSString *const PSSliderRightImageKey; // @"rightImage"
  94. extern NSString *const PSSliderRightImagePromiseKey; // @"rightImagePromise"
  95. extern NSString *const PSSliderSegmentCount; // @"segmentCount"
  96. extern NSString *const PSSliderShowValueKey; // @"showValue"
  97. extern NSString *const PSSpecifierAuthenticationTokenKey; // @"authenticationToken"
  98. extern NSString *const PSSpecifierPasscodeKey; // @"passcode"
  99. extern NSString *const PSStaticTextMessageKey; // @"staticTextMessage"
  100. extern NSString *const PSTableCellClassKey; // @"cell"
  101. extern NSString *const PSTableCellHeightKey; // @"height"
  102. extern NSString *const PSTableCellKey; // @"cellObject"
  103. extern NSString *const PSTableCellUseEtchedAppearanceKey; // @"useEtched"
  104. extern NSString *const PSTextFieldNoAutoCorrectKey; // @"noAutoCorrect"
  105. extern NSString *const PSTextViewBottomMarginKey; // @"textViewBottomMargin"
  106. extern NSString *const PSTitleKey; // @"label"
  107. extern NSString *const PSTitlesDataSourceKey; // @"titlesDataSource"
  108. extern NSString *const PSURLKeyboardKey; // @"isURL"
  109. extern NSString *const PSValidTitlesKey; // @"validTitles"
  110. extern NSString *const PSValidValuesKey; // @"validValues"
  111. extern NSString *const PSValueChangedNotificationKey; // @"PostNotification"
  112. extern NSString *const PSValueKey; // @"value"
  113. extern NSString *const PSValuesDataSourceKey; // @"valuesDataSource"
  114. __END_DECLS
  115. @interface PSSpecifier : NSObject {
  116. @public
  117. SEL action;
  118. }
  119. + (instancetype)preferenceSpecifierNamed:(NSString *)identifier target:(id)target set:(SEL)set get:(SEL)get detail:(Class)detail cell:(PSCellType)cellType edit:(Class)edit;
  120. + (instancetype)emptyGroupSpecifier;
  121. + (instancetype)groupSpecifierWithName:(NSString *)name;
  122. @property (nonatomic, retain) id target;
  123. @property (nonatomic, retain) NSString *name;
  124. @property (nonatomic, retain) NSString *identifier;
  125. @property (nonatomic, retain) NSMutableDictionary *properties;
  126. - (id)propertyForKey:(NSString *)key;
  127. - (void)setProperty:(id)property forKey:(NSString *)key;
  128. - (void)removePropertyForKey:(NSString *)key;
  129. @property (nonatomic, retain) NSDictionary *shortTitleDictionary;
  130. @property (nonatomic, retain) NSDictionary *titleDictionary;
  131. @property (nonatomic) SEL controllerLoadAction;
  132. @end