diff options
Diffstat (limited to 'src/frontend/settingsdialogs/cswordsettings.h')
-rw-r--r-- | src/frontend/settingsdialogs/cswordsettings.h | 97 |
1 files changed, 9 insertions, 88 deletions
diff --git a/src/frontend/settingsdialogs/cswordsettings.h b/src/frontend/settingsdialogs/cswordsettings.h index c54630d..18a4268 100644 --- a/src/frontend/settingsdialogs/cswordsettings.h +++ b/src/frontend/settingsdialogs/cswordsettings.h @@ -1,8 +1,10 @@ /********* * +* In the name of the Father, and of the Son, and of the Holy Spirit. +* * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2011 by the BibleTime developers. +* Copyright 1999-2014 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ @@ -14,90 +16,9 @@ #include <QWidget> +class BtTextFiltersTab; class CConfigurationDialog; -class CSwordSettingsPage; -class QCheckBox; -class QComboBox; -class QLabel; - - -/******************************************************************************* - StandardWorksTab -*******************************************************************************/ - -class StandardWorksTab: public QWidget { - - Q_OBJECT - - public: /* Methods: */ - - StandardWorksTab(CSwordSettingsPage *parent); - - void save(); - - protected: /* Methods: */ - - void retranslateUi(); - - private: /* Fields: */ - - QLabel *m_explanationLabel; - -#define STANDARD_WORKS_TAB_FIELD(name) \ - QLabel *m_ ## name ## Label; \ - QComboBox *m_ ## name ## Combo - - STANDARD_WORKS_TAB_FIELD(standardBible); - STANDARD_WORKS_TAB_FIELD(standardCommentary); - STANDARD_WORKS_TAB_FIELD(standardLexicon); - STANDARD_WORKS_TAB_FIELD(standardDailyDevotional); - STANDARD_WORKS_TAB_FIELD(standardHebrewStrongsLexicon); - STANDARD_WORKS_TAB_FIELD(standardGreekStrongsLexicon); - STANDARD_WORKS_TAB_FIELD(standardHebrewMorphLexicon); - STANDARD_WORKS_TAB_FIELD(standardGreekMorphLexicon); -}; - - -/******************************************************************************* - TextFiltersTab -*******************************************************************************/ - -class TextFiltersTab: public QWidget { - - Q_OBJECT - - public: /* Methods: */ - - TextFiltersTab(CSwordSettingsPage *parent); - - void save(); - - protected: /* Methods: */ - - void retranslateUi(); - - private: /* Fields: */ - - QLabel *m_explanationLabel; - -#define TEXT_FILTERS_TAB_FIELD(name) QCheckBox *m_ ## name ## Check - - TEXT_FILTERS_TAB_FIELD(lineBreaks); - TEXT_FILTERS_TAB_FIELD(verseNumbers); - TEXT_FILTERS_TAB_FIELD(headings); - TEXT_FILTERS_TAB_FIELD(hebrewPoints); - TEXT_FILTERS_TAB_FIELD(hebrewCantillation); - TEXT_FILTERS_TAB_FIELD(morphSegmentation); - TEXT_FILTERS_TAB_FIELD(greekAccents); - TEXT_FILTERS_TAB_FIELD(textualVariants); - TEXT_FILTERS_TAB_FIELD(scriptureReferences); - -}; - - -/******************************************************************************* - CSwordSettingsPage -*******************************************************************************/ +class BtStandardWorksTab; class CSwordSettingsPage: public BtConfigDialog::Page { @@ -105,7 +26,7 @@ class CSwordSettingsPage: public BtConfigDialog::Page { public: /* Methods: */ - CSwordSettingsPage(CConfigurationDialog *parent = 0); + CSwordSettingsPage(CConfigurationDialog * parent = 0); void save(); @@ -115,9 +36,9 @@ class CSwordSettingsPage: public BtConfigDialog::Page { private: /* Fields: */ - QTabWidget *m_tabWidget; - StandardWorksTab *m_worksTab; - TextFiltersTab *m_filtersTab; + QTabWidget * m_tabWidget; + BtStandardWorksTab * m_worksTab; + BtTextFiltersTab * m_filtersTab; }; |