equal
deleted
inserted
replaced
20 |
20 |
21 |
21 |
22 #import <UIKit/UIKit.h> |
22 #import <UIKit/UIKit.h> |
23 #import "MapPreviewButtonView.h" |
23 #import "MapPreviewButtonView.h" |
24 |
24 |
|
25 @class SchemeWeaponConfigViewController; |
|
26 |
25 @interface MapConfigViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, MapPreviewViewDelegate> { |
27 @interface MapConfigViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, MapPreviewViewDelegate> { |
26 NSInteger oldValue; //slider |
28 NSInteger oldValue; // for the slider |
27 NSInteger oldPage; //segmented control |
29 NSInteger oldPage; // for the segmented control |
28 BOOL busy; |
30 BOOL busy; // for the preview button |
29 |
31 |
30 // objects read (mostly) by parent view |
32 // objects read (mostly) by parent view |
31 NSInteger maxHogs; |
33 NSInteger maxHogs; |
32 NSString *seedCommand; |
34 NSString *seedCommand; |
33 NSString *templateFilterCommand; |
35 NSString *templateFilterCommand; |
46 UISlider *slider; |
48 UISlider *slider; |
47 |
49 |
48 // internal objects |
50 // internal objects |
49 NSIndexPath *lastIndexPath; |
51 NSIndexPath *lastIndexPath; |
50 NSArray *dataSourceArray; |
52 NSArray *dataSourceArray; |
|
53 |
|
54 // controller for mission state |
|
55 SchemeWeaponConfigViewController *externalController; |
51 } |
56 } |
52 |
57 |
53 |
58 |
54 @property (nonatomic,assign) NSInteger maxHogs; |
59 @property (nonatomic,assign) NSInteger maxHogs; |
55 @property (nonatomic,assign) BOOL busy; |
60 @property (nonatomic,assign) BOOL busy; |
69 @property (nonatomic,retain) IBOutlet UISlider *slider; |
74 @property (nonatomic,retain) IBOutlet UISlider *slider; |
70 |
75 |
71 @property (nonatomic,retain) NSIndexPath *lastIndexPath; |
76 @property (nonatomic,retain) NSIndexPath *lastIndexPath; |
72 @property (nonatomic,retain) NSArray *dataSourceArray; |
77 @property (nonatomic,retain) NSArray *dataSourceArray; |
73 |
78 |
|
79 @property (nonatomic,assign) SchemeWeaponConfigViewController *externalController; |
|
80 |
|
81 |
74 -(IBAction) buttonPressed:(id) sender; |
82 -(IBAction) buttonPressed:(id) sender; |
75 |
83 |
76 -(IBAction) mapButtonPressed; |
84 -(IBAction) mapButtonPressed; |
77 -(IBAction) sliderChanged:(id) sender; |
85 -(IBAction) sliderChanged:(id) sender; |
78 -(IBAction) sliderEndedChanging:(id) sender; |
86 -(IBAction) sliderEndedChanging:(id) sender; |