PSListController.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #import "PSViewController.h"
  2. @class PSRootController, PSSpecifier, PSTableCell;
  3. @interface PSListController : PSViewController <UITableViewDelegate, UITableViewDataSource, UIAppearance> {
  4. NSArray *_specifiers;
  5. }
  6. + (BOOL)displaysButtonBar;
  7. - (NSArray *)loadSpecifiersFromPlistName:(NSString *)name target:(PSListController *)target;
  8. - (Class)tableViewClass;
  9. - (UITableViewStyle)tableViewStyle;
  10. @property (nonatomic, retain) UITableView *view;
  11. @property (nonatomic, retain) UITableView *table; // 3.0 - 6.0
  12. @property (nonatomic, retain) UITableView *tableView;
  13. - (PSSpecifier *)specifierAtIndex:(NSInteger)index;
  14. - (PSSpecifier *)specifierAtIndexPath:(NSIndexPath *)indexPath;
  15. - (PSSpecifier *)specifierForID:(NSString *)identifier;
  16. - (NSArray *)specifiersForIDs:(NSArray *)identifiers;
  17. - (NSArray *)specifiersInGroup:(NSInteger)group;
  18. @property (nonatomic, retain) NSArray *specifiers;
  19. @property (nonatomic, retain) PSSpecifier *specifier;
  20. @property (nonatomic, retain) NSString *specifierID;
  21. @property (nonatomic, retain) NSString *specifierIDPendingPush;
  22. @property (nonatomic, retain) id specifierDataSource;
  23. - (NSInteger)numberOfGroups;
  24. - (NSInteger)rowsForGroup:(NSInteger)group;
  25. - (BOOL)getGroup:(NSInteger *)group row:(NSInteger *)row ofSpecifier:(PSSpecifier *)specifier;
  26. - (BOOL)getGroup:(NSInteger *)group row:(NSInteger *)row ofSpecifierAtIndex:(NSInteger)specifier;
  27. - (BOOL)getGroup:(NSInteger *)group row:(NSInteger *)row ofSpecifierID:(NSString *)specifierID;
  28. - (NSInteger)indexForIndexPath:(NSIndexPath *)indexPath;
  29. - (NSInteger)indexForRow:(NSInteger)row inGroup:(NSInteger)group;
  30. - (NSInteger)indexOfGroup:(NSInteger)group;
  31. - (NSInteger)indexOfSpecifier:(PSSpecifier *)specifier;
  32. - (NSInteger)indexOfSpecifierID:(NSString *)specifierID;
  33. - (NSIndexPath *)indexPathForIndex:(NSInteger)index;
  34. - (NSIndexPath *)indexPathForSpecifier:(PSSpecifier *)specifier;
  35. - (void)addSpecifier:(PSSpecifier *)specifier;
  36. - (void)addSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated;
  37. - (void)addSpecifiersFromArray:(NSArray *)specifiers;
  38. - (void)addSpecifiersFromArray:(NSArray *)specifiers animated:(BOOL)animated;
  39. - (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifier:(PSSpecifier *)afterSpecifier;
  40. - (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifier:(PSSpecifier *)afterSpecifier animated:(BOOL)animated;
  41. - (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifierID:(NSString *)specifierID;
  42. - (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifierID:(NSString *)specifierID animated:(BOOL)animated;
  43. - (void)insertSpecifier:(PSSpecifier *)specifier atEndOfGroup:(NSInteger)groupIndex;
  44. - (void)insertSpecifier:(PSSpecifier *)specifier atEndOfGroup:(NSInteger)groupIndex animated:(BOOL)animated;
  45. - (void)insertSpecifier:(PSSpecifier *)specifier atIndex:(NSInteger)index;
  46. - (void)insertSpecifier:(PSSpecifier *)specifier atIndex:(NSInteger)index animated:(BOOL)animated;
  47. - (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifier:(PSSpecifier *)specifier;
  48. - (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated;
  49. - (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifierID:(NSString *)specifierID;
  50. - (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifierID:(NSString *)specifierID animated:(BOOL)animated;
  51. - (void)insertContiguousSpecifiers:(NSArray *)specifiers atEndOfGroup:(NSInteger)groupIndex;
  52. - (void)insertContiguousSpecifiers:(NSArray *)specifiers atEndOfGroup:(NSInteger)groupIndex animated:(BOOL)animated;
  53. - (void)insertContiguousSpecifiers:(NSArray *)specifiers atIndex:(NSInteger)index;
  54. - (void)insertContiguousSpecifiers:(NSArray *)specifiers atIndex:(NSInteger)index animated:(BOOL)animated;
  55. - (void)reload;
  56. - (void)reloadSpecifier:(PSSpecifier *)specifier;
  57. - (void)reloadSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated;
  58. - (void)reloadSpecifierAtIndex:(NSInteger)index;
  59. - (void)reloadSpecifierAtIndex:(NSInteger)index animated:(BOOL)animated;
  60. - (void)reloadSpecifierID:(NSString *)specifierID;
  61. - (void)reloadSpecifierID:(NSString *)specifierID animated:(BOOL)animated;
  62. - (void)reloadSpecifiers;
  63. - (void)removeContiguousSpecifiers:(NSArray *)specifiers;
  64. - (void)removeContiguousSpecifiers:(NSArray *)specifiers animated:(BOOL)animated;
  65. - (void)removeLastSpecifier;
  66. - (void)removeLastSpecifierAnimated:(BOOL)animated;
  67. - (void)removeSpecifier:(PSSpecifier *)specifier;
  68. - (void)removeSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated;
  69. - (void)removeSpecifierAtIndex:(NSInteger)index;
  70. - (void)removeSpecifierAtIndex:(NSInteger)index animated:(BOOL)animated;
  71. - (void)removeSpecifierID:(NSString *)specifierID;
  72. - (void)removeSpecifierID:(NSString *)specifierID animated:(BOOL)animated;
  73. - (void)replaceContiguousSpecifiers:(NSArray *)specifiers withSpecifiers:(NSArray *)newSpecifiers;
  74. - (void)replaceContiguousSpecifiers:(NSArray *)specifiers withSpecifiers:(NSArray *)newSpecifiers animated:(BOOL)animated;
  75. - (void)updateSpecifiers:(NSArray *)specifiers withSpecifiers:(NSArray *)newSpecifiers;
  76. - (void)updateSpecifiersInRange:(NSRange)range withSpecifiers:(NSArray *)newSpecifiers;
  77. - (NSRange)rangeOfSpecifiersInGroupID:(NSString *)groupID;
  78. - (PSTableCell *)cachedCellForSpecifier:(PSSpecifier *)specifier;
  79. - (PSTableCell *)cachedCellForSpecifierID:(NSString *)specifierID;
  80. @property (nonatomic, retain) NSBundle *bundle;
  81. - (void)reloadIconForSpecifierForBundle:(NSBundle *)bundle;
  82. @property (nonatomic) BOOL forceSynchronousIconLoadForCreatedCells;
  83. @property (nonatomic, retain) UIColor *altTextColor;
  84. @property (nonatomic, retain) UIColor *backgroundColor;
  85. @property (nonatomic, retain) UIColor *buttonTextColor;
  86. @property (nonatomic, retain) UIColor *cellAccessoryColor;
  87. @property (nonatomic, retain) UIColor *cellAccessoryHighlightColor;
  88. @property (nonatomic, retain) UIColor *cellHighlightColor;
  89. @property (nonatomic, retain) UIColor *editableInsertionPointColor;
  90. @property (nonatomic, retain) UIColor *editablePlaceholderTextColor;
  91. @property (nonatomic, retain) UIColor *editableSelectionBarColor;
  92. @property (nonatomic, retain) UIColor *editableSelectionHighlightColor;
  93. @property (nonatomic, retain) UIColor *editableTextColor;
  94. @property (nonatomic, retain) UIColor *footerHyperlinkColor;
  95. @property (nonatomic, retain) UIColor *foregroundColor;
  96. @property (nonatomic, retain) UIColor *segmentedSliderTrackColor;
  97. @property (nonatomic, retain) UIColor *separatorColor;
  98. @property (nonatomic, retain) UIColor *textColor;
  99. @property (nonatomic) BOOL usesDarkTheme;
  100. @property (nonatomic) BOOL edgeToEdgeCells;
  101. @property (nonatomic) BOOL resusesCells;
  102. @property (nonatomic, readonly) NSInteger observerType; // TODO: what is this?
  103. @property (nonatomic, retain) NSDictionary *pendingURLResourceDictionary;
  104. @end