author | koda |
Thu, 02 Sep 2010 23:44:35 +0200 | |
changeset 3816 | 7b74aa003f52 |
parent 3703 | 12d17c6e8855 |
child 3829 | 81db3c85784b |
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; |
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3662
diff
changeset
|
23 |
|
3660 | 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 |