project_files/HedgewarsMobile/Classes/MapPreviewButtonView.h
branchios-develop
changeset 12872 00215a7ec5f5
parent 10108 c68cf030eded
equal deleted inserted replaced
12871:2c06b1120749 12872:00215a7ec5f5
    21 #import "SDL_net.h"
    21 #import "SDL_net.h"
    22 
    22 
    23 
    23 
    24 @protocol MapPreviewViewDelegate <NSObject>
    24 @protocol MapPreviewViewDelegate <NSObject>
    25 
    25 
    26 -(void) turnOnWidgets;
    26 - (void)turnOnWidgets;
    27 -(void) setMaxLabelText:(NSString *)string;
    27 - (void)setMaxLabelText:(NSString *)string;
    28 -(NSDictionary *)getDataForEngine;
    28 - (NSDictionary *)getDataForEngine;
    29 
    29 
    30 @end
    30 @end
    31 
    31 
    32 @interface MapPreviewButtonView : UIButton {
    32 @interface MapPreviewButtonView : UIButton {
    33     id<MapPreviewViewDelegate> delegate;
    33     id<MapPreviewViewDelegate> __weak delegate;
    34     TCPsocket sd, csd;
    34     TCPsocket sd, csd;
    35     NSInteger maxHogs;
    35     NSInteger maxHogs;
    36 }
    36 }
    37 
    37 
    38 @property (nonatomic,assign) id<MapPreviewViewDelegate> delegate;
    38 @property (nonatomic,weak) id<MapPreviewViewDelegate> delegate;
    39 
    39 
    40 -(void) setImageRounded:(UIImage *)image forState:(UIControlState) controlState;
    40 - (void)setImageRounded:(UIImage *)image forState:(UIControlState)controlState;
    41 -(void) setImageRounded:(UIImage *)image;
    41 - (void)setImageRounded:(UIImage *)image;
    42 -(void) updatePreviewWithSeed:(NSString *)seed;
    42 - (void)updatePreviewWithSeed:(NSString *)seed;
    43 -(void) updatePreviewWithFile:(NSString *)filePath;
    43 - (void)updatePreviewWithFile:(NSString *)filePath;
    44 -(void) turnOnWidgets;
    44 - (void)turnOnWidgets;
    45 -(NSDictionary *)getDataForEngine;
    45 - (NSDictionary *)getDataForEngine;
    46 
    46 
    47 @end
    47 @end