[sword-svn] r56 - trunk/src/gui
bdrake at www.crosswire.org
bdrake at www.crosswire.org
Wed Dec 12 02:38:07 MST 2007
Author: bdrake
Date: 2007-12-12 02:38:07 -0700 (Wed, 12 Dec 2007)
New Revision: 56
Modified:
trunk/src/gui/SimpleNavigator.cpp
Log:
Modified: trunk/src/gui/SimpleNavigator.cpp
===================================================================
--- trunk/src/gui/SimpleNavigator.cpp 2007-12-12 04:17:42 UTC (rev 55)
+++ trunk/src/gui/SimpleNavigator.cpp 2007-12-12 09:38:07 UTC (rev 56)
@@ -224,6 +224,7 @@
const char * t = wstrtostr(target);
// MessageBox(0, strtowstr(t), L"This is 't'", MB_OK);
// SWMgr swmanager; // don't create new manager - use SwordIndex::manager
+ // Footnote MessageBox
if (strstr(t, "showNote")) {
URL footnote(t); // t is char* to URL string
SWBuf module = footnote.getParameterValue("module");
@@ -245,7 +246,7 @@
MessageBox(0, strtowstr(body), L"Footnote", MB_OK);
}
// Strongs number MessageBox
- if (strstr(t, "showStrongs")) {
+ else if (strstr(t, "showStrongs")) {
URL footnote(t); // t is char* to URL string
SWBuf type = footnote.getParameterValue("type");
SWBuf number = footnote.getParameterValue("value");
@@ -255,8 +256,9 @@
if(strstr(type.c_str(), "Hebrew"))
mod = SwordIndex::hebrewLex;
if (! mod) {
- MessageBox(0, strtowstr("No Lectionary found"), L"Strong's", MB_OK);
- exit(-1);
+ MessageBox(0, strtowstr("No Dictionary found - install Strong's modules"),
+ L"Strong's", MB_OK);
+ return;
}
SWKey *modKey = mod->getKey();
modKey->setText(number.c_str());
@@ -264,7 +266,7 @@
MessageBox(0, strtowstr(mod->StripText()), L"Strong's", MB_OK);
}
//comment next line out in release version
-else MessageBox(0, strtowstr("Unable to show reference"), L"url clicked", MB_OK); // catch all
+else MessageBox(0, strtowstr(t), L"Raw entry unresolved", MB_OK); // catch all
}
More information about the sword-cvs
mailing list