Changeset 91
- Timestamp:
- Aug 13, 2012, 6:47:04 AM (10 years ago)
- Location:
- trunk/Utilities/GpsLocationConverter
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/GpsLocationConverter/GpsLocationConverter_i.c
r90 r91 7 7 8 8 /* File created by MIDL compiler version 7.00.0555 */ 9 /* at Mon Aug 13 1 1:37:2020129 /* at Mon Aug 13 16:40:33 2012 10 10 */ 11 11 /* Compiler settings for GpsLocationConverter.idl: -
trunk/Utilities/GpsLocationConverter/GpsLocationConverter_i.h
r90 r91 5 5 6 6 /* File created by MIDL compiler version 7.00.0555 */ 7 /* at Mon Aug 13 1 1:37:2020127 /* at Mon Aug 13 16:40:33 2012 8 8 */ 9 9 /* Compiler settings for GpsLocationConverter.idl: -
trunk/Utilities/GpsLocationConverter/MainDialog.h
r90 r91 180 180 CRoReMatchContext MatchContext; 181 181 #pragma region Google Maps 182 static CAtlStaticRegExp<> g_ExpressionA(_T("^ *(https?://)?[^/]*maps.google[^/]*/.+?") _T("ll={[\\.0-9]+},{[\\.0-9]+}"), FALSE); 182 #define OPTIONAL_PROTOCOL _T("(https?://)?[^/]*") 183 #define VALUE _T("{\\-?[\\.0-9]+}") 184 static CAtlStaticRegExp<> g_ExpressionA(_T("^ *") OPTIONAL_PROTOCOL _T("maps.google[^/]*/.+?") _T("ll=") VALUE _T(",") VALUE, FALSE); 185 #undef OPTIONAL_PROTOCOL 186 #undef VALUE 183 187 if(g_ExpressionA.Match(sText, &MatchContext)) 184 188 { … … 191 195 #pragma endregion 192 196 #pragma region Yandex Maps 193 static CAtlStaticRegExp<> g_ExpressionB(_T("^ *(https?://)?[^/]*maps.yandex[^/]*/.+?") _T("ll={[\\.0-9]+}(,|(\\%2C)){[\\.0-9]+}"), FALSE); 197 #define OPTIONAL_PROTOCOL _T("(https?://)?[^/]*") 198 #define VALUE _T("{\\-?[\\.0-9]+}") 199 static CAtlStaticRegExp<> g_ExpressionB(_T("^ *") OPTIONAL_PROTOCOL _T("maps.yandex[^/]*/.+?") _T("ll=") VALUE _T("(,|(\\%2C))") VALUE, FALSE); 200 #undef OPTIONAL_PROTOCOL 201 #undef VALUE 194 202 if(g_ExpressionB.Match(sText, &MatchContext)) 195 203 { … … 461 469 m_bSetClipboardTextActive = FALSE; 462 470 m_NextClipboardViewerWindow = SetClipboardViewer(); 471 #if !defined(_DEBUG) 463 472 for(SIZE_T nIndex = 0; nIndex < 12; nIndex++) 464 473 _W(RegisterHotKey(m_hWnd, (INT) nIndex, MOD_CONTROL | MOD_SHIFT, VK_F1 + nIndex)); 465 #if _DEVELOPMENT 466 //SetText(_T("http://maps.google.com.ua/maps/ms?msid=206853065838475655514.0004af0a0899ed541f5f2&msa=0&ll=45.296505,35.771999&spn=0.039547,0.095272")); 467 //SetText(_T("http://maps.yandex.ru/?ll=13.376147%2C45.797846&spn=2.820740%2C1.127727&z=9&l=map")); 468 #endif // _DEVELOPMENT 474 #endif // !defined(_DEBUG) 475 #if _DEVELOPMENT 476 //Parse(_T("http://maps.google.com.ua/maps/ms?msid=206853065838475655514.0004af0a0899ed541f5f2&msa=0&ll=45.296505,35.771999&spn=0.039547,0.095272")); 477 //Parse(_T("http://maps.yandex.ru/?ll=13.376147%2C45.797846&spn=2.820740%2C1.127727&z=9&l=map")); 478 //Parse(_T("https://maps.google.com/maps?q=ll=36.257978,-115.236111&spn=0.094126,0.157585&sll=33.809282,-117.915442&sspn=0.09699,0.157585&oq=las+vegax&t=h&hnear=Las+Vegas,+Clark,+Nevada&z=13")); 479 #endif // _DEVELOPMENT 469 480 return TRUE; 470 481 } 471 482 LRESULT OnDestroy() throw() 472 483 { 484 #if !defined(_DEBUG) 473 485 for(SIZE_T nIndex = 0; nIndex < 12; nIndex++) 474 486 _W(UnregisterHotKey(m_hWnd, (INT) nIndex)); 487 #endif // !defined(_DEBUG) 475 488 _W(ChangeClipboardChain(m_NextClipboardViewerWindow)); 476 489 return 0;
Note: See TracChangeset
for help on using the changeset viewer.