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

#include <bibletime.h>

Inheritance diagram for BibleTime:

Classes

class  ActionCollection
 

Public Slots

void autoScrollStop ()
 
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.
 
CDisplayWindowcreateReadDisplayWindow (QList< CSwordModuleInfo * > modules, QString const &key)
 Creates a new presenter in the MDI area according to the type of the module.
 
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)
 

Private Attributes

ActionCollectionm_actions
 
int m_autoScrollSpeed = 0
 
QTimer m_autoScrollTimer
 
QDockWidgetm_bookmarksDock
 
CBookmarkIndexm_bookmarksPage
 
BtBookshelfDockWidgetm_bookshelfDock
 
QActionm_debugWidgetAction = nullptr
 
QPointer< QWidgetm_debugWindow
 
QMenum_fileMenu
 
BtFindWidgetm_findWidget
 
QMenum_helpMenu
 
InfoDisplay::CInfoDisplaym_infoDisplay
 
QDockWidgetm_magDock
 
QToolBarm_mainToolBar
 
CMDIAream_mdi
 
QToolBarm_navToolBar
 
QMenum_openWindowsMenu
 
QMenum_scrollMenu
 
QPointer< Search::CSearchDialogm_searchDialog
 
QMenum_searchMenu
 
QMenum_settingsMenu
 
QMenum_toolBarsMenu
 
QToolBarm_toolsToolBar
 
QMenum_viewMenu
 
QActionGroup * m_windowArrangementActionGroup
 
QMenum_windowArrangementMenu
 
QMenum_windowDeleteProfileMenu
 
QActionGroup * m_windowLoadProfileActionGroup
 
QMenum_windowLoadProfileMenu
 
QMenum_windowsMenu
 
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 130 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 624 of file bibletime_slots.cpp.

References autoScrollStop(), and m_autoScrollSpeed.

Referenced by event().

◆ autoScrollPause

void BibleTime::autoScrollPause ( )
privateslot

Definition at line 613 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 472 of file bibletime_init.cpp.

References m_navToolBar, m_toolsToolBar, and m_worksToolBar.

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 485 of file bibletime_init.cpp.

References btConfig(), createToolBar(), m_mainToolBar, m_navToolBar, m_toolsToolBar, m_worksToolBar, BtConfig::session(), and BtConfigCore::value().

Referenced by initView().

◆ 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 182 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::addDisplayWindow(), CSwordModuleInfo::Bible, CSwordModuleInfo::Commentary, CSwordModuleInfo::GenericBook, CSwordModuleInfo::Lexicon, 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 564 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 292 of file bibletime.cpp.

References autoScrollAnyKey(), colorThemeChanged(), and event().

Referenced by event().

◆ getCurrentDisplay()

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

Definition at line 313 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 305 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 238 of file bibletime.h.

References m_infoDisplay.

Referenced by BtQmlInterface::timerEvent().

◆ initActions()

void BibleTime::initActions ( )
private

Initializes the action objects of the GUI.

Initializes the action objects of the GUI

Definition at line 539 of file bibletime_init.cpp.

References BibleTime::ActionCollection::help::aboutBibleTime, BibleTime::ActionCollection::arrangementMode, autoCascade, BibleTime::ActionCollection::autoCascade, BibleTime::ActionCollection::autoScrollDown, autoScrollPause(), BibleTime::ActionCollection::autoScrollUp, autoTabbed, autoTile, BibleTime::ActionCollection::autoTile, autoTileHorizontal, BibleTime::ActionCollection::autoTileHorizontally, autoTileVertical, BibleTime::ActionCollection::autoTileVertically, BibleTime::ActionCollection::help::bibleStudyHowto, BibleTime::ActionCollection::bookshelfManager, BT_CONNECT, btApp, btConfig(), BibleTime::ActionCollection::cascade, BibleTime::ActionCollection::closeAllWindows, BibleTime::ActionCollection::closeWindow, BibleTime::ActionCollection::configureBibleTime, BibleTime::ActionCollection::file, BibleTime::ActionCollection::fullscreen, BtConfigCore::group(), BibleTime::ActionCollection::help::handbook, BibleTime::ActionCollection::help, m_actions, m_bookmarksDock, m_bookshelfDock, m_debugWidgetAction, m_magDock, m_mdi, m_windowArrangementActionGroup, manual, BibleTime::ActionCollection::manual, openOnlineHelp_Handbook(), openOnlineHelp_Howto(), BibleTime::ActionCollection::openWork, BibleTime::ActionCollection::pauseAutoScroll, BibleTime::ActionCollection::quit, BibleTime::ActionCollection::saveAsNewSession, saveToNewProfile(), BibleTime::ActionCollection::scroll, BibleTime::ActionCollection::search, BibleTime::ActionCollection::searchOpenWorks, BibleTime::ActionCollection::searchStandardBible, BtConfig::session(), BibleTime::ActionCollection::settings, BibleTime::ActionCollection::showMainToolbar, BibleTime::ActionCollection::showNavigationToolbar, BibleTime::ActionCollection::showParallelTextHeadings, BibleTime::ActionCollection::showToolbarsInTextWindows, BibleTime::ActionCollection::showToolsToolbar, BibleTime::ActionCollection::showWorksToolbar, slotBookshelfWizard(), slotCascade(), slotOpenAboutDialog(), slotOpenTipDialog(), slotSearchDefaultBible(), slotSearchModules(), slotSettingsOptions(), slotShowDebugWindow(), slotTile(), slotTileHorizontal(), slotTileVertical(), slotToggleMainToolbar(), slotToggleNavigatorToolbar(), slotToggleTextWindowHeader(), slotToggleToolBarsInEachWindow(), slotToggleToolsToolbar(), slotToggleWorksToolbar(), slotUpdateWindowArrangementActions(), BibleTime::ActionCollection::tabbed, BibleTime::ActionCollection::tile, BibleTime::ActionCollection::tileHorizontally, BibleTime::ActionCollection::tileVertically, BibleTime::ActionCollection::help::tipOfTheDay, toggleFullscreen(), BibleTime::ActionCollection::toolbars, BtOpenWorkAction::triggered(), BibleTime::ActionCollection::view, and BibleTime::ActionCollection::windows.

Referenced by BibleTime().

◆ initConnections()

void BibleTime::initConnections ( )
private

◆ initMenubar()

void BibleTime::initMenubar ( )
private

Initializes the menubar of BibleTime.

Definition at line 704 of file bibletime_init.cpp.

References BibleTime::ActionCollection::help::aboutBibleTime, BibleTime::ActionCollection::arrangementMode, BibleTime::ActionCollection::autoCascade, BibleTime::ActionCollection::autoScrollDown, BibleTime::ActionCollection::autoScrollUp, BibleTime::ActionCollection::autoTile, BibleTime::ActionCollection::autoTileHorizontally, BibleTime::ActionCollection::autoTileVertically, BibleTime::ActionCollection::help::bibleStudyHowto, BibleTime::ActionCollection::bookshelfManager, BT_CONNECT, BibleTime::ActionCollection::cascade, BibleTime::ActionCollection::closeAllWindows, BibleTime::ActionCollection::closeWindow, BibleTime::ActionCollection::configureBibleTime, deleteProfile(), BibleTime::ActionCollection::file, BibleTime::ActionCollection::fullscreen, BibleTime::ActionCollection::help::handbook, BibleTime::ActionCollection::help, loadProfile(), m_actions, m_debugWidgetAction, m_fileMenu, m_helpMenu, m_openWindowsMenu, m_scrollMenu, m_searchMenu, m_settingsMenu, m_toolBarsMenu, m_viewMenu, m_windowArrangementMenu, m_windowDeleteProfileMenu, m_windowLoadProfileActionGroup, m_windowLoadProfileMenu, m_windowsMenu, BibleTime::ActionCollection::manual, BibleTime::ActionCollection::openWork, BibleTime::ActionCollection::pauseAutoScroll, BibleTime::ActionCollection::quit, refreshProfileMenus(), BibleTime::ActionCollection::saveAsNewSession, BibleTime::ActionCollection::scroll, BibleTime::ActionCollection::search, BibleTime::ActionCollection::searchOpenWorks, BibleTime::ActionCollection::searchStandardBible, BibleTime::ActionCollection::settings, BibleTime::ActionCollection::showBookmarks, BibleTime::ActionCollection::showBookshelf, BibleTime::ActionCollection::showMag, BibleTime::ActionCollection::showMainToolbar, BibleTime::ActionCollection::showNavigationToolbar, BibleTime::ActionCollection::showParallelTextHeadings, BibleTime::ActionCollection::showToolbarsInTextWindows, BibleTime::ActionCollection::showToolsToolbar, BibleTime::ActionCollection::showWorksToolbar, slotOpenWindowsMenuAboutToShow(), slotWindowMenuAboutToShow(), BibleTime::ActionCollection::tabbed, BibleTime::ActionCollection::tile, BibleTime::ActionCollection::tileHorizontally, BibleTime::ActionCollection::tileVertically, BibleTime::ActionCollection::help::tipOfTheDay, BibleTime::ActionCollection::toolbars, BibleTime::ActionCollection::view, and BibleTime::ActionCollection::windows.

Referenced by BibleTime().

◆ initToolbars()

void BibleTime::initToolbars ( )
private

◆ initView()

void BibleTime::initView ( )
private

◆ instance()

static BibleTime * BibleTime::instance ( )
inlinestaticnoexcept

◆ keyChooser()

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

Definition at line 479 of file bibletime_init.cpp.

References BT_ASSERT, and m_navToolBar.

◆ loadProfile [1/2]

void BibleTime::loadProfile ( QAction action)
privateslot

Loads the profile with the menu id ID.

Definition at line 412 of file bibletime_slots.cpp.

References BT_ASSERT, btConfig(), and loadProfile().

Referenced by initMenubar(), and loadProfile().

◆ loadProfile [2/2]

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

Loads the profile with the given key.

Definition at line 420 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 232 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 187 of file bibletime.cpp.

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

Referenced by slotModuleUnlock().

◆ navToolBar()

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

Definition at line 228 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 334 of file bibletime.cpp.

References m_findWidget, and BtFindWidget::showAndSelect().

Referenced by CDisplayWindow::CDisplayWindow().

◆ openOnlineHelp_Handbook

void BibleTime::openOnlineHelp_Handbook ( )
slot

Opens the handbook.

Definition at line 345 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 361 of file bibletime_slots.cpp.

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

Referenced by initActions().

◆ openSearchDialog()

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

◆ 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 247 of file bibletime.cpp.

References btConfig(), colorThemeChanged(), createReadDisplayWindow(), BtConfig::getDefaultSwordModuleByType(), CSwordVerseKey::index(), CSwordVerseKey::key(), m_mdi, CMDIArea::myTileVertical(), CSwordVerseKey::positionToTop(), 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 240 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 685 of file bibletime_slots.cpp.

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

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

◆ reloadProfile

void BibleTime::reloadProfile ( )
privateslot

◆ retranslateUi()

void BibleTime::retranslateUi ( )
private

◆ 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 72 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 387 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 321 of file bibletime.cpp.

References getCurrentDisplay(), and BtModelViewReadDisplay::setDisplayFocus().

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 264 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 326 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 637 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 76 of file bibletime_slots.cpp.

Referenced by initActions(), and initConnections().

◆ slotCascade

void BibleTime::slotCascade ( )
privateslot

◆ slotModuleUnlock

void BibleTime::slotModuleUnlock ( CSwordModuleInfo module)
privateslot

Definition at line 228 of file bibletime.cpp.

References moduleUnlock().

Referenced by initConnections().

◆ slotOpenAboutDialog

void BibleTime::slotOpenAboutDialog ( )
privateslot

Open the About Dialog.

Definition at line 377 of file bibletime_slots.cpp.

Referenced by initActions().

◆ slotOpenTipDialog

void BibleTime::slotOpenTipDialog ( )
slot

Opens the Tip Dialog.

Definition at line 382 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 96 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 336 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 313 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 307 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 716 of file bibletime_slots.cpp.

References BT_ASSERT, BT_CONNECT, m_debugWidgetAction, and m_debugWindow.

Referenced by initActions().

◆ slotTile

void BibleTime::slotTile ( )
privateslot

◆ slotTileHorizontal

void BibleTime::slotTileHorizontal ( )
privateslot

◆ slotTileVertical

void BibleTime::slotTileVertical ( )
privateslot

◆ slotToggleMainToolbar

void BibleTime::slotToggleMainToolbar ( )
privateslot

◆ 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 190 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

◆ 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 575 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 231 of file bibletime.h.

References m_worksToolBar.

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

Friends And Related Symbol Documentation

◆ CDisplayWindow

friend class CDisplayWindow
friend

Definition at line 134 of file bibletime.h.

Member Data Documentation

◆ m_actions

ActionCollection* BibleTime::m_actions
private

◆ m_autoScrollSpeed

int BibleTime::m_autoScrollSpeed = 0
private

◆ m_autoScrollTimer

QTimer BibleTime::m_autoScrollTimer
private

Definition at line 474 of file bibletime.h.

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

◆ m_bookmarksDock

QDockWidget* BibleTime::m_bookmarksDock
private

Definition at line 443 of file bibletime.h.

Referenced by initActions(), initView(), and retranslateUi().

◆ m_bookmarksPage

CBookmarkIndex* BibleTime::m_bookmarksPage
private

Definition at line 444 of file bibletime.h.

Referenced by initConnections(), and initView().

◆ m_bookshelfDock

BtBookshelfDockWidget* BibleTime::m_bookshelfDock
private

Definition at line 442 of file bibletime.h.

Referenced by initActions(), initConnections(), initView(), and ~BibleTime().

◆ m_debugWidgetAction

QAction* BibleTime::m_debugWidgetAction = nullptr
private

Definition at line 477 of file bibletime.h.

Referenced by initActions(), initMenubar(), retranslateUi(), and slotShowDebugWindow().

◆ m_debugWindow

QPointer<QWidget> BibleTime::m_debugWindow
private

Definition at line 478 of file bibletime.h.

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

◆ m_fileMenu

QMenu* BibleTime::m_fileMenu
private

Definition at line 453 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_findWidget

BtFindWidget* BibleTime::m_findWidget
private

◆ m_helpMenu

QMenu* BibleTime::m_helpMenu
private

Definition at line 466 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_infoDisplay

InfoDisplay::CInfoDisplay* BibleTime::m_infoDisplay
private

Definition at line 446 of file bibletime.h.

Referenced by infoDisplay(), initView(), and slotSettingsOptions().

◆ m_instance

BibleTime * BibleTime::m_instance = nullptr
staticprivate

Definition at line 439 of file bibletime.h.

Referenced by BibleTime(), and instance().

◆ m_magDock

QDockWidget* BibleTime::m_magDock
private

Definition at line 445 of file bibletime.h.

Referenced by initActions(), initView(), and retranslateUi().

◆ m_mainToolBar

QToolBar* BibleTime::m_mainToolBar
private

◆ m_mdi

CMDIArea* BibleTime::m_mdi
private

◆ m_navToolBar

QToolBar* BibleTime::m_navToolBar
private

◆ m_openWindowsMenu

QMenu* BibleTime::m_openWindowsMenu
private

◆ m_scrollMenu

QMenu* BibleTime::m_scrollMenu
private

Definition at line 456 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_searchDialog

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

Definition at line 475 of file bibletime.h.

Referenced by openSearchDialog().

◆ m_searchMenu

QMenu* BibleTime::m_searchMenu
private

Definition at line 457 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_settingsMenu

QMenu* BibleTime::m_settingsMenu
private

Definition at line 465 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_toolBarsMenu

QMenu* BibleTime::m_toolBarsMenu
private

Definition at line 455 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_toolsToolBar

QToolBar* BibleTime::m_toolsToolBar
private

◆ m_viewMenu

QMenu* BibleTime::m_viewMenu
private

Definition at line 454 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_windowArrangementActionGroup

QActionGroup* BibleTime::m_windowArrangementActionGroup
private

Definition at line 461 of file bibletime.h.

Referenced by initActions().

◆ m_windowArrangementMenu

QMenu* BibleTime::m_windowArrangementMenu
private

Definition at line 460 of file bibletime.h.

Referenced by initMenubar(), and retranslateUi().

◆ m_windowDeleteProfileMenu

QMenu* BibleTime::m_windowDeleteProfileMenu
private

Definition at line 464 of file bibletime.h.

Referenced by initMenubar(), refreshProfileMenus(), and retranslateUi().

◆ m_windowLoadProfileActionGroup

QActionGroup* BibleTime::m_windowLoadProfileActionGroup
private

Definition at line 463 of file bibletime.h.

Referenced by initMenubar(), and refreshProfileMenus().

◆ m_windowLoadProfileMenu

QMenu* BibleTime::m_windowLoadProfileMenu
private

Definition at line 462 of file bibletime.h.

Referenced by initMenubar(), refreshProfileMenus(), and retranslateUi().

◆ m_windowsMenu

QMenu* BibleTime::m_windowsMenu
private

Definition at line 458 of file bibletime.h.

Referenced by initMenubar(), retranslateUi(), and slotWindowMenuAboutToShow().

◆ m_worksToolBar

BtModuleChooserBar* BibleTime::m_worksToolBar
private

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