Added adding/sorting kanji by JLPT grade. A few other minor changes.
[jben.git] / src / dialog_addkanjibyjlpt.h
blobb1f6273344e347dcf2fb5a72e9514fcc7575a0c0
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: dialog_addkanjibyjlpt.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 dialog_addkanjibyjlpt_h
25 #define dialog_addkanjibyjlpt_h
27 #include "widget_storeddialog.h"
28 #include <gtkmm/button.h>
29 #include <gtkmm/comboboxtext.h>
31 class DialogAddKanjiByJLPT : public StoredDialog {
32 public:
33 DialogAddKanjiByJLPT(Gtk::Window& parent);
34 int GetLowLevel();
35 int GetHighLevel();
36 private:
37 void OnOK();
38 void OnCancel();
39 void OnLowValChange();
40 void OnHighValChange();
42 Gtk::ComboBoxText comboLowLevel, comboHighLevel;
43 Gtk::Button btnOK, btnCancel;
44 void OKProc();
45 void CancelProc();
48 #endif