aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/optionfrm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/optionfrm.cpp')
-rw-r--r--apps/windoze/CBuilder5/BibleCS/optionfrm.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/optionfrm.cpp b/apps/windoze/CBuilder5/BibleCS/optionfrm.cpp
index 8810f07..6fc16da 100644
--- a/apps/windoze/CBuilder5/BibleCS/optionfrm.cpp
+++ b/apps/windoze/CBuilder5/BibleCS/optionfrm.cpp
@@ -39,8 +39,8 @@ void __fastcall TOptionsfrm::btnCurrVerseClick(TObject *Sender)
//---------------------------------------------------------------------------
//DONE -oDavid 1 -cOptions: add per module font size selection
-//TODO 1 -cOptions: add 'general' dictionary besides strongs for lookups of words
-//TODO 1 -cOptions: add per module 'general' dictionary
+//DONE 1 -cOptions: add 'general' dictionary besides strongs for lookups of words
+//TODO 1 -cOptions: add Individual Modules per module 'general' dictionary selection and support so different dictionaries can be chosen for, say: Chinese and KJV and Thai, etc.
void __fastcall TOptionsfrm::FormCreate(TObject *Sender)
{
@@ -452,7 +452,7 @@ void __fastcall TOptionsfrm::btnModFontsClick(TObject *Sender)
-// TODO 1 -cOptions: add hint verselist preview toggle
+// DONE 1 -cOptions: add hint verselist preview toggle
void __fastcall TOptionsfrm::HintPopupsClick(TObject *Sender)
{
@@ -686,8 +686,8 @@ void TOptionsfrm::LoadMiscSettings(SWConfig* config) {
tmpval = config->Sections["Hints"].getWithDefault("VLists", "true");
Optionsfrm->HintVLists->Checked = (tmpval != "false");
- tmpval = config->Sections["Hints"].getWithDefault("Words", "true");
- Optionsfrm->HintWords->Checked = (tmpval != "false");
+ tmpval = config->Sections["Hints"].getWithDefault("Words", "false");
+ Optionsfrm->HintWords->Checked = (tmpval == "true");
Optionsfrm->devsAsDictsCB->Checked = false;
@@ -734,6 +734,11 @@ void TOptionsfrm::LoadMiscSettings(SWConfig* config) {
Optionsfrm->dailyDefaultCB->ItemIndex = Optionsfrm->dailyDefaultCB->Items->IndexOf(it->second->Description());
}
+ tmpval = ((eit = config->Sections["ModDefaults"].find("GenDict")) != config->Sections["ModDefaults"].end())? (*eit).second : (string)"";
+ if ((it = Form1->mainmgr->Modules.find(tmpval)) != Form1->mainmgr->Modules.end()) {
+ Optionsfrm->genDictCB->ItemIndex = Optionsfrm->genDictCB->Items->IndexOf(it->second->Description());
+ }
+
tmpval = ((eit = config->Sections["ModDefaults"].find("StrongsNumbers")) != config->Sections["ModDefaults"].end())? (*eit).second : (string)"";
if ((it = Form1->mainmgr->Modules.find(tmpval)) != Form1->mainmgr->Modules.end()) {
Optionsfrm->strongsNumsCB->ItemIndex = Optionsfrm->strongsNumsCB->Items->IndexOf(it->second->Description());
@@ -802,6 +807,9 @@ void TOptionsfrm::extractSettings(SWConfig* config) {
if (Optionsfrm->dailyDefaultCB->ItemIndex > -1) {
emap["DailyDevotion"] = (const char *)Optionsfrm->dailyDefaultCB->Items->Objects[Optionsfrm->dailyDefaultCB->ItemIndex];
}
+ if (Optionsfrm->genDictCB->ItemIndex > -1) {
+ emap["GenDict"] = (const char *)Optionsfrm->genDictCB->Items->Objects[Optionsfrm->genDictCB->ItemIndex];
+ }
if (Optionsfrm->strongsNumsCB->ItemIndex > -1) {
emap["StrongsNumbers"] = (const char *)Optionsfrm->strongsNumsCB->Items->Objects[Optionsfrm->strongsNumsCB->ItemIndex];
}