Merge branch 'master' of git+ssh://repo.or.cz/srv/git/jben
[jben.git] / src / panel_worddict.h
blobeb5439181a8fde4b7e1bbb48af72df1265129d0f
1 /*
2 Project: J-Ben
3 Author: Paul Goins
4 Website: http://www.vultaire.net/software/jben/
5 License: GNU General Public License (GPL) version 2
6 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt)
8 File: panel_worddict.h
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>
24 #ifndef panel_worddict_h
25 #define panel_worddict_h
27 #include "widget_dictpanel.h"
28 #include <glibmm/ustring.h>
30 class PanelWordDict : public DictPanel {
31 public:
32 PanelWordDict();
33 void Update();
34 void SetSearchString(const Glib::ustring& searchString);
35 private:
36 void UpdateOutput();
38 int currentIndex;
39 Glib::ustring currentSearchString;
41 void OnQueryEnter();
42 void OnSearch();
43 void OnPrevious();
44 void OnNext();
45 void OnRandom();
46 void OnIndexUpdate();
49 #endif