diff options
author | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
commit | c9458897ebbb739d8db83c80e06512d8a612f743 (patch) | |
tree | f8c5381045887e34388cc6b26cfccc254bf766dc /apps/windoze/CBuilder5/BibleCS/DevOfTheDay.cpp | |
download | sword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz |
*** empty log message ***
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/DevOfTheDay.cpp')
-rw-r--r-- | apps/windoze/CBuilder5/BibleCS/DevOfTheDay.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/DevOfTheDay.cpp b/apps/windoze/CBuilder5/BibleCS/DevOfTheDay.cpp new file mode 100644 index 0000000..d336056 --- /dev/null +++ b/apps/windoze/CBuilder5/BibleCS/DevOfTheDay.cpp @@ -0,0 +1,37 @@ +//--------------------------------------------------------------------------- + +#include <vcl.h> +#pragma hdrstop + +#include "DevOfTheDay.h" +#include "mainfrm.h" +//--------------------------------------------------------------------------- +#pragma package(smart_init) +#pragma resource "*.dfm" +TDevOfTheDay2 *DevOfTheDay2; +//--------------------------------------------------------------------------- +__fastcall TDevOfTheDay2::TDevOfTheDay2(TComponent* Owner) + : TForm(Owner) +{ +} +//--------------------------------------------------------------------------- + + +void __fastcall TDevOfTheDay2::btnOKClick(TObject *Sender) +{ + DevOfTheDay2->Hide(); + ConfigEntMap emap; + SWConfig * optionsconf; + optionsconf = dynamic_cast<TForm1*>(Application->MainForm)->optionsconf; + if(optionsconf) + { + emap = optionsconf->Sections["General"]; + emap.erase("TipOfTheDay"); + emap.insert(ConfigEntMap::value_type("TipOfTheDay", (DevOfTheDay2->ckShowTip->Checked) ? "Devotional" : "")); + optionsconf->Sections["General"] = emap; + optionsconf->Save(); + } + +} +//--------------------------------------------------------------------------- + |