Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
117 lines (89 sloc) 2.05 KB
#import "Three20/TTGlobal.h"
@protocol TTLauncherViewDelegate;
@class TTPageControl, TTLauncherButton, TTLauncherItem;
@interface TTLauncherView : UIView <UIScrollViewDelegate> {
id<TTLauncherViewDelegate> _delegate;
NSMutableArray* _pages;
NSInteger _columnCount;
NSInteger _rowCount;
NSString* _prompt;
NSMutableArray* _buttons;
UIScrollView* _scrollView;
TTPageControl* _pager;
NSTimer* _editHoldTimer;
NSTimer* _springLoadTimer;
TTLauncherButton* _dragButton;
UITouch* _dragTouch;
NSInteger _positionOrigin;
CGPoint _dragOrigin;
CGPoint _touchOrigin;
BOOL _editing;
BOOL _springing;
}
/**
*
*/
@property(nonatomic,assign) id<TTLauncherViewDelegate> delegate;
/**
*
*/
@property(nonatomic,copy) NSArray* pages;
/**
*
*/
@property(nonatomic) NSInteger columnCount;
/**
*
*/
@property(nonatomic,readonly) NSInteger rowCount;
/**
*
*/
@property(nonatomic) NSInteger currentPageIndex;
/**
*
*/
@property(nonatomic,copy) NSString* prompt;
/**
*
*/
@property(nonatomic,readonly) BOOL editing;
/**
*
*/
- (void)addItem:(TTLauncherItem*)item animated:(BOOL)animated;
/**
*
*/
- (void)removeItem:(TTLauncherItem*)item animated:(BOOL)animated;
/**
*
*/
- (TTLauncherItem*)itemWithURL:(NSString*)URL;
/**
*
*/
- (NSIndexPath*)indexPathOfItem:(TTLauncherItem*)item;
/**
*
*/
- (void)scrollToItem:(TTLauncherItem*)item animated:(BOOL)animated;
/**
*
*/
- (void)beginEditing;
/**
*
*/
- (void)endEditing;
@end
///////////////////////////////////////////////////////////////////////////////////////////////////
@protocol TTLauncherViewDelegate <NSObject>
@optional
- (void)launcherView:(TTLauncherView*)launcher didAddItem:(TTLauncherItem*)item;
- (void)launcherView:(TTLauncherView*)launcher didRemoveItem:(TTLauncherItem*)item;
- (void)launcherView:(TTLauncherView*)launcher didMoveItem:(TTLauncherItem*)item;
- (void)launcherView:(TTLauncherView*)launcher didSelectItem:(TTLauncherItem*)item;
- (void)launcherViewDidBeginEditing:(TTLauncherView*)launcher;
- (void)launcherViewDidEndEditing:(TTLauncherView*)launcher;
@end
Jump to Line
Something went wrong with that request. Please try again.