--- a/project_files/HedgewarsMobile/Classes/WeaponCellView.h Sun Jul 04 01:27:41 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/WeaponCellView.h Mon Jul 05 22:42:43 2010 +0200
@@ -8,8 +8,14 @@
#import <UIKit/UIKit.h>
+@protocol WeaponButtonControllerDelegate <NSObject>
+
+-(void) buttonPressed:(id) sender;
+
+@end
@interface WeaponCellView : UITableViewCell {
+ id<WeaponButtonControllerDelegate> delegate;
UILabel *weaponName;
UIImageView *weaponIcon;
@@ -19,6 +25,8 @@
UIButton *crateQt;
}
+@property (nonatomic,assign) id<WeaponButtonControllerDelegate> delegate;
+
@property (nonatomic,retain) UILabel *weaponName;
@property (nonatomic,retain) UIImageView *weaponIcon;