19#include "../../backend/config/btconfigcore.h"
20#include "../../backend/keys/cswordversekey.h"
21#include "../../backend/managers/cswordbackend.h"
22#include "../../util/cresmgr.h"
23#include "../bibletime.h"
24#include "../keychooser/ckeychooser.h"
32 qaction =
new QAction(tr(
"Next book"),
this);
34 addAction(QStringLiteral(
"nextBook"), qaction);
36 qaction =
new QAction(tr(
"Previous book"),
this);
38 addAction(QStringLiteral(
"previousBook"), qaction);
40 qaction =
new QAction(tr(
"Next chapter"),
this);
42 addAction(QStringLiteral(
"nextChapter"), qaction);
44 qaction =
new QAction(tr(
"Previous chapter"),
this);
46 addAction(QStringLiteral(
"previousChapter"), qaction);
48 qaction =
new QAction(tr(
"Next verse"),
this);
50 addAction(QStringLiteral(
"nextVerse"), qaction);
52 qaction =
new QAction(tr(
"Previous verse"),
this);
54 addAction(QStringLiteral(
"previousVerse"), qaction);
56 qaction =
new QAction(CResMgr::displaywindows::commentaryWindow::syncWindow::icon(),
57 tr(
"Synchronize"),
this);
58 qaction->setCheckable(
true);
60 qaction->setToolTip(tr(
"Synchronize the displayed entry of this work with the active Bible window"));
65 QList<CSwordModuleInfo *>
const &
modules,
104 conf.
value<
bool>(QStringLiteral(
"syncEnabled"),
false));
QToolBar * toolsToolBar() 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.
The base class for all display windows of BibleTime.
QToolBar * buttonsToolBar() const noexcept
QAction & initAddAction(Args &&... args)
virtual void storeProfileSettings(BtConfigCore &windowConf) const
Stores the settings of this window to configuration.
CKeyChooser * keyChooser() const noexcept
virtual void setupMainWindowToolBars()
CSwordKey * swordKey() const noexcept
BibleTime * btMainWindow()
virtual void initToolbars()
virtual void applyProfileSettings(BtConfigCore const &windowConf)
Loads the settings of this window from configuration.
ActionCollection * actionCollection() const noexcept
BtModuleList const & modules() const noexcept
virtual void setKey(CSwordKey *key)=0
virtual void refreshContent()=0
static CSwordBackend & instance() noexcept
CSwordKey implementation for Sword's VerseKey.
void setLocale(char const *const locale)