cocoaTouch/SettingsViewController.h
changeset 2720 a5111ec4d25f
parent 2702 48fc46a922fd
child 2743 39d097ac2276
equal deleted inserted replaced
2719:0efcaa69d30c 2720:a5111ec4d25f
     7 //
     7 //
     8 
     8 
     9 #import <UIKit/UIKit.h>
     9 #import <UIKit/UIKit.h>
    10 
    10 
    11 
    11 
    12 @interface SettingsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
    12 @interface SettingsViewController : UIViewController 
       
    13 		<UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate> {
    13 	UITextField *username;
    14 	UITextField *username;
    14 	UITextField *password;
    15 	UITextField *password;
    15 	UISwitch *musicSwitch;
    16 	UISwitch *musicSwitch;
    16 	UISwitch *soundsSwitch;
    17 	UISwitch *soundsSwitch;
    17 	UISwitch *altDamageSwitch;
    18 	UISwitch *altDamageSwitch;
    18 	UISlider *volumeSlider;
    19 	UISlider *volumeSlider;
    19 	UILabel *volumeLabel;
    20 	UILabel *volumeLabel;
    20 	UITableView *table;
    21 	UITableView *table;
    21 	UITableViewCell *volumeCell;
    22 	UITableViewCell *volumeCell;
       
    23 	UIView *buttonContainer;
       
    24 	BOOL needsReset;
    22 }
    25 }
       
    26 
    23 @property (nonatomic, retain) IBOutlet UITextField *username;
    27 @property (nonatomic, retain) IBOutlet UITextField *username;
    24 @property (nonatomic, retain) IBOutlet UITextField *password;
    28 @property (nonatomic, retain) IBOutlet UITextField *password;
    25 @property (nonatomic, retain) UISwitch *musicSwitch;
    29 @property (nonatomic, retain) UISwitch *musicSwitch;
    26 @property (nonatomic, retain) UISwitch *soundsSwitch;
    30 @property (nonatomic, retain) UISwitch *soundsSwitch;
    27 @property (nonatomic, retain) UISwitch *altDamageSwitch;
    31 @property (nonatomic, retain) UISwitch *altDamageSwitch;
    28 @property (nonatomic, retain) IBOutlet UISlider *volumeSlider;
    32 @property (nonatomic, retain) IBOutlet UISlider *volumeSlider;
    29 @property (nonatomic, retain) IBOutlet UILabel *volumeLabel;
    33 @property (nonatomic, retain) IBOutlet UILabel *volumeLabel;
    30 @property (nonatomic, retain) IBOutlet UITableView *table;
    34 @property (nonatomic, retain) IBOutlet UITableView *table;
    31 @property (nonatomic, retain) IBOutlet UITableViewCell *volumeCell;
    35 @property (nonatomic, retain) IBOutlet UITableViewCell *volumeCell;
       
    36 @property (nonatomic, retain) IBOutlet UIView *buttonContainer;
    32 
    37 
    33 -(IBAction) sliderChanged: (id)sender;
    38 -(IBAction) sliderChanged: (id)sender;
    34 -(IBAction) backgroundTap: (id)sender;
    39 -(IBAction) backgroundTap: (id)sender;
    35 -(IBAction) textFieldDoneEditing: (id)sender;
    40 -(IBAction) textFieldDoneEditing: (id)sender;
       
    41 -(IBAction) deleteData: (id)sender;
    36 @end
    42 @end