Changeset 32
- Timestamp:
- Oct 20, 2011, 3:24:31 AM (12 years ago)
- Location:
- trunk/Utilities/GpsLocationConverter
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/GpsLocationConverter/GpsLocationConverter_i.c
r31 r32 7 7 8 8 /* File created by MIDL compiler version 7.00.0555 */ 9 /* at T ue Oct 18 12:15:2320119 /* at Thu Oct 20 13:23:30 2011 10 10 */ 11 11 /* Compiler settings for GpsLocationConverter.idl: -
trunk/Utilities/GpsLocationConverter/GpsLocationConverter_i.h
r31 r32 5 5 6 6 /* File created by MIDL compiler version 7.00.0555 */ 7 /* at T ue Oct 18 12:15:2320117 /* at Thu Oct 20 13:23:30 2011 8 8 */ 9 9 /* Compiler settings for GpsLocationConverter.idl: -
trunk/Utilities/GpsLocationConverter/MainDialog.h
r31 r32 36 36 CRoHyperStatic m_GoogleMapsStatic; 37 37 CRoHyperStatic m_YandexMapsStatic; 38 CRoHyperStatic m_BingMapsStatic; 39 CRoHyperStatic m_YahooMapsStatic; 40 CRoHyperStatic m_OpenStreetMapStatic; 41 CRoHyperStatic m_WikiMapiaStatic; 38 42 BOOL m_bSetClipboardTextActive; 39 43 CWindow m_NextClipboardViewerWindow; … … 47 51 { 48 52 CString psTexts[12]; 49 CString sGoogleMapsLocation, sYandexMapsLocation ;53 CString sGoogleMapsLocation, sYandexMapsLocation, sBingMapsLocation, sYahooMapsLocation, sOpenStreetMapLocation, sWikiMapiaLocation; 50 54 #pragma region Degrees 51 55 { … … 57 61 psTexts[3] = AtlFormatString(_T("%s, %s"), sLongitude, sLatitude); 58 62 sGoogleMapsLocation = AtlFormatString(_T("http://maps.google.com/maps/?ll=%s,%s"), sLatitude, sLongitude); 59 sYandexMapsLocation = AtlFormatString(_T("http://maps.yandex.ru/?ll=%s,%s"), sLongitude, sLatitude); 63 sYandexMapsLocation = AtlFormatString(_T("http://maps.yandex.ru/?ll=%s,%s&z=%d"), sLongitude, sLatitude, 19); 64 sBingMapsLocation = AtlFormatString(_T("http://www.bing.com/maps/?v=2&cp=%s~%s&lvl=%d"), sLatitude, sLongitude, 17); 65 sYahooMapsLocation = AtlFormatString(_T("http://maps.yahoo.com/#lat=%s&lon=%s&zoom=%d"), sLatitude, sLongitude, 17); 66 sOpenStreetMapLocation = AtlFormatString(_T("http://www.openstreetmap.org/?lat=%s&lon=%s&zoom=%d"), sLatitude, sLongitude, 17); 67 sWikiMapiaLocation = AtlFormatString(_T("http://wikimapia.org/#lat=%s&lon=%s&z=%d"), sLatitude, sLongitude, 17); 60 68 } 61 69 #pragma endregion … … 128 136 m_GoogleMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Google Maps\" HREF=\"%s\">%s</A>"), sGoogleMapsLocation, sGoogleMapsLocation)); 129 137 m_YandexMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Yandex Maps\" HREF=\"%s\">%s</A>"), sYandexMapsLocation, sYandexMapsLocation)); 138 m_BingMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Bing Maps\" HREF=\"%s\">%s</A>"), sBingMapsLocation, sBingMapsLocation)); 139 m_YahooMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Yahoo Maps\" HREF=\"%s\">%s</A>"), sYahooMapsLocation, sYahooMapsLocation)); 140 m_OpenStreetMapStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Open Street Map\" HREF=\"%s\">%s</A>"), sOpenStreetMapLocation, sOpenStreetMapLocation)); 141 m_WikiMapiaStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in WikiMapia\" HREF=\"%s\">%s</A>"), sWikiMapiaLocation, sWikiMapiaLocation)); 130 142 } 131 143 BOOL SetText(const CString& sText) … … 156 168 } 157 169 #pragma endregion 170 // TODO: Recognize Bing, Yahoo, OpenStreetMap and WikiMapia URLs 158 171 #pragma region Degrees and Minutes 159 172 static CAtlStaticRegExp<> g_ExpressionD0(_T("^[\t ]*") … … 305 318 _W(m_GoogleMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_GOOGLEMAPS))); 306 319 _W(m_YandexMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_YANDEXMAPS))); 320 _W(m_BingMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_BINGMAPS))); 321 _W(m_YahooMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_YAHOOMAPS))); 322 _W(m_OpenStreetMapStatic.SubclassWindow(GetDlgItem(IDC_MAIN_OPENSTREETMAP))); 323 _W(m_WikiMapiaStatic.SubclassWindow(GetDlgItem(IDC_MAIN_WIKIMAPIA))); 307 324 _W(CenterWindow()); 308 325 m_bSetClipboardTextActive = FALSE;
Note: See TracChangeset
for help on using the changeset viewer.