Prepare 1.0 alpha3 release.
[tagua/yd.git] / src / histlineedit.h
blobf9f9516e807ba3853cb74bc8ed8e914d71b6c696
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef HISTLINEEDIT_H
12 #define HISTLINEEDIT_H
14 #include <vector>
15 #include <QLineEdit>
17 class HistLineEdit : public QLineEdit {
18 Q_OBJECT
19 std::vector<QString> history;
20 uint current;
22 void setHistoryText(uint index);
23 QString buffer;
24 public:
25 HistLineEdit(QWidget* parent);
26 protected:
27 void keyPressEvent(QKeyEvent*);
28 public Q_SLOTS:
29 void updateHistory();
30 Q_SIGNALS:
31 void pageUp();
32 void pageDown();
33 void receivedInput(const QString&);
36 #endif // HISTLINEEDIT_H