[sword-svn] r55 - in trunk/src: . gui
dtrotzjr at www.crosswire.org
dtrotzjr at www.crosswire.org
Tue Dec 11 21:17:43 MST 2007
Author: dtrotzjr
Date: 2007-12-11 21:17:42 -0700 (Tue, 11 Dec 2007)
New Revision: 55
Modified:
trunk/src/SwRd.vcb
trunk/src/SwRd.vco
trunk/src/gui/SimpleNavigator.cpp
Log:
Added Barry's changes for the Strong's number definitions.
Modified: trunk/src/SwRd.vcb
===================================================================
(Binary files differ)
Modified: trunk/src/SwRd.vco
===================================================================
(Binary files differ)
Modified: trunk/src/gui/SimpleNavigator.cpp
===================================================================
--- trunk/src/gui/SimpleNavigator.cpp 2007-12-11 11:47:26 UTC (rev 54)
+++ trunk/src/gui/SimpleNavigator.cpp 2007-12-12 04:17:42 UTC (rev 55)
@@ -244,14 +244,31 @@
// not sure if MessageBox can display html - if it can, re-think this some day
MessageBox(0, strtowstr(body), L"Footnote", MB_OK);
}
+ // Strongs number MessageBox
+ if (strstr(t, "showStrongs")) {
+ URL footnote(t); // t is char* to URL string
+ SWBuf type = footnote.getParameterValue("type");
+ SWBuf number = footnote.getParameterValue("value");
+ SWModule *mod = 0;
+ if(strstr(type.c_str(), "Greek"))
+ mod = SwordIndex::greekLex;
+ if(strstr(type.c_str(), "Hebrew"))
+ mod = SwordIndex::hebrewLex;
+ if (! mod) {
+ MessageBox(0, strtowstr("No Lectionary found"), L"Strong's", MB_OK);
+ exit(-1);
+ }
+ SWKey *modKey = mod->getKey();
+ modKey->setText(number.c_str());
+ mod->RenderText();
+ 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
}
int SimpleNavigator::getID() {
-
return nextID++;
-
}
More information about the sword-cvs
mailing list