[sword-cvs] sword/apps/windoze/CBuilder5/BibleCS paraldisp.cpp,1.6,1.7 paraldisp.h,1.3,1.4

sword@www.crosswire.org sword@www.crosswire.org
Fri, 8 Aug 2003 14:07:23 -0700


Update of /usr/local/cvsroot/sword/apps/windoze/CBuilder5/BibleCS
In directory www:/tmp/cvs-serv9176/apps/windoze/CBuilder5/BibleCS

Modified Files:
	paraldisp.cpp paraldisp.h 
Log Message:
Added a message box explaining the new parallel display and how to use it.

Index: paraldisp.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/apps/windoze/CBuilder5/BibleCS/paraldisp.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- paraldisp.cpp	6 Aug 2003 10:34:36 -0000	1.6
+++ paraldisp.cpp	8 Aug 2003 21:07:21 -0000	1.7
@@ -21,6 +21,7 @@
 		: SWDispRTFChap(Owner) {
 	modCount = 3;
 	mods = 0;
+	warnNoMod = false;
 }
 
 __fastcall ParallelDisp::~ParallelDisp() {
@@ -75,9 +76,14 @@
 		RTFStream->WriteBuffer(newtext.c_str(), newtext.Length());
 		RTFStream->Position = 0;
 		Lines->LoadFromStream(RTFStream);
+		if(!warnNoMod)
+		{
+			Application->MessageBox("This must be your first time using the new parallel display in Sword. This page is for viewing up to three of your installed bibles side by side. You will notice that this page is currently blank. Right-click the page to get a menu for selecting bibles to be compared.\nThis is our first pass at this feature, so Lord willing it will improve in future versions.\nEnjoy!\nThe Sword Project Development Team!", "New Feature - Parallel Display",  MB_OK);
+			warnNoMod = true;
+		}
 		return 0;
 	}
-		
+
 
 
 	VerseKey *key = (VerseKey *)(SWKey *)(*mods[0]);
@@ -274,6 +280,8 @@
 	SendMessage(Handle, EM_SCROLLCARET, 0, 0);
 	SelStart = versepos;
 	SendMessage(Handle, EM_SCROLLCARET, 0, 0);
+
+	warnNoMod = true; // Set this true meaning the user already has selected some bibles. So that if they select none for all three they do not get the new feature message box.
 	return 0;
 }
 

Index: paraldisp.h
===================================================================
RCS file: /usr/local/cvsroot/sword/apps/windoze/CBuilder5/BibleCS/paraldisp.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- paraldisp.h	27 Jun 2003 11:31:41 -0000	1.3
+++ paraldisp.h	8 Aug 2003 21:07:21 -0000	1.4
@@ -48,6 +48,8 @@
 	virtual char Display(SWModule & imodule);
 	virtual char Display();
 	SWModule **getModules();
+private:
+	bool warnNoMod;
 };
 
 //---------------------------------------------------------------------------