18 #include "../../util/btconnect.h"
19 #include "../../util/btmodules.h"
20 #include "../displaywindow/cdisplaywindow.h"
27 setAllowedAreas(Qt::TopToolBarArea);
68 Qt::QueuedConnection);
71 Qt::QueuedConnection);
74 Qt::QueuedConnection);
83 auto const & modules = window->
modules();
91 for (
int i = 0; i < modules.size(); i++) {
109 (i >= modules.size())
QList< CSwordModuleInfo * > BtModuleList
int leftLikeParallelModules(BtModuleList const &modules)
void updateButtonMenus(BtModuleList const &modules)
void associateWithWindow(CDisplayWindow *window)
BtModuleChooserBar(QWidget *parent)
QList< BtModuleChooserButton * > m_buttonList
CSwordModuleInfo::ModuleType m_moduleType
void adjustButtonCount(int const numButtons, CDisplayWindow *const window)
Ensures exactly numButtons buttons..
void setModules(BtModuleList newModules)
BtModuleChooserButton * addButton(CDisplayWindow *const window)
Adds an empty button to the toolbar.
The base class for all display windows of BibleTime.
BtModuleList const & modules() const noexcept
void slotAddModule(int index, CSwordModuleInfo *module)
void sigModuleListChanged(BtModuleList newList)
void slotRemoveModule(int index)
void slotReplaceModule(int index, CSwordModuleInfo *newModule)