-
Notifications
You must be signed in to change notification settings - Fork 10
/
groupimportform.h
54 lines (43 loc) · 1.25 KB
/
groupimportform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
** Copyright 2007-2013, 2017-2018 Sólyom Zoltán
** This file is part of zkanji, a free software released under the terms of the
** GNU General Public License version 3. See the file LICENSE for details.
**/
#ifndef GROUPIMPORTFORM_H
#define GROUPIMPORTFORM_H
#include <QPushButton>
#include "dialogwindow.h"
namespace Ui {
class GroupImportForm;
}
class Dictionary;
class GroupTreeModel;
template<typename T>
class GroupCategory;
class WordGroup;
class KanjiGroup;
typedef GroupCategory<WordGroup> WordGroupCategory;
typedef GroupCategory<KanjiGroup> KanjiGroupCategory;
class GroupImportForm : public DialogWindow
{
Q_OBJECT
public:
GroupImportForm(QWidget *parent);
~GroupImportForm();
bool exec(Dictionary *dict);
Dictionary* dictionary() const;
KanjiGroupCategory* kanjiCategory() const;
WordGroupCategory* wordsCategory() const;
bool importKanjiExamples() const;
bool importWordMeanings() const;
private slots:
void selectionChanged();
void on_dictCBox_currentIndexChanged(int ix);
void on_kanjiGroupsBox_toggled(bool checked);
void on_wordGroupsBox_toggled(bool checked);
private:
void translateTexts();
Ui::GroupImportForm *ui;
typedef DialogWindow base;
};
#endif // GROUPIMPORTFORM_H