BibleTime
|
#include <bthistory.h>
Public Slots | |
void | add (CSwordKey *newKey) |
void | back () |
void | fw () |
void | move (QAction *) |
Signals | |
void | historyChanged (bool backEnabled, bool fwEnabled) |
void | historyMoved (QString newKey) |
Public Member Functions | |
BTHistory (QObject *parent) | |
QList< QAction * > | getBackList () |
QList< QAction * > | getFwList () |
Private Member Functions | |
bool | class_invariant () |
void | sendChangedSignal () |
Private Attributes | |
QList< QAction * > | m_historyList |
int | m_index = -1 |
bool | m_inHistoryFunction = false |
Definition at line 24 of file bthistory.h.
BTHistory::BTHistory | ( | QObject * | parent | ) |
Definition at line 25 of file bthistory.cpp.
References BT_ASSERT, and class_invariant().
|
slot |
Add a new key to the history.
Definition at line 29 of file bthistory.cpp.
References anonymous_namespace{bthistory.cpp}::ActionText, BT_ASSERT, class_invariant(), CSwordKey::key(), m_historyList, m_index, m_inHistoryFunction, and sendChangedSignal().
Referenced by CBookReadWindow::CBookReadWindow(), CDisplayWindow::setKeyChooser(), CDisplayWindow::setupMainWindowToolBars(), and CBookReadWindow::setupMainWindowToolBars().
|
slot |
Go back one step in history.
Definition at line 60 of file bthistory.cpp.
References BT_ASSERT, class_invariant(), m_historyList, m_index, and move().
Referenced by CDisplayWindow::initActions().
|
private |
Definition at line 102 of file bthistory.cpp.
References anonymous_namespace{bthistory.cpp}::ActionText, m_historyList, and m_index.
Referenced by add(), back(), BTHistory(), fw(), getBackList(), getFwList(), move(), and sendChangedSignal().
|
slot |
Go forward one step in history.
Definition at line 67 of file bthistory.cpp.
References BT_ASSERT, class_invariant(), m_historyList, m_index, and move().
Referenced by CDisplayWindow::initActions().
Return a list of Actions behind the current point, the first of the history list will be the last in the returned list and vice versa.
Definition at line 74 of file bthistory.cpp.
References BT_ASSERT, class_invariant(), m_historyList, and m_index.
Return a list of Actions after the current point.
Definition at line 85 of file bthistory.cpp.
References BT_ASSERT, class_invariant(), m_historyList, and m_index.
|
signal |
Signal will be sent when the history has been changed (added, moved)
Referenced by CDisplayWindow::initConnections(), and sendChangedSignal().
|
signal |
Signal will be sent when the current point in history has moved
Referenced by CBookReadWindow::CBookReadWindow(), move(), CDisplayWindow::setKeyChooser(), CDisplayWindow::setupMainWindowToolBars(), and CBookReadWindow::setupMainWindowToolBars().
|
slot |
Move the current point in history list.
Definition at line 45 of file bthistory.cpp.
References anonymous_namespace{bthistory.cpp}::ActionText, BT_ASSERT, class_invariant(), historyMoved(), m_historyList, m_index, m_inHistoryFunction, and sendChangedSignal().
Referenced by back(), fw(), and CDisplayWindow::initConnections().
|
private |
Definition at line 95 of file bthistory.cpp.
References BT_ASSERT, class_invariant(), historyChanged(), m_historyList, and m_index.
Definition at line 72 of file bthistory.h.
Referenced by add(), back(), class_invariant(), fw(), getBackList(), getFwList(), move(), and sendChangedSignal().
|
private |
Definition at line 73 of file bthistory.h.
Referenced by add(), back(), class_invariant(), fw(), getBackList(), getFwList(), move(), and sendChangedSignal().
|
private |
Definition at line 74 of file bthistory.h.