summaryrefslogtreecommitdiff
path: root/src/frontend/keychooser/bthistory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/keychooser/bthistory.h')
-rw-r--r--src/frontend/keychooser/bthistory.h97
1 files changed, 48 insertions, 49 deletions
diff --git a/src/frontend/keychooser/bthistory.h b/src/frontend/keychooser/bthistory.h
index 34e5fdb..9c09e10 100644
--- a/src/frontend/keychooser/bthistory.h
+++ b/src/frontend/keychooser/bthistory.h
@@ -1,7 +1,7 @@
//
// C++ Interface: BTHistory
//
-// Description:
+// Description:
//
//
// Author: The BibleTime team <info@bibletime.info>, (C) 2007
@@ -21,60 +21,59 @@ class CSwordKey;
class QAction;
class QWidget;
-class BTHistory: public QObject
-{
- Q_OBJECT
+class BTHistory: public QObject {
+ Q_OBJECT
-public:
- BTHistory(QWidget* parent);
- ~BTHistory() {};
+ public:
+ BTHistory(QWidget* parent);
+ ~BTHistory() {};
- /**
- * 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.
- */
- QList<QAction*> getBackList();
- /**
- * Return a list of Actions after the current point.
- */
- QList<QAction*> getFwList();
+ /**
+ * 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.
+ */
+ QList<QAction*> getBackList();
+ /**
+ * Return a list of Actions after the current point.
+ */
+ QList<QAction*> getFwList();
-public slots:
- /**
- * Add a new key to the history.
- */
- void add(CSwordKey* newKey);
- /**
- * Move the current point in history list.
- */
- void move(QAction*);
- /**
- * Go back one step in history.
- */
- void back();
- /**
- * Go forward one step in history.
- */
- void fw();
-
-signals:
- /**
- * Signal will be sent when the history has been changed (added, moved)
- */
- void historyChanged(bool backEnabled, bool fwEnabled);
- /**
- * Signal will be sent when the current point in history has moved
- */
- void historyMoved(QString& newKey);
+ public slots:
+ /**
+ * Add a new key to the history.
+ */
+ void add(CSwordKey* newKey);
+ /**
+ * Move the current point in history list.
+ */
+ void move(QAction*);
+ /**
+ * Go back one step in history.
+ */
+ void back();
+ /**
+ * Go forward one step in history.
+ */
+ void fw();
-private:
+ signals:
+ /**
+ * Signal will be sent when the history has been changed (added, moved)
+ */
+ void historyChanged(bool backEnabled, bool fwEnabled);
+ /**
+ * Signal will be sent when the current point in history has moved
+ */
+ void historyMoved(QString& newKey);
- void sendChangedSignal();
- bool class_invariant();
+ private:
- QList<QAction*> m_historyList;
- int m_index; //pointer to the current item; -1==empty, 0==first etc.
- bool m_inHistoryFunction; //to prevent recursive behaviour
+ void sendChangedSignal();
+ bool class_invariant();
+
+ QList<QAction*> m_historyList;
+ int m_index; //pointer to the current item; -1==empty, 0==first etc.
+ bool m_inHistoryFunction; //to prevent recursive behaviour
};
#endif