1 // Copyright (c) 2008, Andrew BĂ©csi (andrewbecsi @ yahoo . co . uk)
3 // This program is free software, released under the GNU General Public License
4 // and you are welcome to redistribute it under certain conditions. It comes with
5 // ABSOLUTELY NO WARRANTY; for details read the GNU General Public License to be
6 // found in the file "COPYING" distributed with this program, or online at:
7 // http://www.gnu.org/copyleft/gpl.html
14 #include "ui_dictionary.h"
20 #include <QHttpResponseHeader>
22 class Dictionary
: public QDialog
, public Ui::Form
27 Dictionary(QWidget
*parent
= 0);
31 void translateClicked();
32 void httpRequestFinished(int requestId
, bool error
);
33 void readResponseHeader(const QHttpResponseHeader
&responseHeader
);
34 void enableTranslateButton();
35 void enablePrevButton();
36 void enableNextButton();
37 void setMode(int index
);
38 void setHits(int index
);
39 void setDic(int index
);
41 void deleteHistoryClicked();
46 void fillTable(QStringList word_list
,QStringList meaning_list
);
47 QStringList
filter(QString html
,QRegExp rx
);
48 void updateHistory(settings
&set
);
49 void updateUi(settings
&set
);
50 void translate(settings
&set
);
52 QList
<settings
> history
;
53 QList
<settings
>::iterator hIter
;
56 QStringList html_list
;
57 QStringList latin_list
;