author | koda |
Sat, 31 Jul 2010 10:42:40 +0200 | |
changeset 3693 | 09892cdb8f95 |
parent 3662 | a44406f4369b |
child 3703 | 12d17c6e8855 |
permissions | -rw-r--r-- |
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 |
||
11 |
@protocol EditableCellViewDelegate <NSObject> |
|
12 |
||
3660 | 13 |
-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue; |
3659 | 14 |
|
15 |
@end |
|
16 |
||
17 |
@interface EditableCellView : UITableViewCell <UITextFieldDelegate> { |
|
18 |
id<EditableCellViewDelegate> delegate; |
|
19 |
UITextField *textField; |
|
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
20 |
UILabel *titleLabel; |
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
21 |
NSInteger minimumCharacters; |
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
22 |
NSInteger maximumCharacters; |
3660 | 23 |
|
24 |
@private |
|
25 |
NSString *oldValue; |
|
3659 | 26 |
} |
27 |
||
28 |
@property (nonatomic,assign) id<EditableCellViewDelegate> delegate; |
|
29 |
@property (nonatomic,retain,readonly) UITextField *textField; |
|
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
30 |
@property (nonatomic,retain,readonly) UILabel *titleLabel; |
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
31 |
@property (nonatomic,assign) NSInteger minimumCharacters; |
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
32 |
@property (nonatomic,assign) NSInteger maximumCharacters; |
3660 | 33 |
@property (nonatomic,retain) NSString *oldValue; |
3659 | 34 |
|
35 |
-(void) replyKeyboard; |
|
36 |
-(void) cancel:(id) sender; |
|
37 |
-(void) save:(id) sender; |
|
38 |
||
39 |
@end |