diff --git a/Packages/MIES_Include.ipf b/Packages/MIES_Include.ipf index 8b69e8f5b1..f0f6955510 100644 --- a/Packages/MIES_Include.ipf +++ b/Packages/MIES_Include.ipf @@ -35,18 +35,21 @@ #ifdef TOO_OLD_IGOR +static StrConstant IP_DOCU_UPDATE_URL = "https://alleninstitute.github.io/MIES/installation.html#igor-pro-update-nightly" + Window OpenPanelWithDocumentationLink() : Panel PauseUpdate; Silent 1 // building window... - NewPanel/K=1/W=(435, 461, 735, 661) as "OpenPanelWithDocumentationLink" - Button button0, pos={38.00, 14.00}, size={223.00, 89.00}, proc=ButtonProc_OpenMiesDocuUpdateNightly, title="Open MIES documentation for\r update instructions" - Button button1, pos={51.00, 133.00}, size={195.00, 29.00}, proc=ButtonProc_DownloadNightly, title="Download Igor Pro nightly build" + NewPanel/K=1/W=(841, 378, 1150, 576) as "OpenPanelWithDocumentationLink" + DrawText 20, 60, "\\JC\\Zr200\\f01 MIES requires a newer \r version of Igor Pro" + Button button0, pos={74.00, 70.00}, size={150.00, 50.00}, proc=ButtonProc_OpenMiesDocuUpdateNightly, title="Open Igor \r update instructions" + Button button1, pos={74.00, 130.00}, size={150.00, 50.00}, proc=ButtonProc_DownloadNightly, title="Download approved \r Igor Pro version" EndMacro Function ButtonProc_OpenMiesDocuUpdateNightly(STRUCT WMButtonAction &ba) : ButtonControl switch(ba.eventCode) case 2: // mouse up - BrowseURL "https://alleninstitute.github.io/MIES/installation.html#igor-pro-update-nightly" + BrowseURL IP_DOCU_UPDATE_URL break endswitch @@ -57,7 +60,7 @@ static Function/S GetDownloadLink() string igorMajorVersion, text, lineWithLink, url, os - igorMajorVersion = StringByKey("IGORVERS", IgorInfo(0))[0] + igorMajorVersion = num2istr(IgorVersion()) #if defined(WINDOWS) os = "Windows" @@ -118,8 +121,8 @@ static Function AfterCompiledHook() string igorMajorVersion #if defined(IGOR64) - igorMajorVersion = StringByKey("IGORVERS", IgorInfo(0))[0] - printf "Your Igor Pro %s version is too old to be usable for MIES.\r", igorMajorVersion + igorMajorVersion = num2istr(IgorVersion()) + printf "Your Igor Pro %s version is too old to be usable for MIES. Please follow the download instructions at: %s\r", igorMajorVersion, IP_DOCU_UPDATE_URL Execute "OpenPanelWithDocumentationLink()" #else printf "The 32bit version of Igor Pro is not supported anymore.\r" diff --git a/Packages/doc/doxygen-filter-ipf b/Packages/doc/doxygen-filter-ipf index ecdc0c6271..d43d686c83 160000 --- a/Packages/doc/doxygen-filter-ipf +++ b/Packages/doc/doxygen-filter-ipf @@ -1 +1 @@ -Subproject commit ecdc0c6271c96ce2101b626b1361ab242a30a2e7 +Subproject commit d43d686c8308aa19dfe4ed07f7683f6884376a1e