12#include <QUndoCommand>
19 QFile *annotationFile;
20 QMap<int, QString> *annotations;
22 QList<int> findIndexes;
27 void write(
int index,
const QString &text);
29 void find(
const QString &expression);
46 bool setPath(
const QString &annotationFile);
This class allows to load tracking annotation file.
Definition: annotation.h:15
void clear()
Clear the object.
Definition: annotation.cpp:36
void writeToFile()
Writes all the annotation to a file.
Definition: annotation.cpp:92
void write(int index, const QString &text)
Adds an annotation to the annotation QMap.
Definition: annotation.cpp:111
int next()
Returns the next element of the findIndexes list of annotations that contains the expression to find.
Definition: annotation.cpp:144
void find(const QString &expression)
Finds the index of all the annotation with expression inside their text.
Definition: annotation.cpp:129
void read(int index)
Reads an annotation from the annotation QMap.
Definition: annotation.cpp:120
void annotationText(const QString &text)
Emitted when a new annotation is read.
bool setPath(const QString &annotationFile)
Set the path for the annotation.
Definition: annotation.cpp:50
int prev()
Returns the previous element of the findIndexes list of annotations that contains the expression to f...
Definition: annotation.cpp:160
Annotation()
Constructs the annotation object from a file path.
Definition: annotation.cpp:84