mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
38 lines
830 B
C++
38 lines
830 B
C++
|
/* This file is (c) 2013 Tvangeste <i.4m.l33t@yandex.ru>
|
||
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
||
|
|
||
|
#ifndef WORDLIST_HH
|
||
|
#define WORDLIST_HH
|
||
|
|
||
|
#include <QListWidget>
|
||
|
#include <QLineEdit>
|
||
|
|
||
|
#include "wordfinder.hh"
|
||
|
|
||
|
class WordList : public QListWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit WordList(QWidget * parent = 0);
|
||
|
void attachFinder(WordFinder * finder);
|
||
|
void setTranslateLine(QLineEdit * line)
|
||
|
{ translateLine = line; }
|
||
|
|
||
|
signals:
|
||
|
void statusBarMessage(QString const & message, int timeout = 0, QPixmap const & pixmap = QPixmap());
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
private slots:
|
||
|
void prefixMatchUpdated();
|
||
|
void prefixMatchFinished();
|
||
|
void updateMatchResults( bool finished );
|
||
|
|
||
|
private:
|
||
|
void refreshTranslateLine();
|
||
|
WordFinder * wordFinder;
|
||
|
QLineEdit * translateLine;
|
||
|
};
|
||
|
|
||
|
#endif // WORDLIST_HH
|