17 #include <QSizePolicy>
18 #include <QVBoxLayout>
19 #include "../../backend/config/btconfig.h"
20 #include "../../backend/config/btconfigcore.h"
21 #include "../../util/tool.h"
25 #define TEXT_FILTERS_TAB_ADD_ROW(name,def) \
26 m_ ## name ## Check = new QCheckBox(this); \
27 m_ ## name ## Check->setChecked(conf.value<bool>(#name,(def))); \
28 layout->addWidget(m_ ## name ## Check)
33 QVBoxLayout *layout =
new QVBoxLayout(
this);
34 layout->setContentsMargins(5, 5, 5, 5);
35 layout->setSpacing(2);
38 m_explanationLabel->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
55 layout->addStretch(4);
60 #define TEXT_FILTERS_TAB_SAVE(name) \
61 conf.setValue(#name, m_ ## name ## Check->isChecked())
78 tr(
"Filters control the appearance of text. Here you can specify "
79 "default settings for all filters. These settings apply to newly "
80 "opened display windows only. You can override these settings in "
81 "each display window."));
83 m_verseNumbersCheck->setText(tr(
"Show verse numbers"));
84 m_headingsCheck->setText(tr(
"Show section headings"));
85 m_scriptureReferencesCheck->setText(tr(
"Show scripture cross-references"));
86 m_greekAccentsCheck->setText(tr(
"Show Greek accents"));
87 m_hebrewPointsCheck->setText(tr(
"Show Hebrew vowel points"));
88 m_hebrewCantillationCheck->setText(tr(
"Show Hebrew cantillation marks"));
89 m_morphSegmentationCheck->setText(tr(
"Show morph segmentation"));
90 m_textualVariantsCheck->setText(tr(
"Use textual variants"));
BtConfig & btConfig()
This is a shortchand for BtConfig::getInstance().
#define TEXT_FILTERS_TAB_SAVE(name)
#define TEXT_FILTERS_TAB_ADD_ROW(name, def)
BtConfigCore group(Prefix &&prefix) const &
BtConfigCore session() const
BtTextFiltersTab(CSwordSettingsPage *parent)
QLabel * m_explanationLabel