From 5e6f78ac49ff09001208afd5a12d5144c84ccf3a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 7 May 2012 05:24:04 +0000 Subject: [PATCH] Commit these numerous sequestered UIKit updates. --- UIKit/CDStructures.h | 2 +- UIKit/NSString-UIKBExtras.h | 2 +- UIKit/NSURL-UIKitAdditions.h | 3 + UIKit/UIAlertView.h | 12 +++- UIKit/UIApplication.h | 6 ++ UIKit/UICoverFlowLayer.h | 10 +++- UIKit/UIDevice.h | 4 +- UIKit/UIFormAssistant.h | 3 +- UIKit/UIImage.h | 7 +++ UIKit/UIKeyboardLayoutProtocol-Protocol.h | 2 +- UIKit/UIKeyboardSublayout.h | 22 +++---- UIKit/UIKit.h | 59 ++++++++++++++++++- UIKit/UINavigationBar.h | 3 + UIKit/UIScreen.h | 3 + UIKit/UITabBar.h | 2 +- .../UITableViewCell-UITableViewCellInternal.h | 3 + UIKit/UITableViewCell.h | 8 +++ UIKit/UITextView.h | 3 + UIKit/UIView-Gestures.h | 3 + UIKit/UIWebDocumentView.h | 28 +++++++++ 20 files changed, 164 insertions(+), 21 deletions(-) diff --git a/UIKit/CDStructures.h b/UIKit/CDStructures.h index 686aa84..929286c 100644 --- a/UIKit/CDStructures.h +++ b/UIKit/CDStructures.h @@ -3,7 +3,7 @@ * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ - +#error @class UIImage, UIView; struct $_154 { diff --git a/UIKit/NSString-UIKBExtras.h b/UIKit/NSString-UIKBExtras.h index c1a765c..566d3ad 100644 --- a/UIKit/NSString-UIKBExtras.h +++ b/UIKit/NSString-UIKBExtras.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSString.h" +#import "Foundation/NSString.h" @interface NSString (UIKBExtras) + (id)stringWithUnichar:(unsigned short)fp8; diff --git a/UIKit/NSURL-UIKitAdditions.h b/UIKit/NSURL-UIKitAdditions.h index 28a6619..9013a16 100644 --- a/UIKit/NSURL-UIKitAdditions.h +++ b/UIKit/NSURL-UIKitAdditions.h @@ -25,5 +25,8 @@ - (BOOL)isSpringboardHandledURL; - (BOOL)isWebSafeTelephoneURL; - (id)webSafeTelephoneURL; +#if 1 // iPhoneOS 3.x +- (id)phobosURL; +#endif @end diff --git a/UIKit/UIAlertView.h b/UIKit/UIAlertView.h index 7586b01..e0c22a5 100644 --- a/UIKit/UIAlertView.h +++ b/UIKit/UIAlertView.h @@ -52,9 +52,19 @@ - (void)_setFirstOtherButtonIndex:(int)fp8; - (int)firstOtherButtonIndex; - (void)dismissWithClickedButtonIndex:(int)fp8 animated:(BOOL)fp12; -- (id)initWithTitle:(id)fp8 message:(id)fp12 delegate:(id)fp16 cancelButtonTitle:(id)fp20 otherButtonTitles:(id)fp24; +- (id)initWithTitle:(id)fp8 message:(id)fp12 delegate:(id)fp16 cancelButtonTitle:(id)fp20 otherButtonTitles:(id)fp24, ...; - (id)initWithFrame:(struct CGRect)fp8; - (void)show; +#if 1//... +- (void)setForceHorizontalButtonsLayout:(BOOL)force; +#endif + +#if 1//... +- (void)setContext:(NSString *)string; +- (NSString *)context; +- (void)setNumberOfRows:(int)rows; +#endif + @end diff --git a/UIKit/UIApplication.h b/UIKit/UIApplication.h index 60452d6..f21dcff 100644 --- a/UIKit/UIApplication.h +++ b/UIKit/UIApplication.h @@ -134,6 +134,9 @@ - (BOOL)_isLaunchedSuspended; - (unsigned int)_portForEvent:(struct __GSEvent *)fp8; - (void)suspendWithAnimation:(BOOL)fp8; +#if 1 // iPhoneOS 3.x +- (void)suspend; +#endif - (BOOL)registerForSystemEvents; - (BOOL)rendersLocally; - (void)applicationStarted:(struct __GSEvent *)fp8; @@ -226,6 +229,9 @@ - (void)removeStatusBarImageNamed:(id)fp8; - (id)applicationBadge; - (void)setApplicationBadge:(id)fp8; +#if 1 // iPhoneOS 3.x +- (void)setApplicationBadgeString:(id)fp8; +#endif - (void)removeApplicationBadge; - (int)applicationIconBadgeNumber; - (void)setApplicationIconBadgeNumber:(int)fp8; diff --git a/UIKit/UICoverFlowLayer.h b/UIKit/UICoverFlowLayer.h index 01d40a7..ae01b43 100644 --- a/UIKit/UICoverFlowLayer.h +++ b/UIKit/UICoverFlowLayer.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "CALayer.h" +#import @interface UICoverFlowLayer : CALayer { @@ -12,10 +12,18 @@ } - (id)initWithFrame:(struct CGRect)fp8 numberOfCovers:(unsigned int)fp24; +- (id)initWithFrame:(struct CGRect)fp8 numberOfCovers:(unsigned int)fp24 numberOfPlaceholders:(unsigned int)fp28; + - (unsigned int)numberOfCovers; +- (unsigned int)numberOfPlaceholders; + - (void)dealloc; - (void)setDelegate:(id)fp8; + - (void)setPlaceholderImage:(void *)fp8; +- (void)setPlaceholderImage:(void *)fp8 atPlaceholderIndex:(unsigned int)fp12; +- (void)setPlaceholderIndicesForCovers:(unsigned int *)fp8; + - (void)_prefetch:(unsigned int)fp8 atIndex:(unsigned int)fp12; - (void)_requestBatch; - (void)_requestImageAtIndex:(int)fp8 quality:(unsigned int)fp12; diff --git a/UIKit/UIDevice.h b/UIKit/UIDevice.h index e82d335..2f47d78 100644 --- a/UIKit/UIDevice.h +++ b/UIKit/UIDevice.h @@ -16,7 +16,7 @@ } + (void)initialize; -+ (id)currentDevice; ++ (UIDevice *)currentDevice; - (id)name; - (id)model; - (id)localizedModel; @@ -31,5 +31,7 @@ - (void)endGeneratingDeviceOrientationNotifications; - (BOOL)isGeneratingDeviceOrientationNotifications; +- (BOOL) isWildcat; + @end diff --git a/UIKit/UIFormAssistant.h b/UIKit/UIFormAssistant.h index 724aaf1..1e14ee1 100644 --- a/UIKit/UIFormAssistant.h +++ b/UIKit/UIFormAssistant.h @@ -5,8 +5,9 @@ */ #import +#import -@class NSMutableDictionary, UIButton, UIImageView, UIInformalDelegate, UITransitionView, UIView; +@class NSMutableDictionary, UIButton, UIImageView, UIInformalDelegate, UITransitionView, UIView/**/; @interface UIFormAssistant : UIView { diff --git a/UIKit/UIImage.h b/UIKit/UIImage.h index 6e4292f..9828f59 100644 --- a/UIKit/UIImage.h +++ b/UIKit/UIImage.h @@ -33,6 +33,9 @@ typedef enum { + (id)imageWithContentsOfFile:(id)fp8; + (id)imageWithData:(id)fp8; + (id)imageWithCGImage:(struct CGImage *)fp8; +#if 1 // iOS 4.x ++ (id)imageWithCGImage:(struct CGImage *)fp8 scale:(CGFloat)scale orientation:(UIImageOrientation)orientation; +#endif - (id)initWithContentsOfFile:(id)fp8; - (id)initWithData:(id)fp8; - (id)initWithCGImage:(struct CGImage *)fp8; @@ -50,5 +53,9 @@ typedef enum { - (id)stretchableImageWithLeftCapWidth:(int)fp8 topCapHeight:(int)fp12; - (id)_automationID; +#if 1 // iOS 4.x? +- (void) setScale:(CGFloat)scale; +#endif + @end diff --git a/UIKit/UIKeyboardLayoutProtocol-Protocol.h b/UIKit/UIKeyboardLayoutProtocol-Protocol.h index 52c5487..208148c 100644 --- a/UIKit/UIKeyboardLayoutProtocol-Protocol.h +++ b/UIKit/UIKeyboardLayoutProtocol-Protocol.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSObject-Protocol.h" +//#import "NSObject-Protocol.h" @protocol UIKeyboardLayoutProtocol - (void)showKeyboardType:(int)fp8 withAppearance:(int)fp12; diff --git a/UIKit/UIKeyboardSublayout.h b/UIKit/UIKeyboardSublayout.h index f711f99..d64aed6 100644 --- a/UIKit/UIKeyboardSublayout.h +++ b/UIKit/UIKeyboardSublayout.h @@ -30,17 +30,17 @@ UIKeyboardReturnKeyView *m_returnKeyView; NSMutableArray *m_extraImageViews; struct { - struct CGRect; - struct CGRect; - struct CGRect; - struct CGRect; - struct CGRect; - NSString *; - NSString *; - unsigned int; - unsigned int; - unsigned int; - id; + struct CGRect _field1; + struct CGRect _field2; + struct CGRect _field3; + struct CGRect _field4; + struct CGRect _field5; + NSString * _field6; + NSString * _field7; + unsigned int _field8; + unsigned int _field9; + unsigned int _field10; + id _field11; } *m_keys; unsigned int m_keysCount; struct __CFDictionary *m_replacementKeys; diff --git a/UIKit/UIKit.h b/UIKit/UIKit.h index 2d0bf5b..e0f9141 100644 --- a/UIKit/UIKit.h +++ b/UIKit/UIKit.h @@ -9,6 +9,20 @@ typedef double UIAccelerationValue; +/*XXX:*/typedef struct { + struct CGRect _field1; + struct CGRect _field2; + struct CGRect _field3; + struct CGRect _field4; + struct CGRect _field5; + id _field6; + id _field7; + unsigned int _field8; + unsigned int _field9; + unsigned int _field10; + id _field11; +} CDAnonymousStruct9; + /*XXX:*/typedef struct { float top; float left; @@ -148,6 +162,15 @@ typedef enum { UIKeyboardTypeEmailAddress, } UIKeyboardType; +typedef enum { + UILineBreakModeWordWrap, + UILineBreakModeCharacterWrap, + UILineBreakModeClip, + UILineBreakModeHeadTruncation, + UILineBreakModeTailTruncation, + UILineBreakModeMiddleTruncation, +} UILineBreakMode; + typedef enum { UINavigationButtonStyleNormal, UINavigationButtonStyleBack, @@ -203,6 +226,18 @@ typedef enum { UITableViewRowAnimationBottom, } UITableViewRowAnimation; +typedef enum { + UITableViewScrollPositionNone, + UITableViewScrollPositionTop, + UITableViewScrollPositionMiddle, + UITableViewScrollPositionBottom, +} UITableViewScrollPosition; + +typedef enum { + UITableViewStylePlain, + UITableViewStyleGrouped, +} UITableViewStyle; + typedef enum { UITextAlignmentLeft, UITextAlignmentCenter, @@ -263,14 +298,16 @@ enum { #import #import #import +#import +#import #import +#import #import #import #import +#import #import #import -#import -#import #import #import #import @@ -279,6 +316,8 @@ enum { #import #import #import +#import +#import #import #import #import @@ -306,6 +345,8 @@ enum { #import #import #import +#import +#import #import #import #import @@ -313,6 +354,9 @@ enum { #import #import #import +#import +#import +#import #import #import #import @@ -327,6 +371,7 @@ enum { #import #import #import +#import #import #import #import @@ -334,6 +379,7 @@ enum { #import +#import #import #import @@ -356,6 +402,13 @@ NSData *UIImagePNGRepresentation(UIImage *image); CGContextRef UIGraphicsGetCurrentContext(void); UIWindow *UIWindowFindWithWindowRef(GSWindowRef window); +NSString *UIFormattedPhoneNumberFromString(NSString *string); +NSString *UIUnformattedPhoneNumberFromString(NSString *string); + +void UIRectFill(CGRect rect); +void UISetColor(CGColorRef color); +void UISetSystemColor(unsigned color); + GSFontRef UISystemFontCreate(unsigned size, bool bold); GSFontRef UISystemFontForSize(unsigned size); GSFontRef UISystemFontBoldForSize(unsigned size); @@ -364,6 +417,8 @@ void UIApplicationUseLegacyEvents(BOOL use); void UIKeyboardEnableAutomaticAppearance(void); void UIKeyboardDisableAutomaticAppearance(void); +BOOL UIKeyboardInputModeUsesKBStar(NSString *); + extern NSString * const kUIButtonBarButtonAction; extern NSString * const kUIButtonBarButtonInfo; extern NSString * const kUIButtonBarButtonInfoOffset; diff --git a/UIKit/UINavigationBar.h b/UIKit/UINavigationBar.h index e5fbea5..c0e374b 100644 --- a/UIKit/UINavigationBar.h +++ b/UIKit/UINavigationBar.h @@ -56,6 +56,9 @@ - (int)state; - (void)drawRect:(struct CGRect)fp8; - (void)setAccessoryView:(id)fp8; +#if 1 // iPhoneOS 3.x +- (void)setAccessoryView:(id)fp8 animate:(BOOL)fp12; +#endif - (void)setAccessoryView:(id)fp8 animate:(BOOL)fp12 removeOnPop:(BOOL)fp16; - (void)pushNavigationItem:(id)fp8 animated:(BOOL)fp12; - (void)pushNavigationItem:(id)fp8; diff --git a/UIKit/UIScreen.h b/UIKit/UIScreen.h index 78c1fed..d2f0be6 100644 --- a/UIKit/UIScreen.h +++ b/UIKit/UIScreen.h @@ -16,6 +16,9 @@ - (id)init; - (struct CGRect)applicationFrame; - (struct CGRect)bounds; +#if 1 // iOS 4.x +- (float) scale; +#endif @end diff --git a/UIKit/UITabBar.h b/UIKit/UITabBar.h index 3688211..38c438b 100644 --- a/UIKit/UITabBar.h +++ b/UIKit/UITabBar.h @@ -11,7 +11,7 @@ @interface UITabBar : UIView { UIView *_customizeView; - id _delegate; + id /*XXX:*/ _delegate; NSArray *_items; UITabBarItem *_selectedItem; NSArray *_customizationItems; diff --git a/UIKit/UITableViewCell-UITableViewCellInternal.h b/UIKit/UITableViewCell-UITableViewCellInternal.h index 4d2f6e6..8233f7f 100644 --- a/UIKit/UITableViewCell-UITableViewCellInternal.h +++ b/UIKit/UITableViewCell-UITableViewCellInternal.h @@ -12,6 +12,9 @@ - (void)_setShouldIndentWhileEditing:(BOOL)fp8; - (void)_setDrawsTopSeparator:(BOOL)fp8; - (void)_drawSeparatorInRect:(struct CGRect)fp8; +#if 1 // iPhoneOS 1.x +- (void)_drawContentInRect:(struct CGRect)fp8 selected:(BOOL)fp24; +#endif - (void)_drawBackgroundInRect:(struct CGRect)fp8 withFade:(float)fp24; - (id)_removeControl; - (void)_grabberBeganReorder:(id)fp8; diff --git a/UIKit/UITableViewCell.h b/UIKit/UITableViewCell.h index 4cb7ddf..f019525 100644 --- a/UIKit/UITableViewCell.h +++ b/UIKit/UITableViewCell.h @@ -90,6 +90,11 @@ - (int)selectionStyle; - (void)setSelected:(BOOL)fp8; - (BOOL)isSelected; +#if 1 // iPhoneOS 3.x +- (BOOL)_isHighlighted; +- (BOOL)isHighlighted; +- (float)selectionPercent; +#endif - (void)_deselectAnimationFinished; - (void)setSelected:(BOOL)fp8 animated:(BOOL)fp12; - (void)setEditingStyle:(int)fp8; @@ -129,6 +134,9 @@ - (void)setAccessoryAction:(SEL)fp8; - (SEL)accessoryAction; - (void)drawRect:(struct CGRect)fp8; +#if 1 // iPhoneOS 3.x +- (void)setDrawingEnabled:(BOOL)fp8; +#endif - (void)_setIsAncestorOfFirstResponder:(BOOL)fp8; - (void)removeFromSuperview; - (void)layoutSubviews; diff --git a/UIKit/UITextView.h b/UIKit/UITextView.h index bd2f281..555e451 100644 --- a/UIKit/UITextView.h +++ b/UIKit/UITextView.h @@ -81,6 +81,9 @@ - (void)mouseDown:(struct __GSEvent *)fp8; - (void)mouseDragged:(struct __GSEvent *)fp8; - (void)mouseUp:(struct __GSEvent *)fp8; +#if 1 // iPhoneOS 3.x +- (void)insertText:(id)fp8; +#endif - (void)scrollRectToVisible:(struct CGRect)fp8 animated:(BOOL)fp24; - (void)webViewDidChange:(id)fp8; - (void)performBecomeEditableTasks; diff --git a/UIKit/UIView-Gestures.h b/UIKit/UIView-Gestures.h index 83457b9..9c8135f 100644 --- a/UIKit/UIView-Gestures.h +++ b/UIKit/UIView-Gestures.h @@ -43,6 +43,9 @@ - (void)setRotationDegrees:(float)fp8 duration:(double)fp12; - (float)rotationDegrees; - (void)setZoomScale:(float)fp8 duration:(double)fp12; +#if 1 // iPhoneOS 3.x +- (void)_setZoomScale:(float)fp8 duration:(double)fp12; +#endif - (float)zoomScale; - (int)stateForGestureType:(int)fp8; - (void)_resetZoomingWithEvent:(struct __GSEvent *)fp8; diff --git a/UIKit/UIWebDocumentView.h b/UIKit/UIWebDocumentView.h index dcec98e..a2fb98c 100644 --- a/UIKit/UIWebDocumentView.h +++ b/UIKit/UIWebDocumentView.h @@ -131,6 +131,9 @@ - (id)_doubleTapSpeedFromDefaults; - (void)_restoreViewportSettingsWithSize:(struct CGSize)fp8; - (id)initWithFrame:(struct CGRect)fp8; +#if 1 // iPhoneOS 3.x +- (void)enableReachability; +#endif - (void)dealloc; - (void)release; - (void)stopLoading:(id)fp8; @@ -144,6 +147,10 @@ - (void)setUserStyleSheet:(id)fp8; - (void)setDetectsPhoneNumbers:(BOOL)fp8; - (BOOL)detectsPhoneNumbers; +#if 1 // iPhoneOS 3.x +- (void)setDataDetectorTypes:(unsigned int)fp8; +- (unsigned int)dataDetectorTypes; +#endif - (void)setRespectsBackgroundColorAlpha:(BOOL)fp8; - (BOOL)respectsBackgroundColorAlpha; - (void)setFrame:(struct CGRect)fp8; @@ -318,6 +325,27 @@ - (void)forwardInvocation:(id)fp8; - (id)methodSignatureForSelector:(SEL)fp8; - (void)takeTraitsFrom:(id)fp8; +#if 1 // iPhoneOS 3.x +- (void)useSelectionAssistantWithMode:(int)fp8; +#endif + +#if 1 // iPhoneOS 3.2 +- (void)webView:(id)view didFailLoadWithError:(id)error forFrame:(id)frame; +- (void)webViewDidLayout:(id)webView; +- (void)webView:(id)view didFirstVisuallyNonEmptyLayoutInFrame:(id)frame; +- (void)webView:(id)view attachRootLayer:(id)layer; +- (void)webView:(id)view willAddPlugInView:(id)view2; +- (void)webViewDidPreventDefaultForEvent:(id)webView; +#endif + +#if 1 // UIWebBrowserView +- (void)webView:(id)view willCloseFrame:(id)frame; +- (void)webView:(id)view didFinishDocumentLoadForFrame:(id)frame; +- (void)webView:(id)view didFirstLayoutInFrame:(id)frame; +- (void)webViewFormEditedStatusHasChanged:(id)changed; +- (void)webView:(id)view formStateDidFocusNode:(id)formState; +- (void)webView:(id)view formStateDidBlurNode:(id)formState; +#endif @end -- 2.45.2