16 #include <QDockWidget>
19 #include "../../backend/config/btconfigcore.h"
20 #include "../../backend/drivers/btmodulelist.h"
21 #include "../../backend/drivers/cswordmoduleinfo.h"
22 #include "../../util/btassert.h"
23 #include "../../util/btconnect.h"
24 #include "../../util/cresmgr.h"
25 #include "../bibletime.h"
26 #include "../display/btmodelviewreaddisplay.h"
27 #include "../keychooser/bthistory.h"
28 #include "../keychooser/cbooktreechooser.h"
29 #include "../keychooser/ckeychooser.h"
45 Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
65 if (conf.
value<
bool>(QStringLiteral(
"treeShown"),
true)
93 tr(
"Toggle tree view"), a);
94 qaction->setCheckable(
true);
96 a->
addAction(QStringLiteral(
"toggleTree"), qaction);
void historyMoved(QString newKey)
void add(CSwordKey *newKey)
QToolBar * toolsToolBar() const noexcept
QToolBar * navToolBar() const noexcept
BtModuleChooserBar * worksToolBar() const noexcept
void readShortcuts(QString const &group)
Read shortcuts from config.
void addAction(QString const &name, QAction *const action)
QAction & action(QString const &name) const
T value(QString const &key, T const &defaultValue=T()) const
Returns the settings value for the given global key.
void setValue(QString const &key, T const &value)
Sets a value for a key.
void associateWithWindow(CDisplayWindow *window)
CBookReadWindow(QList< CSwordModuleInfo * > const &modules, CMDIArea *parent)
void initConnections() override
CBookTreeChooser * m_treeChooser
void applyProfileSettings(BtConfigCore const &windowConf) override
Loads the settings of this window from configuration.
void modulesChanged() override
void storeProfileSettings(BtConfigCore &windowConf) const override
Stores the settings of this window to configuration.
QDockWidget * m_treeChooserDock
void initToolbars() override
static void insertKeyboardActions(BtActionCollection *const a)
void initActions() override
void setupMainWindowToolBars() override
void updateKey(CSwordKey *) final override
void setModules(BtConstModuleList const &modules, bool refresh=true) final override
The base class for all display windows of BibleTime.
virtual void modulesChanged()
void sigKeyChanged(CSwordKey *key)
struct CDisplayWindow::ActionsStruct m_actions
void setDisplaySettingsButton(BtDisplaySettingsButton *button)
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
virtual void initActions()
virtual void lookupSwordKey(CSwordKey *)
BTHistory * history() const noexcept
BtConstModuleList constModules() const
BibleTime * btMainWindow()
virtual void applyProfileSettings(BtConfigCore const &windowConf)
Loads the settings of this window from configuration.
QToolBar * buttonsToolBar() const noexcept
void handleHistoryMoved(QString const &newKey)
void keyChanged(CSwordKey *newKey)
virtual void updateKey(CSwordKey *key)=0
static CKeyChooser * createInstance(const BtConstModuleList &modules, CSwordKey *key, QWidget *parent)
BtToolBarPopupAction * forwardInHistory
BtToolBarPopupAction * backInHistory