-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathannotationform.h
45 lines (35 loc) · 1.01 KB
/
annotationform.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
/*!
\class AnnotationForm
\ingroup GUI
\brief This is a form for displaying text annotations (i.e, those indicated by superscripts in the interlinear display). The associated model is AnnotationModel. Currently it is used by MainWindow and placed in a dock.
*/
#ifndef ANNOTATIONFORM_H
#define ANNOTATIONFORM_H
#include <QWidget>
#include "focus.h"
class Text;
class DatabaseAdapter;
class AnnotationModel;
class Project;
namespace Ui {
class AnnotationForm;
}
class AnnotationForm : public QWidget
{
Q_OBJECT
public:
AnnotationForm(Text * text, const Project * project, QWidget *parent = nullptr);
~AnnotationForm();
signals:
void focusTextPosition( const QString & textName , int lineNumber, const QList<Focus> & foci );
private:
Ui::AnnotationForm *ui;
Text * mText;
const Project * mProject;
const DatabaseAdapter * mDbAdapter;
AnnotationModel * mAnnotationModel;
private slots:
void doubleClick(const QModelIndex & index);
void modelReset();
};
#endif // ANNOTATIONFORM_H