This class allows to load tracking annotation file.
More...
|
void | clear () |
| Clear the object.
|
|
void | write (int index, const QString &text) |
| Adds an annotation to the annotation QMap. More...
|
|
void | read (int index) |
| Reads an annotation from the annotation QMap. More...
|
|
void | find (const QString &expression) |
| Finds the index of all the annotation with expression inside their text. More...
|
|
int | next () |
| Returns the next element of the findIndexes list of annotations that contains the expression to find.
|
|
int | prev () |
| Returns the previous element of the findIndexes list of annotations that contains the expression to find.
|
|
|
| Annotation () |
| Constructs the annotation object from a file path.
|
|
| Annotation (const QString &annotationFile) |
| Constructs the annotation object from a file path. More...
|
|
| Annotation (const Annotation &T)=delete |
|
Annotation & | operator= (const Annotation &T)=delete |
|
bool | setPath (const QString &annotationFile) |
| Set the path for the annotation. More...
|
|
|
void | writeToFile () |
| Writes all the annotation to a file.
|
|
|
QFile * | annotationFile |
|
QMap< int, QString > * | annotations |
|
QList< int > | findIndexes |
|
int | findIndex |
|
This class allows to load tracking annotation file.
- Author
- Benjamin Gallois
- Version
- Revision
- 5
Contact: benja.nosp@m.min..nosp@m.gallo.nosp@m.is@f.nosp@m.asttr.nosp@m.ack..nosp@m.sh
◆ Annotation()
Annotation::Annotation |
( |
const QString & |
filePath | ) |
|
Constructs the annotation object from a file path.
- Parameters
-
[in] | filePath | Path to the tracking folder. |
◆ annotationText
void Annotation::annotationText |
( |
const QString & |
text | ) |
|
|
signal |
Emitted when a new annotation is read.
- Parameters
-
text | Text of the requested annotation. |
◆ find
void Annotation::find |
( |
const QString & |
expression | ) |
|
|
slot |
Finds the index of all the annotation with expression inside their text.
- Parameters
-
[in] | expression | Expression to find, case sensitive. |
◆ read
void Annotation::read |
( |
int |
index | ) |
|
|
slot |
Reads an annotation from the annotation QMap.
- Parameters
-
◆ setPath()
bool Annotation::setPath |
( |
const QString & |
filePath | ) |
|
Set the path for the annotation.
- Parameters
-
[in] | filePath | Path to the tracking folder. |
◆ write
void Annotation::write |
( |
int |
index, |
|
|
const QString & |
text |
|
) |
| |
|
slot |
Adds an annotation to the annotation QMap.
- Parameters
-
The documentation for this class was generated from the following files: