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
15 class Dictionary
: public QDialog
, public Ui::Form
20 Dictionary(QWidget
*parent
= 0);
24 void translateClicked();
25 void httpRequestFinished(int requestId
, bool error
);
26 void readResponseHeader(const QHttpResponseHeader
&responseHeader
);
27 void enableTranslateButton();
28 void enablePrevButton();
29 void enableNextButton();
30 void setMode(int index
);
31 void setHits(int index
);
32 void setDic(int index
);
34 void deleteHistoryClicked();
39 void fillTable(QStringList word_list
,QStringList meaning_list
);
40 QStringList
filter(QString html
,QRegExp rx
);
41 void updateHistory(settings
&set
);
42 void updateUi(settings
&set
);
43 void translate(settings
&set
);
45 QList
<settings
> history
;
46 QList
<settings
>::iterator hIter
;
50 QStringList html_list
;
51 QStringList latin_list
;