BibleTime
|
#include <btdisplaysettingsbutton.h>
Public Slots | |
void | setDisplayOptions (DisplayOptions const &displaySettings) |
void | setFilterOptions (FilterOptions const &moduleSettings) |
void | setModules (const BtConstModuleList &modules) |
Signals | |
void | sigChanged () |
void | sigDisplayOptionsChanged (DisplayOptions displayOptions) |
void | sigFilterOptionsChanged (FilterOptions filterOptions) |
void | sigModulesChanged (const BtConstModuleList &modules) |
Public Member Functions | |
BtDisplaySettingsButton (QWidget *parent=nullptr) | |
void | setDisplayOptionsNoRepopulate (DisplayOptions const &displaySettings) |
void | setFilterOptionsNoRepopulate (FilterOptions const &moduleSettings) |
Protected Member Functions | |
void | addMenuEntry (QAction *action, bool checked) |
void | initMenu () |
bool | isOptionAvailable (CSwordModuleInfo::FilterOption const &option) |
void | repopulateMenu () |
void | retranslateToolTip () |
void | retranslateUi () |
This class manages the display options of the selected modules.
Definition at line 31 of file btdisplaysettingsbutton.h.
BtDisplaySettingsButton::BtDisplaySettingsButton | ( | QWidget * | parent = nullptr | ) |
Definition at line 27 of file btdisplaysettingsbutton.cpp.
References BT_ASSERT, BT_CONNECT, FilterOptions::footnotes, FilterOptions::greekAccents, FilterOptions::headings, FilterOptions::hebrewCantillation, FilterOptions::hebrewPoints, initMenu(), m_displayOptions, m_filterOptions, m_footnotesAction, m_greekAccentsAction, m_headingsAction, m_hebrewCantillationAction, m_hebrewPointsAction, m_morphSegmentationAction, m_popup, m_redWordsAction, m_scriptureReferencesAction, m_variantAction, m_verseNumbersAction, FilterOptions::morphSegmentation, FilterOptions::redLetterWords, retranslateUi(), FilterOptions::scriptureReferences, sigChanged(), sigDisplayOptionsChanged(), sigFilterOptionsChanged(), FilterOptions::textualVariants, and DisplayOptions::verseNumbers.
|
protected |
Adds an entry to m_popup.
Definition at line 233 of file btdisplaysettingsbutton.cpp.
References m_popup.
Referenced by repopulateMenu().
|
protected |
Definition at line 111 of file btdisplaysettingsbutton.cpp.
References m_footnotesAction, m_greekAccentsAction, m_headingsAction, m_hebrewCantillationAction, m_hebrewPointsAction, m_morphSegmentationAction, m_popup, m_redWordsAction, m_scriptureReferencesAction, m_variantAction, and m_verseNumbersAction.
Referenced by BtDisplaySettingsButton().
|
protected |
Definition at line 238 of file btdisplaysettingsbutton.cpp.
References m_modules.
Referenced by repopulateMenu().
|
protected |
No descriptions
Definition at line 171 of file btdisplaysettingsbutton.cpp.
References addMenuEntry(), CSwordModuleInfo::Bible, FilterOptions::footnotes, CSwordModuleInfo::footnotes, FilterOptions::greekAccents, CSwordModuleInfo::greekAccents, FilterOptions::headings, CSwordModuleInfo::headings, FilterOptions::hebrewCantillation, CSwordModuleInfo::hebrewCantillation, FilterOptions::hebrewPoints, CSwordModuleInfo::hebrewPoints, isOptionAvailable(), m_displayOptions, m_filterOptions, m_footnotesAction, m_greekAccentsAction, m_headingsAction, m_hebrewCantillationAction, m_hebrewPointsAction, m_modules, m_morphSegmentationAction, m_popup, m_redWordsAction, m_scriptureReferencesAction, m_variantAction, m_verseNumbersAction, FilterOptions::morphSegmentation, CSwordModuleInfo::morphSegmentation, FilterOptions::redLetterWords, CSwordModuleInfo::redLetterWords, retranslateToolTip(), FilterOptions::scriptureReferences, CSwordModuleInfo::scriptureReferences, FilterOptions::textualVariants, CSwordModuleInfo::textualVariants, and DisplayOptions::verseNumbers.
Referenced by setDisplayOptions(), setFilterOptions(), and setModules().
|
protected |
Definition at line 161 of file btdisplaysettingsbutton.cpp.
Referenced by repopulateMenu(), and retranslateUi().
|
protected |
Definition at line 146 of file btdisplaysettingsbutton.cpp.
References m_footnotesAction, m_greekAccentsAction, m_headingsAction, m_hebrewCantillationAction, m_hebrewPointsAction, m_morphSegmentationAction, m_redWordsAction, m_scriptureReferencesAction, m_variantAction, m_verseNumbersAction, and retranslateToolTip().
Referenced by BtDisplaySettingsButton().
|
slot |
Definition at line 90 of file btdisplaysettingsbutton.cpp.
References m_displayOptions, and repopulateMenu().
Referenced by CDisplayWindow::setDisplaySettingsButton().
void BtDisplaySettingsButton::setDisplayOptionsNoRepopulate | ( | DisplayOptions const & | displaySettings | ) |
Definition at line 81 of file btdisplaysettingsbutton.cpp.
References m_displayOptions.
Referenced by CDisplayWindow::setDisplaySettingsButton().
|
slot |
Definition at line 97 of file btdisplaysettingsbutton.cpp.
References m_filterOptions, and repopulateMenu().
Referenced by CDisplayWindow::setDisplaySettingsButton().
void BtDisplaySettingsButton::setFilterOptionsNoRepopulate | ( | FilterOptions const & | moduleSettings | ) |
Definition at line 86 of file btdisplaysettingsbutton.cpp.
References m_filterOptions.
Referenced by CDisplayWindow::setDisplaySettingsButton().
|
slot |
Definition at line 104 of file btdisplaysettingsbutton.cpp.
References m_modules, and repopulateMenu().
Referenced by CDisplayWindow::setDisplaySettingsButton().
|
signal |
Referenced by BtDisplaySettingsButton(), and CDisplayWindow::setDisplaySettingsButton().
|
signal |
Referenced by BtDisplaySettingsButton(), and CDisplayWindow::setDisplaySettingsButton().
|
signal |
Referenced by BtDisplaySettingsButton(), and CDisplayWindow::setDisplaySettingsButton().
|
signal |
|
private |
Definition at line 64 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), repopulateMenu(), setDisplayOptions(), and setDisplayOptionsNoRepopulate().
|
private |
Definition at line 63 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), repopulateMenu(), setFilterOptions(), and setFilterOptionsNoRepopulate().
|
private |
Definition at line 76 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 73 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 69 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 72 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 71 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 65 of file btdisplaysettingsbutton.h.
Referenced by isOptionAvailable(), repopulateMenu(), and setModules().
|
private |
Definition at line 77 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 67 of file btdisplaysettingsbutton.h.
Referenced by addMenuEntry(), BtDisplaySettingsButton(), initMenu(), and repopulateMenu().
|
private |
Definition at line 70 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 75 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 74 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().
|
private |
Definition at line 68 of file btdisplaysettingsbutton.h.
Referenced by BtDisplaySettingsButton(), initMenu(), repopulateMenu(), and retranslateUi().