[sword-svn] r57 - trunk/src/gui

bdrake at www.crosswire.org bdrake at www.crosswire.org
Wed Dec 12 11:22:46 MST 2007


Author: bdrake
Date: 2007-12-12 11:22:44 -0700 (Wed, 12 Dec 2007)
New Revision: 57

Modified:
   trunk/src/gui/SimpleNavigator.cpp
Log:


Modified: trunk/src/gui/SimpleNavigator.cpp
===================================================================
--- trunk/src/gui/SimpleNavigator.cpp	2007-12-12 09:38:07 UTC (rev 56)
+++ trunk/src/gui/SimpleNavigator.cpp	2007-12-12 18:22:44 UTC (rev 57)
@@ -265,6 +265,26 @@
 		mod->RenderText(); 
 		MessageBox(0, strtowstr(mod->StripText()), L"Strong's", MB_OK);
 		}
+	// Morph MessageBox
+	else if (strstr(t, "showMorph")) {
+		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(), "robinson")) 
+			mod = SwordIndex::greekMorph;
+		if(strstr(type.c_str(), "strongMorph")) 
+			mod = SwordIndex::hebrewMorph;
+		if (! mod) {
+			MessageBox(0, strtowstr("No Dictionary found - install Morphological modules"), 
+				L"Morphological tags", MB_OK);
+			return;
+		}
+		SWKey *modKey = mod->getKey(); 
+		modKey->setText(number.c_str()); 
+		mod->RenderText(); 
+		MessageBox(0, strtowstr(mod->StripText()), L"Morph tags", MB_OK);
+		}
 //comment next line out in release version
 else MessageBox(0, strtowstr(t), L"Raw entry unresolved", MB_OK); // catch all 
 }




More information about the sword-cvs mailing list