Add perspective control lines to history

Allows undoing and redoing of changes to the control lines.
This commit is contained in:
Lawrence Lee
2020-07-11 13:34:05 -07:00
parent eb548f1aff
commit 4f8aa2db2b
2 changed files with 3 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ PerspCorrection::PerspCorrection () : FoldableToolPanel(this, "perspective", M("
EvPerspProjRotateVoid = mapper->newEvent(M_VOID, "HISTORY_MSG_PERSP_PROJ_ROTATE");
EvPerspProjShiftVoid = mapper->newEvent(M_VOID, "HISTORY_MSG_PERSP_PROJ_SHIFT");
setCamBasedEventsActive();
EvPerspControlLines = mapper->newEvent(M_VOID);
EvPerspControlLines = mapper->newEvent(M_VOID, "HISTORY_MSG_PERSP_CTRL_LINE");
lens_geom_listener = nullptr;
metadata = nullptr;
@@ -720,7 +720,7 @@ void PerspCorrection::setEditProvider(EditDataProvider* provider)
void PerspCorrection::lineChanged(void)
{
if (listener) {
listener->panelChanged(EvPerspControlLines, "");
listener->panelChanged(EvPerspControlLines, M("HISTORY_CHANGED"));
}
}