--- a/QTfrontend/ui/widget/HistoryLineEdit.h Mon Jan 30 23:20:28 2012 +0100
+++ b/QTfrontend/ui/widget/HistoryLineEdit.h Mon Jan 30 17:32:18 2012 -0500
@@ -38,72 +38,72 @@
/**
* @brief <code>QLineEdit</code> that features a history of previous contents,
* re-selectable using the arrow keys.
- *
+ *
* @author sheepluva
* @since 0.9.17
*/
class HistoryLineEdit : public QLineEdit
{
- Q_OBJECT
+ Q_OBJECT
-public:
- /**
- * @brief Class constructor.
- * @param parent parent QWidget.
- * @param maxHistorySize maximum amount of history entries kept.
- */
- HistoryLineEdit(QWidget * parent = 0, int maxHistorySize = 64);
+ public:
+ /**
+ * @brief Class constructor.
+ * @param parent parent QWidget.
+ * @param maxHistorySize maximum amount of history entries kept.
+ */
+ HistoryLineEdit(QWidget * parent = 0, int maxHistorySize = 64);
- /**
- * @brief Class destructor.
- */
- ~HistoryLineEdit();
+ /**
+ * @brief Class destructor.
+ */
+ ~HistoryLineEdit();
- /**
- * @brief Appends current text to history (if not only whitespaces);
- */
- void rememberCurrentText();
+ /**
+ * @brief Appends current text to history (if not only whitespaces);
+ */
+ void rememberCurrentText();
- /**
- * @brief Forget all history.
- */
- void reset();
+ /**
+ * @brief Forget all history.
+ */
+ void reset();
-public slots:
- /**
- * @brief Clears the contents.
- */
- void clear();
+ public slots:
+ /**
+ * @brief Clears the contents.
+ */
+ void clear();
-protected:
- /**
- * @brief Overrides method of parent class.
- * Arrow keys are used for navigating the history.
- *
- * All other keys are forwarded to the parent's method.
- *
- * @param event the key event.
- */
- virtual void keyPressEvent(QKeyEvent * event);
+ protected:
+ /**
+ * @brief Overrides method of parent class.
+ * Arrow keys are used for navigating the history.
+ *
+ * All other keys are forwarded to the parent's method.
+ *
+ * @param event the key event.
+ */
+ virtual void keyPressEvent(QKeyEvent * event);
-private:
- int m_maxHistorySize; ///< the maximum allowed size for the history
- int m_curHistEntryIdx; ///< the index of the displayed used entry
+ private:
+ int m_maxHistorySize; ///< the maximum allowed size for the history
+ int m_curHistEntryIdx; ///< the index of the displayed used entry
- QStringList * m_history; ///< history of previous inputs
+ QStringList * m_history; ///< history of previous inputs
- /**
- * @brief Navigates content history in the desired direction.
- *
- * Note: no wrap-around on purpose (so that holding down/up will get the
- * the user to the respective end rather than into an endless cycle :P)
- *
- * @param isGoingUp true: next older entry, false: next more recent entry.
- */
- void navigateHistory(bool isGoingUp);
+ /**
+ * @brief Navigates content history in the desired direction.
+ *
+ * Note: no wrap-around on purpose (so that holding down/up will get the
+ * the user to the respective end rather than into an endless cycle :P)
+ *
+ * @param isGoingUp true: next older entry, false: next more recent entry.
+ */
+ void navigateHistory(bool isGoingUp);
};