-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinterlinearlinelabel.h
39 lines (31 loc) · 967 Bytes
/
interlinearlinelabel.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
/*!
\class InterlinearLineLabel
\ingroup Interlinear
\brief This is a QLabel subclass for displaying the line numbers in an interlinear text. It adds double-click sensitivity and a context menu. It is instantiated in InterlinearDisplayWidget.
*/
#ifndef INTERLINEARLINELABEL_H
#define INTERLINEARLINELABEL_H
#include <QLabel>
class Phrase;
class Text;
class InterlinearLineLabel : public QLabel
{
Q_OBJECT
public:
InterlinearLineLabel(Text * text, Phrase * phrase, int lineNumber, QWidget *parent = nullptr);
private:
void contextMenuEvent ( QContextMenuEvent * event );
void mouseDoubleClickEvent ( QMouseEvent * event );
Text * mText;
Phrase * mPhrase;
int mLineNumber;
private slots:
void approveAll();
void playSound();
void editBaselineText();
void removePhrase();
void newParagraphAt();
void copyBaselineTextToClipboard();
void mergePhraseWithPrevious();
};
#endif // INTERLINEARLINELABEL_H