BibleTime
|
#include <cdisplaysettings.h>
Public Member Functions | |
CDisplaySettingsPage (CConfigurationDialog *parent=nullptr) | |
void | save () const final override |
Public Member Functions inherited from BtConfigDialog::Page | |
Page (QIcon const &icon, QWidget *const parent=nullptr) | |
void | setHeaderText (QString const &headerText) |
~Page () noexcept override | |
Static Public Member Functions | |
static void | resetLanguage () |
Protected Member Functions | |
void | retranslateUi () |
Private Slots | |
void | updateStylePreview () |
Private Member Functions | |
void | initSwordLocaleCombo () |
Static Private Member Functions | |
static QVector< QString > | bookNameAbbreviationsTryVector () |
Private Attributes | |
QLabel * | m_availableLabel |
QLabel * | m_languageNamesLabel |
QComboBox * | m_lightDarkCombo |
QLabel * | m_lightDarkLabel |
QLabel * | m_previewLabel |
QCheckBox * | m_showLogoCheck |
QLabel * | m_showLogoLabel |
QComboBox * | m_styleChooserCombo |
QLabel * | m_stylePreviewViewer |
QComboBox * | m_swordLocaleCombo |
QLabel * | m_transifexLabel |
Definition at line 27 of file cdisplaysettings.h.
CDisplaySettingsPage::CDisplaySettingsPage | ( | CConfigurationDialog * | parent = nullptr | ) |
Initializes the startup section of the OD.
Definition at line 48 of file cdisplaysettings.cpp.
References CDisplayTemplateMgr::activeTemplateName(), CDisplayTemplateMgr::availableTemplates(), BT_CONNECT, btConfig(), initSwordLocaleCombo(), CDisplayTemplateMgr::instance(), m_availableLabel, m_languageNamesLabel, m_lightDarkCombo, m_lightDarkLabel, m_previewLabel, m_showLogoCheck, m_showLogoLabel, m_styleChooserCombo, m_stylePreviewViewer, m_swordLocaleCombo, m_transifexLabel, retranslateUi(), and updateStylePreview().
|
staticprivate |
Definition at line 170 of file cdisplaysettings.cpp.
References BtConfig::booknameLanguage(), btConfig(), and Language::fromAbbrev().
Referenced by initSwordLocaleCombo(), and resetLanguage().
|
private |
Definition at line 191 of file cdisplaysettings.cpp.
References bookNameAbbreviationsTryVector(), util::tool::fixSwordBcp47(), Language::fromAbbrev(), BtLocaleMgr::internalSwordLocales(), and m_swordLocaleCombo.
Referenced by CDisplaySettingsPage().
|
static |
Definition at line 149 of file cdisplaysettings.cpp.
References bookNameAbbreviationsTryVector(), BT_ASSERT, btConfig(), util::tool::fixSwordBcp47(), BtLocaleMgr::internalSwordLocales(), and BtConfigCore::setValue().
Referenced by BibleTimeApp::initBackends().
|
protected |
Definition at line 119 of file cdisplaysettings.cpp.
References m_availableLabel, m_languageNamesLabel, m_lightDarkCombo, m_lightDarkLabel, m_previewLabel, m_showLogoLabel, m_swordLocaleCombo, m_transifexLabel, BtConfigDialog::Page::setHeaderText(), and updateStylePreview().
Referenced by CDisplaySettingsPage().
|
finaloverridevirtual |
Implements BtConfigDialog::Page.
Definition at line 362 of file cdisplaysettings.cpp.
References btConfig(), m_lightDarkCombo, m_showLogoCheck, m_styleChooserCombo, m_swordLocaleCombo, and BtConfigCore::setValue().
|
privateslot |
Update the style preview widget.
Definition at line 227 of file cdisplaysettings.cpp.
References ColorManager::getBackgroundColor(), ColorManager::getForegroundColor(), Rendering::CTextRendering::KeyTreeItem::Settings::highlight, m_styleChooserCombo, m_stylePreviewViewer, Rendering::CTextRendering::renderKeyTree(), ColorManager::replaceColors(), and Rendering::CDisplayRendering::setDisplayTemplateName().
Referenced by CDisplaySettingsPage(), and retranslateUi().
|
private |
Definition at line 62 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and retranslateUi().
|
private |
Definition at line 56 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and retranslateUi().
|
private |
Definition at line 59 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), retranslateUi(), and save().
|
private |
Definition at line 58 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and retranslateUi().
|
private |
Definition at line 64 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and retranslateUi().
|
private |
Definition at line 55 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and save().
|
private |
Definition at line 54 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and retranslateUi().
|
private |
Definition at line 61 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), save(), and updateStylePreview().
|
private |
Definition at line 63 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and updateStylePreview().
|
private |
Definition at line 57 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), initSwordLocaleCombo(), retranslateUi(), and save().
|
private |
Definition at line 60 of file cdisplaysettings.h.
Referenced by CDisplaySettingsPage(), and retranslateUi().