BibleTime
|
#include <bttextwindowheader.h>
Public Slots | |
void | setModules (BtModuleList newModules) |
Signals | |
void | moduleAdded (int index, CSwordModuleInfo *module) |
void | moduleRemoved (int index) |
void | moduleReplaced (int index, CSwordModuleInfo *newModule) |
Public Member Functions | |
BtTextWindowHeader (CSwordModuleInfo::ModuleType modtype, BtModuleList modules, QWidget *window=nullptr) | |
Private Member Functions | |
BtTextWindowHeaderWidget * | addWidget () |
void | adjustWidgetCount (int const numWidgets) |
Ensures exactly numModules widgets. More... | |
void | initMenus () |
void | updateWidgets (BtModuleList const &modules) |
Private Attributes | |
CSwordModuleInfo::ModuleType const | m_moduleType |
QList< BtTextWindowHeaderWidget * > | m_widgetList |
Definition at line 24 of file bttextwindowheader.h.
BtTextWindowHeader::BtTextWindowHeader | ( | CSwordModuleInfo::ModuleType | modtype, |
BtModuleList | modules, | ||
QWidget * | window = nullptr |
||
) |
Definition at line 26 of file bttextwindowheader.cpp.
References addWidget(), BT_ASSERT, CSwordModuleInfo::GenericBook, and updateWidgets().
|
private |
Adds an empty widget to the header.
Definition at line 66 of file bttextwindowheader.cpp.
References BT_CONNECT, m_moduleType, m_widgetList, moduleAdded(), moduleRemoved(), moduleReplaced(), BtTextWindowHeaderWidget::sigModuleAdd(), BtTextWindowHeaderWidget::sigModuleRemove(), and BtTextWindowHeaderWidget::sigModuleReplace().
Referenced by adjustWidgetCount(), and BtTextWindowHeader().
|
private |
Ensures exactly numModules widgets.
[in] | numWidgets | The exact number of widgets required. |
Definition at line 49 of file bttextwindowheader.cpp.
References addWidget(), and m_widgetList.
Referenced by setModules().
|
private |
Called when backend has changed and menus must be created from scratch.
|
signal |
Referenced by addWidget(), and CDisplayWindow::initToolbars().
|
signal |
Referenced by addWidget(), and CDisplayWindow::initToolbars().
|
signal |
Referenced by addWidget(), and CDisplayWindow::initToolbars().
|
slot |
Definition at line 44 of file bttextwindowheader.cpp.
References adjustWidgetCount(), and updateWidgets().
Referenced by CDisplayWindow::initToolbars().
|
private |
Updates all widgets without recreating them.
Definition at line 79 of file bttextwindowheader.cpp.
References leftLikeParallelModules(), and m_widgetList.
Referenced by BtTextWindowHeader(), and setModules().
|
private |
Definition at line 64 of file bttextwindowheader.h.
Referenced by addWidget().
|
private |
Definition at line 63 of file bttextwindowheader.h.
Referenced by addWidget(), adjustWidgetCount(), and updateWidgets().