- (void) removeProgressHUD:(UIProgressHUD *)hud;
- (UCViewController *) pageForPackage:(NSString *)name;
- (PackageController *) packageController;
+- (void) showActionSheet:(UIActionSheet *)sheet fromItem:(UIBarButtonItem *)item;
@end
/* }}} */
@end
/* }}} */
/* Package Controller {{{ */
-@interface PackageController : CYBrowserController {
+@interface PackageController : CYBrowserController <
+ UIActionSheetDelegate
+> {
_transient Database *database_;
Package *package_;
NSString *name_;
}
#if !AlwaysReload
-- (void) _actionButtonClicked {
+- (void) _customButtonClicked {
int count([buttons_ count]);
if (count == 0)
return;
}
}
-- (void) actionButtonClicked {
+- (void) customButtonClicked {
// Wait until it's done loading.
if (![self isLoading])
- [self _actionButtonClicked];
+ [self _customButtonClicked];
}
- (void) reloadButtonClicked {
initWithTitle:count == 0 ? nil : count != 1 ? UCLocalize("MODIFY") : [buttons_ objectAtIndex:0]
style:UIBarButtonItemStylePlain
target:self
- action:@selector(actionButtonClicked)
+ action:@selector(customButtonClicked)
];
if (![self isLoading]) [[self navigationItem] setRightBarButtonItem:actionItem];
else [super applyRightButton];