/*************************************************************************** File: swordoptions.h Project: Kio-Sword -- An ioslave for SWORD and KDE Copyright: Copyright (C) 2004-2005 Luke Plant ***************************************************************************/ /*************************************************************************** * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef SWORDOPTIONS_H #define SWORDOPTIONS_H // Internal #include "option.h" // KDE #include // TQt #include // Std C/C++ #include #include using std::vector; namespace KioSword { class SwordOptions { // There are 3 lists of options: // - Here // - 2* in SwordOptions::init() // Also, they usually need to be added to the settings form public: // Need to duplicate Option propagate; // Allow options set in one 'get' command to persist to later 'get' commands Option redWords; Option verseNumbers; Option verseLineBreaks; Option styleSheet; // FIXME IMPLEMENT Option footnotes; // FIXME IMPLEMENT Option headings; // FIXME IMPLEMENT Option strongs; Option morph; Option cantillation; Option hebrewVowelPoints; Option greekAccents; Option lemmas; // FIXME IMPLEMENT Option crossRefs; // FIXME IMPLEMENT Option variants; Option wholeBook; // Allows whole book to be printed - otherwise 'Genesis' will give an index of chapters Option doBibleIndex; // Create an index for for Bibles/Commentaries Option doFullTreeIndex; // Create a full index for 'tree' books, not just first level Option doDictIndex; // Create an index for all items in a Lexicon/Dictionary Option doOtherIndex; // Create an index for other books Option defaultBible; Option defaultGreekStrongs; Option defaultHebrewStrongs; Option defaultGreekMorph; Option defaultHebrewMorph; Option locale; SwordOptions(); SwordOptions(const SwordOptions& copyFrom); virtual ~SwordOptions(); void readFromConfig(const TDEConfig* config); void saveToConfig(TDEConfig* config); TQMap getQueryStringParams() const; void readFromQueryString(TQMap params); private: /** options that are read/saved in the config or propagated */ vector m_optionList; void init(); }; } #endif