DiffView
-
class DiffView : public QMainWindow
The DiffView class contains function that allows comparision of initial text, Corrector output and verifier output text.
At times, the verifiers may want to compare their work with initial text and corrector text. Comparing allows the user to track their work progress and find mistakes that are highly made by the correctors.
See also
on_compareVerifierOutput_clicked()
Public Functions
-
DiffView(QWidget *parent, QString page, QString fpath)
Shows the diff view to the user.
- Parameters:
parent –
page –
fpath –
-
bool validFilePath()
Returns true if file path is valid.
- Returns:
bool (Is File Path valid ?)
-
~DiffView()
Destructor.
Private Slots
-
void UpdateUI()
It updates the content text and calculated metrics from Load_comparePage to the UI.
-
void on_PrevButton_clicked()
It re-loads the compare window when previous button is clicked and updates the text and metrics for that page respectively.
See also
Load_comparePage(), Update_UI()
-
void Load_comparePage(string page)
For the currently opened page, the function fetches - initial text, corrector text and verifier text and produces a final color coded text representing changes. The metrics are also calculated such as change percentage and accuracy.
See also
LevenshteinWithGraphemes(),GetGraphemesCount(), diff_main(), diff_prettyHtml()
- Parameters:
page –
-
void on_NextButton_clicked()
It re-loads the compare window when next button is clicked and updates the text and metrics for that page respectively.
See also
Load_comparePage(), Update_UI()
-
DiffView(QWidget *parent, QString page, QString fpath)