UndoGlobalReplace

class UndoGlobalReplace : public QDialog

UndoGlobalReplace class undo global replaced words.

It provides list of global replace made and allows to undo them at once or by specific selecion.

Public Functions

explicit UndoGlobalReplace(QMap<QString, QString> reversedGRMap, QWidget *parent = nullptr)

This class is used to show undo global replace window.

Parameters:
  • reversedGRMap

  • parent

~UndoGlobalReplace()

Destructor.

Public Slots

void highlightChecked(QListWidgetItem*)

Highlights checked items from the list.

Parameters:

item

bool on_applyButton_clicked()

Updates the finalUndoMap variable with checked items only.

Returns:

bool

QMap<QString, QString> getFinalUndoMap()

returns finalUndoMap variable.

Returns:

Final Undo map

Private Slots

void displayListForUndoOperation(QMap<QString, QString> reversedGRMap)

Shows list of global replaced words for undo operation.

Parameters:

listMap

void on_cancelButton_clicked()

Closes the undo global replace dialog.