3659
|
1 |
//
|
|
2 |
// WeaponCellView.h
|
|
3 |
// Hedgewars
|
|
4 |
//
|
|
5 |
// Created by Vittorio on 03/07/10.
|
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
7 |
//
|
|
8 |
|
|
9 |
#import <UIKit/UIKit.h>
|
|
10 |
|
3660
|
11 |
#define MAX_STRING_LENGTH 64
|
|
12 |
|
3659
|
13 |
@protocol EditableCellViewDelegate <NSObject>
|
|
14 |
|
3660
|
15 |
-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue;
|
3659
|
16 |
|
|
17 |
@end
|
|
18 |
|
|
19 |
@interface EditableCellView : UITableViewCell <UITextFieldDelegate> {
|
|
20 |
id<EditableCellViewDelegate> delegate;
|
|
21 |
UITextField *textField;
|
3660
|
22 |
|
|
23 |
@private
|
|
24 |
NSString *oldValue;
|
3659
|
25 |
}
|
|
26 |
|
|
27 |
@property (nonatomic,assign) id<EditableCellViewDelegate> delegate;
|
|
28 |
@property (nonatomic,retain,readonly) UITextField *textField;
|
3660
|
29 |
@property (nonatomic,retain) NSString *oldValue;
|
3659
|
30 |
|
|
31 |
-(void) replyKeyboard;
|
|
32 |
-(void) cancel:(id) sender;
|
|
33 |
-(void) save:(id) sender;
|
|
34 |
|
|
35 |
@end
|