#7347 Property Editor : Enable undo/redo of field changed operations

This commit is contained in:
Magne Sjaastad
2021-02-09 13:31:27 +01:00
parent 14c09f30cf
commit bcdba1bb8f
22 changed files with 265 additions and 74 deletions

View File

@@ -32,6 +32,7 @@ class PdmUiItem;
class QMdiArea;
class QMdiSubWindow;
class QUndoView;
//==================================================================================================
///
@@ -94,10 +95,19 @@ protected slots:
void slotDockWidgetToggleViewActionTriggered();
void slotRefreshHelpActions();
void slotRedo();
void slotUndo();
void slotRefreshUndoRedoActions();
protected:
caf::PdmUiTreeView* m_projectTreeView;
bool m_allowActiveViewChangeFromSelection; // To be used in selectedObjectsChanged() to control
// whether to select the corresponding active view or not
QAction* m_undoAction;
QAction* m_redoAction;
QUndoView* m_undoView;
private:
QString registryFolderName();