BibleTime
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
BibleTime Class Referencefinal

#include <bibletime.h>

Inheritance diagram for BibleTime:

Public Slots

void autoScrollStop ()
 
static void insertKeyboardActions (BtActionCollection *const a)
 
void openOnlineHelp_Handbook ()
 
void openOnlineHelp_Howto ()
 
void processCommandline (bool ignoreSession, QString const &bibleKey)
 
void slotBookshelfWizard ()
 
void slotOpenTipDialog ()
 
void slotSettingsOptions ()
 

Signals

void colorThemeChanged ()
 
void toggledTextWindowHeader (bool newState)
 
void toggledTextWindowModuleChooser (bool newState)
 
void toggledTextWindowNavigator (bool newState)
 
void toggledTextWindowToolButtons (bool newState)
 

Public Member Functions

 BibleTime (BibleTimeApp &app, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 
void clearMdiToolBars ()
 
BtModelViewReadDisplaygetCurrentDisplay ()
 
CSwordModuleInfo const * getCurrentModule ()
 
InfoDisplay::CInfoDisplayinfoDisplay () const noexcept
 
CKeyChooserkeyChooser () const
 
QToolBarnavToolBar () const noexcept
 
void openFindWidget ()
 
void openSearchDialog (BtConstModuleList modules, QString const &searchText={})
 
void saveConfigSettings ()
 
void setDisplayFocus ()
 
QToolBartoolsToolBar () const noexcept
 
BtModuleChooserBarworksToolBar () const noexcept
 
 ~BibleTime () override
 

Static Public Member Functions

static BibleTimeinstance () noexcept
 
static bool moduleUnlock (CSwordModuleInfo *module, QWidget *parent=nullptr)
 

Private Slots

bool autoScrollAnyKey ()
 
void autoScrollPause ()
 
CDisplayWindowcreateReadDisplayWindow (CSwordModuleInfo *module, QString const &key={})
 Creates a new presenter in the MDI area according to the type of the module. More...
 
CDisplayWindowcreateReadDisplayWindow (QList< CSwordModuleInfo * > modules, QString const &key)
 Creates a new presenter in the MDI area according to the type of the module. More...
 
void deleteProfile (QAction *action)
 
void loadProfile (QAction *action)
 
void loadProfile (QString const &profileKey)
 
void moduleAbout (CSwordModuleInfo *module)
 
void refreshProfileMenus ()
 
void reloadProfile ()
 
void saveProfile ()
 
void saveToNewProfile ()
 
void slotActiveWindowChanged (QMdiSubWindow *window)
 
void slotAutoScroll ()
 
void slotCascade ()
 
void slotModuleUnlock (CSwordModuleInfo *module)
 
void slotOpenAboutDialog ()
 
void slotOpenWindowsMenuAboutToShow ()
 
void slotSearchDefaultBible ()
 
void slotSearchModules ()
 
void slotSetActiveSubWindow (QWidget *window)
 
void slotTile ()
 
void slotTileHorizontal ()
 
void slotTileVertical ()
 
void slotToggleMainToolbar ()
 
void slotToggleNavigatorToolbar ()
 
void slotToggleTextWindowHeader ()
 
void slotToggleToolBarsInEachWindow ()
 
void slotToggleToolsToolbar ()
 
void slotToggleWorksToolbar ()
 
void slotUpdateWindowArrangementActions (QAction *trigerredAction)
 
void slotWindowMenuAboutToShow ()
 
void toggleFullscreen ()
 

Private Member Functions

template<bool goingUp>
void autoScroll ()
 
void createCentralWidget ()
 
void createMenuAndToolBar ()
 
bool event (QEvent *event) override
 
void initActions ()
 
void initConnections ()
 
void initMenubar ()
 
void initToolbars ()
 
void initView ()
 
void refreshDisplayWindows () const
 
void retranslateUi ()
 
void showOrHideToolBars ()
 
void slotShowDebugWindow (bool)
 

Static Private Member Functions

static void retranslateUiActions (BtActionCollection *ac)
 

Private Attributes

QActionm_aboutBibleTimeAction
 
BtActionCollectionm_actionCollection
 
QActionm_autoScrollDownAction
 
QActionm_autoScrollPauseAction
 
int m_autoScrollSpeed = 0
 
QTimer m_autoScrollTimer
 
QActionm_autoScrollUpAction
 
QActionm_bibleStudyHowtoAction
 
QDockWidgetm_bookmarksDock
 
CBookmarkIndexm_bookmarksPage
 
BtBookshelfDockWidgetm_bookshelfDock
 
QActionm_bookshelfManagerAction
 
QActionm_bookshelfWizardAction
 
QActionm_debugWidgetAction = nullptr
 
QPointer< QWidgetm_debugWindow
 
QMenum_fileMenu
 
BtFindWidgetm_findWidget
 
QMenum_helpMenu
 
InfoDisplay::CInfoDisplaym_infoDisplay
 
QDockWidgetm_magDock
 
QToolBarm_mainToolBar
 
CMDIAream_mdi
 
QToolBarm_navToolBar
 
QActionm_openHandbookAction
 
QMenum_openWindowsMenu
 
BtOpenWorkActionm_openWorkAction
 
QActionm_quitAction
 
QMenum_scrollMenu
 
QPointer< Search::CSearchDialogm_searchDialog
 
QMenum_searchMenu
 
QActionm_searchOpenWorksAction
 
QActionm_searchStandardBibleAction
 
QActionm_setPreferencesAction
 
QMenum_settingsMenu
 
QActionm_showBookmarksAction
 
QActionm_showBookshelfAction
 
QActionm_showMagAction
 
QActionm_showMainWindowToolbarAction
 
QActionm_showTextAreaHeadersAction
 
QActionm_showTextWindowModuleChooserAction
 
QActionm_showTextWindowNavigationAction
 
QActionm_showTextWindowToolButtonsAction
 
QActionm_tipOfTheDayAction
 
QActionm_toolbarsInEachWindow
 
QMenum_toolBarsMenu
 
QToolBarm_toolsToolBar
 
QMenum_viewMenu
 
QActionGroup * m_windowArrangementActionGroup
 
QMenum_windowArrangementMenu
 
QActionm_windowAutoCascadeAction
 
QActionm_windowAutoTabbedAction
 
QActionm_windowAutoTileAction
 
QActionm_windowAutoTileHorizontalAction
 
QActionm_windowAutoTileVerticalAction
 
QActionm_windowCascadeAction
 
QActionm_windowCloseAction
 
QActionm_windowCloseAllAction
 
QMenum_windowDeleteProfileMenu
 
QActionm_windowFullscreenAction
 
QActionGroup * m_windowLoadProfileActionGroup
 
QMenum_windowLoadProfileMenu
 
QActionm_windowManualModeAction
 
QMenum_windowMenu
 
QActionm_windowSaveToNewProfileAction
 
QActionm_windowTileAction
 
QActionm_windowTileHorizontalAction
 
QActionm_windowTileVerticalAction
 
BtModuleChooserBarm_worksToolBar
 

Static Private Attributes

static BibleTimem_instance = nullptr
 

Friends

class CDisplayWindow
 

Detailed Description

BibleTime's main class. The main class of BibleTime. Here are the main widgets created.

This is the main class of BibleTime! This class creates the GUI, the QAction objects and connects to some slots. Please insert the creation of actions in initActions, the creation of widgets into initView and the connect(...) calls into initConnections. Reading from a config file on creation time should go into readSettings(), saving into saveSettings(). This is the general way of all BibleTime classes.

Definition at line 129 of file bibletime.h.

Constructor & Destructor Documentation

◆ BibleTime()

BibleTime::BibleTime ( BibleTimeApp app,
QWidget parent = nullptr,
Qt::WindowFlags  flags = Qt::WindowFlags() 
)

◆ ~BibleTime()

BibleTime::~BibleTime ( )
override

Member Function Documentation

◆ autoScroll()

template<bool goingUp>
template void BibleTime::autoScroll< false > ( )
private

◆ autoScrollAnyKey

bool BibleTime::autoScrollAnyKey ( )
privateslot

Definition at line 699 of file bibletime_slots.cpp.

References autoScrollStop(), and m_autoScrollSpeed.

Referenced by event().

◆ autoScrollPause

void BibleTime::autoScrollPause ( )
privateslot

Definition at line 688 of file bibletime_slots.cpp.

References m_autoScrollSpeed, m_autoScrollTimer, and setDisplayFocus().

Referenced by initActions().

◆ autoScrollStop

void BibleTime::autoScrollStop ( )
slot

◆ clearMdiToolBars()

void BibleTime::clearMdiToolBars ( )

Clears the actions of the MDI related toolbars.

Definition at line 307 of file bibletime_init.cpp.

Referenced by CMDIArea::CMDIArea(), and CDisplayWindow::init().

◆ colorThemeChanged

void BibleTime::colorThemeChanged ( )
signal

◆ createCentralWidget()

void BibleTime::createCentralWidget ( )
private

◆ createMenuAndToolBar()

void BibleTime::createMenuAndToolBar ( )
private

Creates the main window menu and toolbar.

Definition at line 320 of file bibletime_init.cpp.

References btConfig(), createToolBar(), BtConfig::session(), and BtConfigCore::value().

◆ createReadDisplayWindow [1/2]

CDisplayWindow * BibleTime::createReadDisplayWindow ( CSwordModuleInfo module,
QString const &  key = {} 
)
privateslot

Creates a new presenter in the MDI area according to the type of the module.

Definition at line 183 of file bibletime.cpp.

References createReadDisplayWindow().

◆ createReadDisplayWindow [2/2]

CDisplayWindow * BibleTime::createReadDisplayWindow ( QList< CSwordModuleInfo * >  modules,
QString const &  key 
)
privateslot

Creates a new presenter in the MDI area according to the type of the module.

Creates a new presenter in the MDI area according to the type of the module.

Definition at line 145 of file bibletime.cpp.

References CMDIArea::addSubWindow(), CSwordModuleInfo::Bible, CSwordModuleInfo::Commentary, CSwordModuleInfo::GenericBook, CSwordModuleInfo::Lexicon, CDisplayWindow::lookupKey(), and m_mdi.

Referenced by createReadDisplayWindow(), initConnections(), CDisplayWindow::lookupKey(), processCommandline(), reloadProfile(), and CDisplayWindow::setBibleReference().

◆ deleteProfile

void BibleTime::deleteProfile ( QAction action)
privateslot

Deletes the chosen session from the menu and from disk.

Todo:
Ask for confirmation

Definition at line 635 of file bibletime_slots.cpp.

References BT_ASSERT, btConfig(), BtConfig::deleteSession(), and refreshProfileMenus().

Referenced by initMenubar().

◆ event()

bool BibleTime::event ( QEvent *  event)
overrideprivate

Definition at line 293 of file bibletime.cpp.

References autoScrollAnyKey(), and colorThemeChanged().

◆ getCurrentDisplay()

BtModelViewReadDisplay * BibleTime::getCurrentDisplay ( )
Returns
a pointer to the display associated with the current window.

Definition at line 314 of file bibletime.cpp.

References m_mdi.

Referenced by setDisplayFocus(), and slotAutoScroll().

◆ getCurrentModule()

const CSwordModuleInfo * BibleTime::getCurrentModule ( )
Returns
a pointer to the module associated with the current window.

Definition at line 306 of file bibletime.cpp.

References m_mdi.

Referenced by InfoDisplay::CInfoDisplay::setInfo().

◆ infoDisplay()

InfoDisplay::CInfoDisplay* BibleTime::infoDisplay ( ) const
inlinenoexcept
Returns
a pointer to the info display.

Definition at line 159 of file bibletime.h.

References m_infoDisplay.

Referenced by BtQmlInterface::timerEvent().

◆ initActions()

void BibleTime::initActions ( )
private

◆ initConnections()

void BibleTime::initConnections ( )
private

◆ initMenubar()

void BibleTime::initMenubar ( )
private

◆ initToolbars()

void BibleTime::initToolbars ( )
private

Initializes the toolbars.

Definition at line 753 of file bibletime_init.cpp.

Referenced by BibleTime().

◆ initView()

void BibleTime::initView ( )
private

Initializes the view of this widget.

Initializes the view of this widget

Definition at line 48 of file bibletime_init.cpp.

References BT_CONNECT, CBookmarkIndex::magInfoProvided(), BtBookshelfDockWidget::moduleHovered(), InfoDisplay::CInfoDisplay::setInfo(), and slotAutoScroll().

Referenced by BibleTime().

◆ insertKeyboardActions

void BibleTime::insertKeyboardActions ( BtActionCollection *const  a)
staticslot

◆ instance()

static BibleTime* BibleTime::instance ( )
inlinestaticnoexcept

◆ keyChooser()

CKeyChooser * BibleTime::keyChooser ( ) const
Returns
the main window CKeyChooser.

Definition at line 314 of file bibletime_init.cpp.

References BT_ASSERT.

◆ loadProfile [1/2]

void BibleTime::loadProfile ( QAction action)
privateslot

Loads the profile with the menu id ID.

Definition at line 479 of file bibletime_slots.cpp.

References BT_ASSERT, and btConfig().

Referenced by initMenubar().

◆ loadProfile [2/2]

void BibleTime::loadProfile ( QString const &  profileKey)
privateslot

Loads the profile with the given key.

Definition at line 491 of file bibletime_slots.cpp.

References BT_ASSERT, btConfig(), m_mdi, refreshProfileMenus(), reloadProfile(), and saveProfile().

◆ moduleAbout

void BibleTime::moduleAbout ( CSwordModuleInfo module)
privateslot

Definition at line 233 of file bibletime.cpp.

Referenced by initConnections().

◆ moduleUnlock()

bool BibleTime::moduleUnlock ( CSwordModuleInfo module,
QWidget parent = nullptr 
)
static

Displays a dialog which asks the user an unlock key for the given module and tries to unlock the module. If an invalid unlock key is given, a warning message is issued and the user is again asked for the key.

Parameters
[in]moduleThe module to unlock.
[in]parentThe parent widget for the unlock dialogs.
Returns
whether the module was successfully unlocked.
Todo:
Write a proper unlocking dialog with integrated error messages.
Todo:
refactor this module reload

Definition at line 188 of file bibletime.cpp.

References BtInstallBackend::backend(), BT_ASSERT, CSwordModuleInfo::CipherKey, CSwordModuleInfo::config(), CSwordModuleInfo::getUnlockInfo(), BtMessageInputDialog::getUserInput(), CSwordBackend::instance(), CSwordModuleInfo::isLocked(), CSwordModuleInfo::name(), BtMessageInputDialog::Password, message::showWarning(), and CSwordModuleInfo::unlock().

Referenced by slotModuleUnlock().

◆ navToolBar()

QToolBar* BibleTime::navToolBar ( ) const
inlinenoexcept
Returns
a pointer to the Navigation toolbar.

Definition at line 149 of file bibletime.h.

References m_navToolBar.

Referenced by CDisplayWindow::clearMainWindowToolBars(), CDisplayWindow::setupMainWindowToolBars(), and CBookReadWindow::setupMainWindowToolBars().

◆ openFindWidget()

void BibleTime::openFindWidget ( )

Opens the BtFindWidget below the MDI area.

Definition at line 335 of file bibletime.cpp.

References m_findWidget, and BtFindWidget::showAndSelect().

Referenced by CDisplayWindow::initActions().

◆ openOnlineHelp_Handbook

void BibleTime::openOnlineHelp_Handbook ( )
slot

Opens the handbook.

Definition at line 412 of file bibletime_slots.cpp.

References util::directory::getHandbook(), and message::showCritical().

Referenced by initActions().

◆ openOnlineHelp_Howto

void BibleTime::openOnlineHelp_Howto ( )
slot

Opens the bible study howto.

Definition at line 428 of file bibletime_slots.cpp.

References util::directory::getHowto(), and message::showCritical().

Referenced by initActions().

◆ openSearchDialog()

void BibleTime::openSearchDialog ( BtConstModuleList  modules,
QString const &  searchText = {} 
)

Definition at line 327 of file bibletime.cpp.

References m_searchDialog.

Referenced by CDisplayWindow::initActions(), slotSearchDefaultBible(), and slotSearchModules().

◆ processCommandline

void BibleTime::processCommandline ( bool  ignoreSession,
QString const &  bibleKey 
)
slot

Processes the command-line options given to BibleTime.

Parameters
[in]ignoreSessionSpecifies whether –ignore-session was used.
[in]bibleKeyIf –open-default-bible was used, the bible key specified, or null otherwise.

Definition at line 248 of file bibletime.cpp.

References btConfig(), colorThemeChanged(), createReadDisplayWindow(), BtConfig::getDefaultSwordModuleByType(), CSwordVerseKey::index(), CSwordVerseKey::key(), m_mdi, CMDIArea::myTileVertical(), CSwordVerseKey::positionToTop(), anonymous_namespace{bibletime.cpp}::randInt(), reloadProfile(), CSwordVerseKey::setIndex(), BtConfigCore::setValue(), and BtConfigCore::sync().

◆ refreshDisplayWindows()

void BibleTime::refreshDisplayWindows ( ) const
private

Refreshes all presenter supporting at least in of the features given as parameter.

Refreshes all presenters.

Definition at line 241 of file bibletime.cpp.

References m_mdi.

Referenced by slotSettingsOptions().

◆ refreshProfileMenus

void BibleTime::refreshProfileMenus ( )
privateslot

Refreshes the save profile and load profile menus.

Slot to refresh the saved profile and load profile menus.

Definition at line 760 of file bibletime_slots.cpp.

References btConfig(), BtConfig::currentSessionKey(), m_windowDeleteProfileMenu, m_windowLoadProfileActionGroup, m_windowLoadProfileMenu, and BtConfig::sessionNames().

Referenced by deleteProfile(), loadProfile(), saveToNewProfile(), and slotSettingsOptions().

◆ reloadProfile

void BibleTime::reloadProfile ( )
privateslot

Reloads the current profile.

Bug:
The main window (except decors) is all black without this (not even hover over toolbar buttons work)
Bug:
The main window would not refresh at all. A call to this function or adjustSize() seems to fix this
Todo:
For windows in failedWindows ask whether to keep the settings / close windows etc

Definition at line 511 of file bibletime_slots.cpp.

References CMDIArea::ArrangementModeTile, BT_ASSERT, btConfig(), createReadDisplayWindow(), BtConfigCore::group(), CSwordBackend::instance(), m_findWidget, m_mdi, m_showMainWindowToolbarAction, m_showTextAreaHeadersAction, m_showTextWindowModuleChooserAction, m_showTextWindowNavigationAction, m_showTextWindowToolButtonsAction, m_toolbarsInEachWindow, m_windowFullscreenAction, BtConfig::session(), CMDIArea::setMDIArrangementMode(), message::setQActionCheckedNoTrigger(), showOrHideToolBars(), and CMDIArea::triggerWindowUpdate().

Referenced by loadProfile(), and processCommandline().

◆ retranslateUi()

void BibleTime::retranslateUi ( )
private

Retranslates the UI.

Definition at line 770 of file bibletime_init.cpp.

Referenced by BibleTime().

◆ retranslateUiActions()

void BibleTime::retranslateUiActions ( BtActionCollection ac)
staticprivate

Retranslates the UI actions.

retranslation for actions used in this class This is called for two different collections of actions One set is for the actual use in the menus, etc The second is used during the use of the configuration shortcut editor

Definition at line 808 of file bibletime_init.cpp.

References BtActionCollection::action().

◆ saveConfigSettings()

void BibleTime::saveConfigSettings ( )

Saves the configuration dialog settings, doesn't open dialog.

Save the settings, used when no settings have been saved before

Definition at line 135 of file bibletime_slots.cpp.

References BtConfigDialog::save().

◆ saveProfile

void BibleTime::saveProfile ( )
privateslot

Saves the current settings into the currently activated profile.

Definition at line 454 of file bibletime_slots.cpp.

References btConfig(), CMDIArea::getMDIArrangementMode(), m_findWidget, m_mdi, BtConfig::session(), BtConfigCore::setValue(), and CDisplayWindow::storeProfileSettings().

Referenced by loadProfile(), saveToNewProfile(), and ~BibleTime().

◆ saveToNewProfile

void BibleTime::saveToNewProfile ( )
privateslot

◆ setDisplayFocus()

void BibleTime::setDisplayFocus ( )

Sets the focus on the display widget.

Definition at line 322 of file bibletime.cpp.

References getCurrentDisplay().

Referenced by autoScroll(), and autoScrollPause().

◆ showOrHideToolBars()

void BibleTime::showOrHideToolBars ( )
private

Set the visibility of all tool bars according to the configuration taking the toolbarsInEachWindow setting into account.

Definition at line 331 of file bibletime_slots.cpp.

References btConfig(), BtConfigCore::group(), m_navToolBar, m_toolsToolBar, m_worksToolBar, BtConfig::session(), toggledTextWindowModuleChooser(), toggledTextWindowNavigator(), and toggledTextWindowToolButtons().

Referenced by reloadProfile(), and slotToggleToolBarsInEachWindow().

◆ slotActiveWindowChanged

void BibleTime::slotActiveWindowChanged ( QMdiSubWindow *  window)
privateslot

Definition at line 393 of file bibletime_slots.cpp.

References autoScrollStop(), and m_findWidget.

Referenced by createCentralWidget().

◆ slotAutoScroll

void BibleTime::slotAutoScroll ( )
privateslot

Automatically scrolls the display.

Definition at line 712 of file bibletime_slots.cpp.

References getCurrentDisplay(), and m_autoScrollSpeed.

Referenced by initView().

◆ slotBookshelfWizard

void BibleTime::slotBookshelfWizard ( )
slot

Opens the bookshelf wizard.

Definition at line 139 of file bibletime_slots.cpp.

Referenced by initActions(), and initConnections().

◆ slotCascade

void BibleTime::slotCascade ( )
privateslot

Definition at line 230 of file bibletime_slots.cpp.

References m_windowCascadeAction, and slotUpdateWindowArrangementActions().

Referenced by initActions().

◆ slotModuleUnlock

void BibleTime::slotModuleUnlock ( CSwordModuleInfo module)
privateslot

Definition at line 229 of file bibletime.cpp.

References moduleUnlock().

Referenced by initConnections().

◆ slotOpenAboutDialog

void BibleTime::slotOpenAboutDialog ( )
privateslot

Open the About Dialog.

Definition at line 444 of file bibletime_slots.cpp.

Referenced by initActions().

◆ slotOpenTipDialog

void BibleTime::slotOpenTipDialog ( )
slot

Opens the Tip Dialog.

Definition at line 449 of file bibletime_slots.cpp.

Referenced by initActions().

◆ slotOpenWindowsMenuAboutToShow

void BibleTime::slotOpenWindowsMenuAboutToShow ( )
privateslot

Called when the open windows menu is about to show.

Is called just before the open windows menu is shown.

Definition at line 159 of file bibletime_slots.cpp.

References BT_ASSERT, BT_CONNECT, m_mdi, m_openWindowsMenu, slotSetActiveSubWindow(), and CMDIArea::usableWindowList().

Referenced by initMenubar().

◆ slotSearchDefaultBible

void BibleTime::slotSearchDefaultBible ( )
privateslot

Called for search default bible.

Definition at line 403 of file bibletime_slots.cpp.

References btConfig(), and openSearchDialog().

Referenced by initActions().

◆ slotSearchModules

void BibleTime::slotSearchModules ( )
privateslot

Called when search button is pressed.

Definition at line 380 of file bibletime_slots.cpp.

References CDisplayWindow::constModules(), m_mdi, and openSearchDialog().

Referenced by initActions().

◆ slotSetActiveSubWindow

void BibleTime::slotSetActiveSubWindow ( QWidget window)
privateslot

Used to set the active menu.

Sets the active window.

Definition at line 374 of file bibletime_slots.cpp.

References m_mdi.

Referenced by slotOpenWindowsMenuAboutToShow().

◆ slotSettingsOptions

void BibleTime::slotSettingsOptions ( )
slot

◆ slotShowDebugWindow()

void BibleTime::slotShowDebugWindow ( bool  show)
private

Definition at line 791 of file bibletime_slots.cpp.

References BT_ASSERT, BT_CONNECT, m_debugWidgetAction, and m_debugWindow.

Referenced by initActions().

◆ slotTile

void BibleTime::slotTile ( )
privateslot

Definition at line 226 of file bibletime_slots.cpp.

References m_windowTileAction, and slotUpdateWindowArrangementActions().

Referenced by initActions().

◆ slotTileHorizontal

void BibleTime::slotTileHorizontal ( )
privateslot

Definition at line 238 of file bibletime_slots.cpp.

References m_windowTileHorizontalAction, and slotUpdateWindowArrangementActions().

Referenced by initActions().

◆ slotTileVertical

void BibleTime::slotTileVertical ( )
privateslot

Definition at line 234 of file bibletime_slots.cpp.

References m_windowTileVerticalAction, and slotUpdateWindowArrangementActions().

Referenced by initActions().

◆ slotToggleMainToolbar

void BibleTime::slotToggleMainToolbar ( )
privateslot

Shows or hides the main toolbar.

Shows/hides the toolbar

Definition at line 243 of file bibletime_slots.cpp.

References BT_ASSERT, btConfig(), BtConfigCore::group(), m_mainToolBar, m_showMainWindowToolbarAction, BtConfig::session(), and BtConfigCore::value().

Referenced by initActions().

◆ slotToggleNavigatorToolbar

void BibleTime::slotToggleNavigatorToolbar ( )
privateslot

◆ slotToggleTextWindowHeader

void BibleTime::slotToggleTextWindowHeader ( )
privateslot

Shows or hides the text window text area headers and sets configuration that newly opened windows don't user headers.

Definition at line 257 of file bibletime_slots.cpp.

References btConfig(), BtConfigCore::group(), BtConfig::session(), toggledTextWindowHeader(), and BtConfigCore::value().

Referenced by initActions().

◆ slotToggleToolBarsInEachWindow

void BibleTime::slotToggleToolBarsInEachWindow ( )
privateslot

◆ slotToggleToolsToolbar

void BibleTime::slotToggleToolsToolbar ( )
privateslot

◆ slotToggleWorksToolbar

void BibleTime::slotToggleWorksToolbar ( )
privateslot

◆ slotUpdateWindowArrangementActions

void BibleTime::slotUpdateWindowArrangementActions ( QAction trigerredAction)
privateslot

◆ slotWindowMenuAboutToShow

void BibleTime::slotWindowMenuAboutToShow ( )
privateslot

Called when the window menu is about to show.

Is called just before the window menu is shown.

Definition at line 143 of file bibletime_slots.cpp.

References BT_ASSERT, m_mdi, m_openWindowsMenu, m_windowCascadeAction, m_windowCloseAction, m_windowCloseAllAction, m_windowMenu, m_windowTileAction, m_windowTileHorizontalAction, and m_windowTileVerticalAction.

Referenced by initMenubar().

◆ toggledTextWindowHeader

void BibleTime::toggledTextWindowHeader ( bool  newState)
signal

◆ toggledTextWindowModuleChooser

void BibleTime::toggledTextWindowModuleChooser ( bool  newState)
signal

◆ toggledTextWindowNavigator

void BibleTime::toggledTextWindowNavigator ( bool  newState)
signal

◆ toggledTextWindowToolButtons

void BibleTime::toggledTextWindowToolButtons ( bool  newState)
signal

◆ toggleFullscreen

void BibleTime::toggleFullscreen ( )
privateslot

Toggles between normal and fullscreen mode.

Definition at line 650 of file bibletime_slots.cpp.

References m_mdi, and CMDIArea::triggerWindowUpdate().

Referenced by initActions().

◆ toolsToolBar()

QToolBar* BibleTime::toolsToolBar ( ) const
inlinenoexcept

◆ worksToolBar()

BtModuleChooserBar* BibleTime::worksToolBar ( ) const
inlinenoexcept
Returns
a pointer to the Works toolbar.

Definition at line 152 of file bibletime.h.

References m_worksToolBar.

Referenced by CDisplayWindow::setupMainWindowToolBars(), and CBookReadWindow::setupMainWindowToolBars().

Friends And Related Function Documentation

◆ CDisplayWindow

friend class CDisplayWindow
friend

Definition at line 133 of file bibletime.h.

Member Data Documentation

◆ m_aboutBibleTimeAction

QAction* BibleTime::m_aboutBibleTimeAction
private

Definition at line 436 of file bibletime.h.

◆ m_actionCollection

BtActionCollection* BibleTime::m_actionCollection
private

Definition at line 439 of file bibletime.h.

Referenced by slotSettingsOptions().

◆ m_autoScrollDownAction

QAction* BibleTime::m_autoScrollDownAction
private

Definition at line 442 of file bibletime.h.

◆ m_autoScrollPauseAction

QAction* BibleTime::m_autoScrollPauseAction
private

Definition at line 443 of file bibletime.h.

Referenced by autoScroll(), and autoScrollStop().

◆ m_autoScrollSpeed

int BibleTime::m_autoScrollSpeed = 0
private

◆ m_autoScrollTimer

QTimer BibleTime::m_autoScrollTimer
private

Definition at line 451 of file bibletime.h.

Referenced by autoScroll(), autoScrollPause(), and autoScrollStop().

◆ m_autoScrollUpAction

QAction* BibleTime::m_autoScrollUpAction
private

Definition at line 441 of file bibletime.h.

◆ m_bibleStudyHowtoAction

QAction* BibleTime::m_bibleStudyHowtoAction
private

Definition at line 435 of file bibletime.h.

◆ m_bookmarksDock

QDockWidget* BibleTime::m_bookmarksDock
private

Definition at line 370 of file bibletime.h.

◆ m_bookmarksPage

CBookmarkIndex* BibleTime::m_bookmarksPage
private

Definition at line 371 of file bibletime.h.

◆ m_bookshelfDock

BtBookshelfDockWidget* BibleTime::m_bookshelfDock
private

Definition at line 369 of file bibletime.h.

Referenced by ~BibleTime().

◆ m_bookshelfManagerAction

QAction* BibleTime::m_bookshelfManagerAction
private

Definition at line 429 of file bibletime.h.

◆ m_bookshelfWizardAction

QAction* BibleTime::m_bookshelfWizardAction
private

Definition at line 430 of file bibletime.h.

◆ m_debugWidgetAction

QAction* BibleTime::m_debugWidgetAction = nullptr
private

Definition at line 454 of file bibletime.h.

Referenced by slotShowDebugWindow().

◆ m_debugWindow

QPointer<QWidget> BibleTime::m_debugWindow
private

Definition at line 455 of file bibletime.h.

Referenced by slotShowDebugWindow(), and ~BibleTime().

◆ m_fileMenu

QMenu* BibleTime::m_fileMenu
private

Definition at line 381 of file bibletime.h.

◆ m_findWidget

BtFindWidget* BibleTime::m_findWidget
private

Definition at line 448 of file bibletime.h.

Referenced by openFindWidget(), reloadProfile(), saveProfile(), and slotActiveWindowChanged().

◆ m_helpMenu

QMenu* BibleTime::m_helpMenu
private

Definition at line 433 of file bibletime.h.

◆ m_infoDisplay

InfoDisplay::CInfoDisplay* BibleTime::m_infoDisplay
private

Definition at line 373 of file bibletime.h.

Referenced by infoDisplay(), and slotSettingsOptions().

◆ m_instance

BibleTime * BibleTime::m_instance = nullptr
staticprivate

Definition at line 366 of file bibletime.h.

Referenced by BibleTime(), and instance().

◆ m_magDock

QDockWidget* BibleTime::m_magDock
private

Definition at line 372 of file bibletime.h.

◆ m_mainToolBar

QToolBar* BibleTime::m_mainToolBar
private

Definition at line 375 of file bibletime.h.

Referenced by slotToggleMainToolbar().

◆ m_mdi

CMDIArea* BibleTime::m_mdi
private

◆ m_navToolBar

QToolBar* BibleTime::m_navToolBar
private

Definition at line 376 of file bibletime.h.

Referenced by navToolBar(), showOrHideToolBars(), and slotToggleNavigatorToolbar().

◆ m_openHandbookAction

QAction* BibleTime::m_openHandbookAction
private

Definition at line 434 of file bibletime.h.

◆ m_openWindowsMenu

QMenu* BibleTime::m_openWindowsMenu
private

Definition at line 406 of file bibletime.h.

Referenced by slotOpenWindowsMenuAboutToShow(), and slotWindowMenuAboutToShow().

◆ m_openWorkAction

BtOpenWorkAction* BibleTime::m_openWorkAction
private

Definition at line 382 of file bibletime.h.

◆ m_quitAction

QAction* BibleTime::m_quitAction
private

Definition at line 383 of file bibletime.h.

◆ m_scrollMenu

QMenu* BibleTime::m_scrollMenu
private

Definition at line 391 of file bibletime.h.

◆ m_searchDialog

QPointer<Search::CSearchDialog> BibleTime::m_searchDialog
private

Definition at line 452 of file bibletime.h.

Referenced by openSearchDialog().

◆ m_searchMenu

QMenu* BibleTime::m_searchMenu
private

Definition at line 400 of file bibletime.h.

◆ m_searchOpenWorksAction

QAction* BibleTime::m_searchOpenWorksAction
private

Definition at line 401 of file bibletime.h.

◆ m_searchStandardBibleAction

QAction* BibleTime::m_searchStandardBibleAction
private

Definition at line 402 of file bibletime.h.

◆ m_setPreferencesAction

QAction* BibleTime::m_setPreferencesAction
private

Definition at line 428 of file bibletime.h.

◆ m_settingsMenu

QMenu* BibleTime::m_settingsMenu
private

Definition at line 427 of file bibletime.h.

◆ m_showBookmarksAction

QAction* BibleTime::m_showBookmarksAction
private

Definition at line 388 of file bibletime.h.

◆ m_showBookshelfAction

QAction* BibleTime::m_showBookshelfAction
private

Definition at line 387 of file bibletime.h.

◆ m_showMagAction

QAction* BibleTime::m_showMagAction
private

Definition at line 389 of file bibletime.h.

◆ m_showMainWindowToolbarAction

QAction* BibleTime::m_showMainWindowToolbarAction
private

Definition at line 392 of file bibletime.h.

Referenced by reloadProfile(), and slotToggleMainToolbar().

◆ m_showTextAreaHeadersAction

QAction* BibleTime::m_showTextAreaHeadersAction
private

Definition at line 393 of file bibletime.h.

Referenced by reloadProfile().

◆ m_showTextWindowModuleChooserAction

QAction* BibleTime::m_showTextWindowModuleChooserAction
private

Definition at line 395 of file bibletime.h.

Referenced by reloadProfile().

◆ m_showTextWindowNavigationAction

QAction* BibleTime::m_showTextWindowNavigationAction
private

Definition at line 394 of file bibletime.h.

Referenced by reloadProfile().

◆ m_showTextWindowToolButtonsAction

QAction* BibleTime::m_showTextWindowToolButtonsAction
private

Definition at line 396 of file bibletime.h.

Referenced by reloadProfile().

◆ m_tipOfTheDayAction

QAction* BibleTime::m_tipOfTheDayAction
private

Definition at line 437 of file bibletime.h.

◆ m_toolbarsInEachWindow

QAction* BibleTime::m_toolbarsInEachWindow
private

Definition at line 397 of file bibletime.h.

Referenced by reloadProfile().

◆ m_toolBarsMenu

QMenu* BibleTime::m_toolBarsMenu
private

Definition at line 390 of file bibletime.h.

◆ m_toolsToolBar

QToolBar* BibleTime::m_toolsToolBar
private

Definition at line 378 of file bibletime.h.

Referenced by showOrHideToolBars(), slotToggleToolsToolbar(), and toolsToolBar().

◆ m_viewMenu

QMenu* BibleTime::m_viewMenu
private

Definition at line 386 of file bibletime.h.

◆ m_windowArrangementActionGroup

QActionGroup* BibleTime::m_windowArrangementActionGroup
private

Definition at line 413 of file bibletime.h.

◆ m_windowArrangementMenu

QMenu* BibleTime::m_windowArrangementMenu
private

Definition at line 412 of file bibletime.h.

◆ m_windowAutoCascadeAction

QAction* BibleTime::m_windowAutoCascadeAction
private

Definition at line 414 of file bibletime.h.

Referenced by slotUpdateWindowArrangementActions().

◆ m_windowAutoTabbedAction

QAction* BibleTime::m_windowAutoTabbedAction
private

Definition at line 416 of file bibletime.h.

Referenced by slotUpdateWindowArrangementActions().

◆ m_windowAutoTileAction

QAction* BibleTime::m_windowAutoTileAction
private

Definition at line 415 of file bibletime.h.

Referenced by slotUpdateWindowArrangementActions().

◆ m_windowAutoTileHorizontalAction

QAction* BibleTime::m_windowAutoTileHorizontalAction
private

Definition at line 418 of file bibletime.h.

Referenced by slotUpdateWindowArrangementActions().

◆ m_windowAutoTileVerticalAction

QAction* BibleTime::m_windowAutoTileVerticalAction
private

Definition at line 417 of file bibletime.h.

Referenced by slotUpdateWindowArrangementActions().

◆ m_windowCascadeAction

QAction* BibleTime::m_windowCascadeAction
private

◆ m_windowCloseAction

QAction* BibleTime::m_windowCloseAction
private

Definition at line 419 of file bibletime.h.

Referenced by slotWindowMenuAboutToShow().

◆ m_windowCloseAllAction

QAction* BibleTime::m_windowCloseAllAction
private

Definition at line 420 of file bibletime.h.

Referenced by slotWindowMenuAboutToShow().

◆ m_windowDeleteProfileMenu

QMenu* BibleTime::m_windowDeleteProfileMenu
private

Definition at line 424 of file bibletime.h.

Referenced by refreshProfileMenus().

◆ m_windowFullscreenAction

QAction* BibleTime::m_windowFullscreenAction
private

Definition at line 445 of file bibletime.h.

Referenced by reloadProfile().

◆ m_windowLoadProfileActionGroup

QActionGroup* BibleTime::m_windowLoadProfileActionGroup
private

Definition at line 423 of file bibletime.h.

Referenced by refreshProfileMenus().

◆ m_windowLoadProfileMenu

QMenu* BibleTime::m_windowLoadProfileMenu
private

Definition at line 422 of file bibletime.h.

Referenced by refreshProfileMenus().

◆ m_windowManualModeAction

QAction* BibleTime::m_windowManualModeAction
private

Definition at line 411 of file bibletime.h.

Referenced by slotUpdateWindowArrangementActions().

◆ m_windowMenu

QMenu* BibleTime::m_windowMenu
private

Definition at line 405 of file bibletime.h.

Referenced by slotWindowMenuAboutToShow().

◆ m_windowSaveToNewProfileAction

QAction* BibleTime::m_windowSaveToNewProfileAction
private

Definition at line 421 of file bibletime.h.

◆ m_windowTileAction

QAction* BibleTime::m_windowTileAction
private

◆ m_windowTileHorizontalAction

QAction* BibleTime::m_windowTileHorizontalAction
private

◆ m_windowTileVerticalAction

QAction* BibleTime::m_windowTileVerticalAction
private

◆ m_worksToolBar

BtModuleChooserBar* BibleTime::m_worksToolBar
private

Definition at line 377 of file bibletime.h.

Referenced by showOrHideToolBars(), slotToggleWorksToolbar(), and worksToolBar().


The documentation for this class was generated from the following files: