project_files/HedgewarsMobile/Classes/EditableCellView.h
author koda
Thu, 02 Sep 2010 23:44:35 +0200
changeset 3816 7b74aa003f52
parent 3703 12d17c6e8855
child 3829 81db3c85784b
permissions -rw-r--r--
a little more intuitive team editing
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
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    11
@protocol EditableCellViewDelegate <NSObject>
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    12
3660
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    13
-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue;
3659
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    14
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    15
@end
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
@interface EditableCellView : UITableViewCell <UITextFieldDelegate> {
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    18
    id<EditableCellViewDelegate> delegate;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    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
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    24
@private
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    25
    NSString *oldValue;
3659
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
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    28
@property (nonatomic,assign) id<EditableCellViewDelegate> delegate;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    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
bc125bea5849 complete settings page rework
koda
parents: 3659
diff changeset
    33
@property (nonatomic,retain) NSString *oldValue;
3659
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
-(void) replyKeyboard;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    36
-(void) cancel:(id) sender;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    37
-(void) save:(id) sender;
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    38
f8d5ac50e307 half reworking of the settings page with delegation
koda
parents:
diff changeset
    39
@end