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"
31 qaction =
new QAction(tr(
"Next book"), a);
33 a->
addAction(QStringLiteral(
"nextBook"), qaction);
35 qaction =
new QAction(tr(
"Previous book"), a);
37 a->
addAction(QStringLiteral(
"previousBook"), qaction);
39 qaction =
new QAction(tr(
"Next chapter"), a);
41 a->
addAction(QStringLiteral(
"nextChapter"), qaction);
43 qaction =
new QAction(tr(
"Previous chapter"), a);
45 a->
addAction(QStringLiteral(
"previousChapter"), qaction);
47 qaction =
new QAction(tr(
"Next verse"), a);
49 a->
addAction(QStringLiteral(
"nextVerse"), qaction);
51 qaction =
new QAction(tr(
"Previous verse"), a);
53 a->
addAction(QStringLiteral(
"previousVerse"), qaction);
55 qaction =
new QAction(CResMgr::displaywindows::commentaryWindow::syncWindow::icon(),
56 tr(
"Synchronize"), a);
57 qaction->setCheckable(
true);
59 qaction->setToolTip(tr(
"Synchronize the displayed entry of this work with the active Bible window"));
98 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.
QAction & initAddAction(Args &&... args)
CKeyChooser * keyChooser() const
virtual void storeProfileSettings(BtConfigCore &windowConf) const
Stores the settings of this window to configuration.
BtActionCollection * actionCollection() const
virtual void initActions()
virtual void setupMainWindowToolBars()
BibleTime * btMainWindow()
virtual void initToolbars()
virtual void applyProfileSettings(BtConfigCore const &windowConf)
Loads the settings of this window from configuration.
QToolBar * buttonsToolBar() 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)