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_ANGLE;Perspective - Camera
|
||||||
HISTORY_MSG_PERSP_CAM_FL;Perspective - Camera
|
HISTORY_MSG_PERSP_CAM_FL;Perspective - Camera
|
||||||
HISTORY_MSG_PERSP_CAM_SHIFT;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_METHOD;Perspective - Method
|
||||||
HISTORY_MSG_PERSP_PROJ_ANGLE;Perspective - Recovery
|
HISTORY_MSG_PERSP_PROJ_ANGLE;Perspective - Recovery
|
||||||
HISTORY_MSG_PERSP_PROJ_ROTATE;Perspective - PCA rotation
|
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");
|
EvPerspProjRotateVoid = mapper->newEvent(M_VOID, "HISTORY_MSG_PERSP_PROJ_ROTATE");
|
||||||
EvPerspProjShiftVoid = mapper->newEvent(M_VOID, "HISTORY_MSG_PERSP_PROJ_SHIFT");
|
EvPerspProjShiftVoid = mapper->newEvent(M_VOID, "HISTORY_MSG_PERSP_PROJ_SHIFT");
|
||||||
setCamBasedEventsActive();
|
setCamBasedEventsActive();
|
||||||
EvPerspControlLines = mapper->newEvent(M_VOID);
|
EvPerspControlLines = mapper->newEvent(M_VOID, "HISTORY_MSG_PERSP_CTRL_LINE");
|
||||||
|
|
||||||
lens_geom_listener = nullptr;
|
lens_geom_listener = nullptr;
|
||||||
metadata = nullptr;
|
metadata = nullptr;
|
||||||
@@ -720,7 +720,7 @@ void PerspCorrection::setEditProvider(EditDataProvider* provider)
|
|||||||
void PerspCorrection::lineChanged(void)
|
void PerspCorrection::lineChanged(void)
|
||||||
{
|
{
|
||||||
if (listener) {
|
if (listener) {
|
||||||
listener->panelChanged(EvPerspControlLines, "");
|
listener->panelChanged(EvPerspControlLines, M("HISTORY_CHANGED"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user