-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinterlinearitemtype.h
44 lines (35 loc) · 1.05 KB
/
interlinearitemtype.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
/*!
\class InterlinearItemType
\ingroup Interlinear
\brief A data class representing a line of a gloss: the type of the line (LineType: Text, Gloss), and the writing system of the line.
*/
#ifndef INTERLINEARITEM_H
#define INTERLINEARITEM_H
#include "writingsystem.h"
class InterlinearItemType {
public:
enum LineType {
ImmutableText,
ImmutableGloss,
Text,
Gloss,
Analysis,
PosTagging,
Null
};
InterlinearItemType();
InterlinearItemType(LineType type, const WritingSystem & ws);
InterlinearItemType(const QString & type, const WritingSystem & ws);
void setType(LineType type);
void setWritingSystem(const WritingSystem & ws);
LineType type() const;
QString typeString() const;
QString typeXmlString() const;
WritingSystem writingSystem() const;
private:
LineType mType;
WritingSystem mWritingSystem;
};
typedef QList<InterlinearItemType> InterlinearItemTypeList;
QDebug operator<<(QDebug dbg, const InterlinearItemType &type);
#endif // GLOSSLINE_H