[go: up one dir, main page]

Menu

[r734]: / dialects3.h  Maximize  Restore  History

Download this file

101 lines (82 with data), 2.3 kB

 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* Marcion
Copyright (C) 2009-2016 Milan Konvicka
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
#ifndef DIALECTS3_H
#define DIALECTS3_H
//
#include <QWidget>
#include <QCheckBox>
#include "latcopt.h"
namespace Ui {
class frmDialectsWidget;
}
class CDialects3 : public QWidget
{
Q_OBJECT
public:
enum State {
Accepted,Rejected
};
enum Dialect{
Sah=1,
SahA=2,
SahF=4,
Achm=8,
AchmSub=16,
Boh=32,
Fay=64,
FayB=128,
Old=256,
NagHamm=512
};
explicit CDialects3( QWidget * parent = 0);
~CDialects3();
QString makeRecord() const;
QString engText() const,greekText() const;
void setCoptic();
QString const & errText() const;
bool isValid() const;
bool isActive() const;
void setText(QString const &,
QString const &,QString const &);
void setFont(QFont const & Font);
private slots:
void on_btExt_clicked();
void on_btCaus_clicked();
void on_btGk_clicked();
void on_btNounF_clicked();
void on_btNounM_clicked();
void on_btNoun_clicked();
void on_btUnc_clicked();
void on_btUnk_clicked();
void on_btQual_clicked();
void on_btIntr_clicked();
void on_btTr_clicked();
void on_lstChooser_currentRowChanged(int currentRow);
void on_btUpdate_clicked();
void on_btIns_clicked();
void on_btAdd_clicked();
void on_btDel_clicked();
private:
Ui::frmDialectsWidget *ui;
void prepRow(int);
void finish(State);
void parseText(QString const &);
bool _err;
QString _errtext;
State result;
QFont font;
signals:
void finished(int);
};
#endif