#import #import "LocationManager.h" #include "../../geometry/point2d.hpp" #include "../../geometry/rect2d.hpp" namespace search { struct AddressInfo; } @interface MapViewController : UIViewController { enum Action { NOTHING, DRAGGING, SCALING } m_CurrentAction; bool m_isSticking; size_t m_StickyThreshold; m2::PointD m_Pt1, m_Pt2; /// Temporary solution to improve long touch detection. m2::PointD m_touchDownPoint; UIPopoverController * m_popover; CGPoint m_popoverPos; } - (void) SetupMeasurementSystem; // called when app is terminated by system - (void) OnTerminate; - (void) OnEnterForeground; - (void) OnEnterBackground; - (IBAction)OnMyPositionClicked:(id)sender; - (IBAction)OnSettingsClicked:(id)sender; - (IBAction)OnSearchClicked:(id)sender; - (IBAction)OnBookmarksClicked:(id)sender; - (void)showSearchResultAsBookmarkAtMercatorPoint:(m2::PointD const &)pt withInfo:(search::AddressInfo const &)info; - (void)showBalloonWithCategoryIndex:(int)cat andBookmarkIndex:(int)bm; - (void)prepareForApi; - (void)clearApiMode; - (BOOL)shouldShowNavBar; - (void)dismissPopover; @property (nonatomic, retain) IBOutlet UIButton * m_myPositionButton; @property (nonatomic, assign) BOOL isApiMode; @end