project_files/HedgewarsMobile/Classes/EditableCellView.h
author koda
Tue, 20 Jul 2010 05:37:58 +0200
changeset 3660 bc125bea5849
parent 3659 f8d5ac50e307
child 3662 a44406f4369b
permissions -rw-r--r--
complete settings page rework
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
3660
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    11
#define MAX_STRING_LENGTH 64
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    12
3659
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    13
@protocol EditableCellViewDelegate <NSObject>
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    14
3660
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    15
-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue;
3659
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
@end
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    18
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    19
@interface EditableCellView : UITableViewCell <UITextFieldDelegate> {
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    20
    id<EditableCellViewDelegate> delegate;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    21
    UITextField *textField;
3660
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    22
    
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    23
@private
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    24
    NSString *oldValue;
3659
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    25
}
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    26
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    27
@property (nonatomic,assign) id<EditableCellViewDelegate> delegate;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    28
@property (nonatomic,retain,readonly) UITextField *textField;
3660
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    29
@property (nonatomic,retain) NSString *oldValue;
3659
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    30
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    31
-(void) replyKeyboard;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    32
-(void) cancel:(id) sender;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    33
-(void) save:(id) sender;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    34
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    35
@end