forked from z1dev/zkanji
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dictionarytextform.h
48 lines (38 loc) · 1.14 KB
/
dictionarytextform.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
/*
** 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 DICTIONARYTEXTFORM_H
#define DICTIONARYTEXTFORM_H
#include "dialogwindow.h"
namespace Ui {
class DictionaryTextForm;
}
class Dictionary;
class DictionaryTextForm : public DialogWindow
{
Q_OBJECT
public:
DictionaryTextForm(QWidget *parent = nullptr);
virtual ~DictionaryTextForm();
void exec(Dictionary *d);
public slots:
void accept();
void dictionaryRemoved(int index, int order, void *oldaddress);
void dictionaryRenamed(const QString &oldname, int index, int order);
void dictionaryReset();
void dictionaryReplaced(Dictionary *olddict, Dictionary *newdict, int index);
void on_browseButton_clicked();
void on_removeButton_clicked();
protected:
virtual bool event(QEvent *e) override;
private:
void translateTexts();
Ui::DictionaryTextForm *ui;
Dictionary *dict;
QByteArray flagdata;
bool flagerased;
typedef DialogWindow base;
};
#endif // DICTIONARYTEXTFORM_H