project_files/HedgewarsMobile/Classes/EditableCellView.h
author koda
Tue, 20 Jul 2010 03:14:43 +0200
changeset 3659 f8d5ac50e307
child 3660 bc125bea5849
permissions -rw-r--r--
half reworking of the settings page with delegation some graphical enhancements, leaks and fixes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3659
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     1
//
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     2
//  WeaponCellView.h
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     3
//  Hedgewars
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     4
//
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     5
//  Created by Vittorio on 03/07/10.
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     7
//
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     8
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
     9
#import <UIKit/UIKit.h>
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    10
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    11
@protocol EditableCellViewDelegate <NSObject>
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    12
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    13
-(void) saveTextFieldValue:(NSString *)textString;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    14
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    15
@end
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    16
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    17
@interface EditableCellView : UITableViewCell <UITextFieldDelegate> {
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    18
    id<EditableCellViewDelegate> delegate;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    19
    UITextField *textField;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    20
}
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    21
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    22
@property (nonatomic,assign) id<EditableCellViewDelegate> delegate;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    23
@property (nonatomic,retain,readonly) UITextField *textField;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    24
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    25
-(void) replyKeyboard;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    26
-(void) cancel:(id) sender;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    27
-(void) save:(id) sender;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    28
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    29
@end