ios version
[wl-mobile.git] / Plugins / NativeControls / NativeControls.h
1 //
2 //  NativeControls.h
3 //
4 //
5 //  Created by Jesse MacFadyen on 10-02-03.
6 //  MIT Licensed
7
8 //  Originally this code was developed my Michael Nachbaur
9 //  Formerly -> PhoneGap :: UIControls.h
10 //  Created by Michael Nachbaur on 13/04/09.
11 //  Copyright 2009 Decaf Ninja Software. All rights reserved.
12
13 #import <Foundation/Foundation.h>
14 #import <UIKit/UIKit.h>
15 #import <UIKit/UITabBar.h>
16 #import <UIKit/UIToolbar.h>
17 #ifdef PHONEGAP_FRAMEWORK
18 #import <PhoneGap/PGPlugin.h>
19 #else
20 #import "PGPlugin.h"
21 #endif
22
23 @interface NativeControls : PGPlugin <UITabBarDelegate, UIActionSheetDelegate> {
24         UITabBar* tabBar;
25         NSMutableDictionary* tabBarItems;
26     
27         UIToolbar* toolBar;
28         UIBarButtonItem* toolBarTitle;
29         NSMutableArray* toolBarItems;
30     
31         CGRect  originalWebViewBounds;
32 }
33
34 /* Tab Bar methods
35  */
36 - (void)createTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
37 - (void)showTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
38 - (void)hideTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
39 - (void)showTabBarItems:(NSArray*)arguments withDict:(NSDictionary*)options;
40 - (void)createTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
41 - (void)updateTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
42 - (void)selectTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
43
44
45
46 /* Tool Bar methods
47  */
48 - (void)createToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
49 - (void)resetToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
50 - (void)setToolBarTitle:(NSArray*)arguments withDict:(NSDictionary*)options;
51 - (void)createToolBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
52 - (void)showToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
53 - (void)hideToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
54 /* ActionSheet
55  */
56 - (void)createActionSheet:(NSArray*)arguments withDict:(NSDictionary*)options;
57
58
59 @end