-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
openfinancedev
committed
Feb 28, 2011
0 parents
commit 91d7a1b
Showing
25 changed files
with
14,187 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// | ||
// MenuScrollViewController.h | ||
// ScrollLayers | ||
// | ||
// Created by Openfinance (CC BY-SA 3.0) | ||
// | ||
// This file contains the main table view control. | ||
// Furthemore it contains the implementation for the layers motion control. | ||
// The user can see three layers at same time. If the user wants to hidde a layer, she can move | ||
// this layer to the right (only for second layers) | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#define VIEW_HEIGHT 1004 | ||
#define SUBVIEW_HEIGHT 1024 | ||
#define MAIN_MENU_WIDTH 320 | ||
#define MAIN_MENU_DETAIL_WIDTH 448 | ||
#define THIRD_SCROLL_VIEW_WIDTH 580 | ||
#define POSITION_SEMISHOW_THIRD_SCROLL_VIEW 545 | ||
#define POSITION_SEMISHOW_SECOND_SCROLL_VIEW 100 | ||
#define POSITION_SHOW_THIRD_SCROLL_VIEW 200 | ||
#define POSITION_OUT_SCREEN 850 | ||
#define VIEW_WIDTH 768 | ||
|
||
#define SCROLL_VIEW_HORIZONTAL_SCROLL_ACTIVATE 1 | ||
|
||
#define ANIMATION_DURATION 0.7 | ||
|
||
@class DefaultMainViewController; | ||
@class TableViewController; | ||
|
||
@interface MenuScrollViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> | ||
{ | ||
TableViewController *tableViewController; | ||
DefaultMainViewController *defaultViewController; | ||
|
||
UITableView *tableViewMainMenu; | ||
UIScrollView *scrollViewMainMenu; | ||
UIScrollView *scrollViewSecond; | ||
UIScrollView *scrollViewThird; | ||
|
||
UIView *viewSecondScrollView; | ||
UIView *viewThirdScrollView; | ||
|
||
int scrollDirection; | ||
int scrollIncrement; | ||
|
||
int layerThreePosition; | ||
float lastContentOffset; | ||
BOOL isNavigation; | ||
|
||
NSMutableArray *lastView; | ||
} | ||
|
||
@property (nonatomic, retain) TableViewController *tableViewController; | ||
@property (nonatomic, retain) DefaultMainViewController *defaultViewController; | ||
@property (nonatomic, retain) IBOutlet UITableView *tableViewMainMenu; | ||
@property (nonatomic, retain) IBOutlet UIScrollView *scrollViewMainMenu; | ||
@property (nonatomic, retain) IBOutlet UIScrollView *scrollViewSecond; | ||
@property (nonatomic, retain) IBOutlet UIScrollView *scrollViewThird; | ||
@property (nonatomic, retain) IBOutlet UIView *viewSecondScrollView; | ||
@property (nonatomic, retain) IBOutlet UIView *viewThirdScrollView; | ||
@property (nonatomic, retain) NSMutableArray *lastView; | ||
|
||
- (void)showTableViewExample; | ||
- (void)showOtherViewExample; | ||
- (void)hiddeThirdLayer; | ||
- (void)showLayersPositionScrollViewX:(float)scrollViewX ScrollContentOffSetX:(float)contentOffSetX SecondScrollView:(UIScrollView *)scrollView2 AnimationDuration:(float)animationDuration; | ||
- (int)scrollDirectionDetect:(UIScrollView *)theScrollView; | ||
- (void)lastViewDissapearEffect; | ||
- (void)movePosition:(int)increment ScrollView:(UIScrollView *)scrollView; | ||
|
||
@end | ||
|
Oops, something went wrong.