project_files/HedgewarsMobile/Classes/EditableCellView.h
author koda
Thu, 22 Jul 2010 03:08:17 +0200
changeset 3662 a44406f4369b
parent 3660 bc125bea5849
child 3703 12d17c6e8855
permissions -rw-r--r--
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)

//
//  WeaponCellView.h
//  Hedgewars
//
//  Created by Vittorio on 03/07/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol EditableCellViewDelegate <NSObject>

-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue;

@end

@interface EditableCellView : UITableViewCell <UITextFieldDelegate> {
    id<EditableCellViewDelegate> delegate;
    UITextField *textField;
    UILabel *titleLabel;
    NSInteger minimumCharacters;
    NSInteger maximumCharacters;
    
@private
    NSString *oldValue;
}

@property (nonatomic,assign) id<EditableCellViewDelegate> delegate;
@property (nonatomic,retain,readonly) UITextField *textField;
@property (nonatomic,retain,readonly) UILabel *titleLabel;
@property (nonatomic,assign) NSInteger minimumCharacters;
@property (nonatomic,assign) NSInteger maximumCharacters;
@property (nonatomic,retain) NSString *oldValue;

-(void) replyKeyboard;
-(void) cancel:(id) sender;
-(void) save:(id) sender;

@end