-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchooselexicalentriesdialog.h
54 lines (41 loc) · 1.45 KB
/
chooselexicalentriesdialog.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
/*!
\class ChooseLexicalEntriesDialog
\ingroup MorphologicalAnalysis
\brief A form for the user to choose (or create) lexical entries to go along with allomorphs. ChooseLexicalEntriesDialog will have one or more LexicalEntryForm objects, which provide the interface. ChooseLexicalEntriesDialog then commits those changes to the database upon acceptance.
*/
#ifndef CHOOSELEXICALENTRIESDIALOG_H
#define CHOOSELEXICALENTRIESDIALOG_H
#include <QDialog>
#include <QList>
#include "lexicalentryform.h"
class DatabaseAdapter;
class GlossItem;
class QDialogButtonBox;
class Project;
#include "morphologicalanalysis.h"
class ChooseLexicalEntriesDialog : public QDialog
{
Q_OBJECT
public:
//! \brief \a parseString must have the id of the textForm with which the morphological analysis is associated
ChooseLexicalEntriesDialog(const TextBit & parseString, const GlossItem *glossItem, Project *project, QWidget *parent = nullptr);
MorphologicalAnalysis * morphologicalAnalysis() const;
signals:
void resegment();
public slots:
private:
Project * mProject;
const DatabaseAdapter * mDbAdapter;
TextBit mParseString;
QList<TextBit> mAllomorphStrings;
QList<LexicalEntryForm*> mEntries;
QDialogButtonBox *mButtonBox;
QPushButton * mOk;
void setupLayout();
const GlossItem *mGlossItem;
private slots:
void commitChanges();
void rollbackChanges();
void setAcceptable();
};
#endif // CHOOSELEXICALENTRIESDIALOG_H