Add perspective control lines to history
Allows undoing and redoing of changes to the control lines.
This commit is contained in:
@@ -1216,6 +1216,7 @@ HISTORY_MSG_PDSHARPEN_RADIUS_BOOST;CS - Corner radius boost
|
||||
HISTORY_MSG_PERSP_CAM_ANGLE;Perspective - Camera
|
||||
HISTORY_MSG_PERSP_CAM_FL;Perspective - Camera
|
||||
HISTORY_MSG_PERSP_CAM_SHIFT;Perspective - Camera
|
||||
HISTORY_MSG_PERSP_CTRL_LINE;Perspective - Control lines
|
||||
HISTORY_MSG_PERSP_METHOD;Perspective - Method
|
||||
HISTORY_MSG_PERSP_PROJ_ANGLE;Perspective - Recovery
|
||||
HISTORY_MSG_PERSP_PROJ_ROTATE;Perspective - PCA rotation
|
||||
|
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user