Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MWMBookmarkColorViewController.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2ed86745deebdaa3959fdb78586d54e6552679bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#import "MWMTableViewController.h"

namespace ios_bookmark_ui_helper
{
inline NSString * LocalizedTitleForBookmarkColor(NSString * color)
{
  return L([color stringByReplacingOccurrencesOfString:@"placemark-" withString:@""]);
}

inline UIImage * ImageForBookmarkColor(NSString * color, BOOL isSelected)
{
  return [UIImage imageNamed:[NSString stringWithFormat:@"%@%@%@", @"img_", color, isSelected ? @"-on" : @"-off"]];
}

}  // namespace ios_bookmark_ui_helper

@protocol MWMBookmarkColorDelegate <NSObject>

- (void)didSelectColor:(NSString *)color;

@end

@interface MWMBookmarkColorViewController : MWMTableViewController

- (instancetype)initWithColor:(NSString *)color delegate:(id<MWMBookmarkColorDelegate>)delegate;

@end