15 #include "internal/org_mitk_gui_qt_application_Activator.h" 24 class QmitkUndoActionPrivate
31 action->setText(
"&Undo");
32 action->setToolTip(
"Undo the last action (not supported by all modules)");
34 QObject::connect(action, SIGNAL(triggered(
bool)), action, SLOT(
Run()));
41 : QAction(nullptr), d(new QmitkUndoActionPrivate)
47 : QAction(nullptr), d(new QmitkUndoActionPrivate)
54 : QAction(nullptr), d(new QmitkUndoActionPrivate)
56 d->init(window,
this);
72 verboseundo->GetUndoDescriptions();
73 if (descriptions.size() >= 1)
75 MITK_INFO <<
"Undo " << descriptions.front().second;
~QmitkUndoAction() override
QmitkUndoAction(berry::IWorkbenchWindow::Pointer window)
superclass for all UndoModels
A limited linear undo model providing GUI elements with stack status information. ...
static UndoModel * GetCurrentUndoModel()
gives access to the currently used UndoModel Introduced to access special functions of more specific ...
std::vector< StackDescriptionItem > StackDescription
void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)
ObjectType * GetPointer() const