15 #include <QMainWindow>
19 #include <QStringList>
20 #include "../../backend/btglobal.h"
21 #include "../../backend/drivers/btmodulelist.h"
22 #include "../../backend/drivers/cswordmoduleinfo.h"
23 #include "../../util/btassert.h"
24 #include "../../util/btconnect.h"
181 bool const addTextHeaderToolbar,
198 template <
typename ... Args>
241 template <
typename Name,
typename ... Args>
244 BT_CONNECT(&a, &QAction::triggered, std::forward<Args>(args)...);
QList< CSwordModuleInfo * > BtModuleList
QList< CSwordModuleInfo const * > BtConstModuleList
QAction & action(QString const &name) const
The base class for all display windows of BibleTime.
virtual void modulesChanged()
FilterOptions m_filterOptions
void sigKeyChanged(CSwordKey *key)
DisplayOptions const & displayOptions() const
void sigDisplayOptionsChanged(const DisplayOptions &displayOptions)
void printAnchorWithText()
BTHistory *const m_history
QAction & initAddAction(Args &&... args)
struct CDisplayWindow::ActionsStruct m_actions
void setDisplaySettingsButton(BtDisplaySettingsButton *button)
BtModuleList const & modules() const noexcept
CKeyChooser * keyChooser() const
virtual void initConnections()
QToolBar * mainToolBar() const noexcept
virtual void storeProfileSettings(BtConfigCore &windowConf) const
Stores the settings of this window to configuration.
BtActionCollection * actionCollection() const
void setDisplayOptions(DisplayOptions const &v)
QStringList m_moduleNames
void sigFilterOptionsChanged(const FilterOptions &filterOptions)
virtual void initActions()
void sigModulesChanged(const BtConstModuleList &modules)
FilterOptions const & filterOptions() const
virtual CSwordModuleInfo::ModuleType moduleType() const
std::unique_ptr< CSwordKey > const m_swordKey
virtual void setupMainWindowToolBars()
DisplayOptions m_displayOptions
void clearMainWindowToolBars()
CKeyChooser * m_keyChooser
virtual void lookupSwordKey(CSwordKey *)
void lookupKey(QString const &key)
void setKeyChooser(CKeyChooser *ck)
BTHistory * history() const noexcept
bool m_isInitialized
Whether init() has been called.
void sigModuleRemoved(int index)
void setFilterOptions(FilterOptions const &v)
BtConstModuleList constModules() const
BibleTime * btMainWindow()
virtual bool syncAllowed() const
void slotAddModule(int index, CSwordModuleInfo *module)
BtModelViewReadDisplay * displayWidget() const
QToolBar * m_buttonsToolBar
virtual void initToolbars()
virtual void applyProfileSettings(BtConfigCore const &windowConf)
Loads the settings of this window from configuration.
CSwordModuleInfo const * firstModule() const noexcept
CDisplayWindow(BtModuleList const &modules, bool const addTextHeaderToolbar, CMDIArea *const parent)
void sigModuleListChanged(BtModuleList newList)
~CDisplayWindow() override
BtModuleChooserBar * m_moduleChooserBar
void slotRemoveModule(int index)
BtModelViewReadDisplay * m_displayWidget
QStringList const & moduleNames() const noexcept
void sigModuleAdded(int index, QString module)
virtual QMenu * newDisplayWidgetPopupMenu()
void slotReplaceModule(int index, CSwordModuleInfo *newModule)
static void insertKeyboardActions(BtActionCollection *const a)
CSwordKey * getMouseClickedKey() const
void setBibleReference(const QString &reference)
virtual void copyDisplayedText()
QToolBar * buttonsToolBar() const noexcept
BtActionCollection *const m_actionCollection
QAction & initAction(Name &&name, Args &&... args)
void sigModuleReplaced(int index, QString newModule)
The class used to display lexicons.
struct CDisplayWindow::ActionsStruct::@7 print
BtToolBarPopupAction * forwardInHistory
BtToolBarPopupAction * backInHistory
struct CDisplayWindow::ActionsStruct::@6 save
struct CDisplayWindow::ActionsStruct::@5 copy