Open-Typer
Open source typewriting tutor program
|
The ExportProvider class provides methods for the export dialog. More...
#include "export/internal/ExportProvider.h"
Signals | |
void | validatorChanged (IExerciseValidator *validator) |
void | exportTextChanged (QString text) |
void | tableChanged (ExportTable *table) |
Public Member Functions | |
ExportProvider (QObject *parent=nullptr) | |
IExerciseValidator * | validator (void) |
void | setValidator (IExerciseValidator *validator) |
QString | exportText (void) |
ExportTable * | table (void) |
void | setTable (ExportTable *table) |
Q_INVOKABLE void | print (void) |
Q_INVOKABLE void | printExercise (int lesson, int sublesson, int exercise, QString text) |
Q_INVOKABLE void | printExercise (QString text) |
Properties | |
IExerciseValidator * | validator |
QString | exportText |
ExportTable * | table |
Private Attributes | |
IExerciseValidator * | m_validator |
QString | m_exportText |
ExportTable * | m_table |
The ExportProvider class provides methods for the export dialog.
|
explicit |
Constructs ExportProvider.
void ExportProvider::print | ( | void | ) |
Prints the exported text and table.
void ExportProvider::printExercise | ( | int | lesson, |
int | sublesson, | ||
int | exercise, | ||
QString | text | ||
) |
Prints the exercise text.
void ExportProvider::printExercise | ( | QString | text | ) |
Prints the text of a custom exercise.
|
read |
The exported input text.
|
readwrite |
The ExportTable that is going to be printed.
|
readwrite |
The ExerciseValidator used to get the input text and mistakes.