This class implements the undo dialog. More...
#include <DlgUndoRedo.h>
Public Member Functions | |
UndoDialog (QWidget *parent=0) | |
Constructs a UndoRedoDialog which is a child of 'parent', with the name 'name'. | |
virtual | ~UndoDialog () |
Destroys the object and frees any allocated resources. | |
Protected Slots | |
void | onFetchInfo () |
This method fetches the undo / redo information from the active document and shows it in the undo / redo dialog. | |
void | onSelected () |
Closes the dialog and sends the message 'Undo' to the currently active MDI view. |
This class implements the undo dialog.
Definition at line 35 of file DlgUndoRedo.h.
UndoDialog::UndoDialog | ( | QWidget * | parent = 0 |
) |
Constructs a UndoRedoDialog which is a child of 'parent', with the name 'name'.
'
Definition at line 40 of file DlgUndoRedo.cpp.
References draftlibs::fcgeo::connect(), and onFetchInfo().
UndoDialog::~UndoDialog | ( | ) | [virtual] |
Destroys the object and frees any allocated resources.
Definition at line 49 of file DlgUndoRedo.cpp.
void UndoDialog::onFetchInfo | ( | ) | [protected, slot] |
This method fetches the undo / redo information from the active document and shows it in the undo / redo dialog.
Definition at line 58 of file DlgUndoRedo.cpp.
References Gui::Application::activeDocument(), Gui::MainWindow::activeWindow(), Gui::getMainWindow(), Gui::Document::getUndoVector(), Gui::Application::Instance, onSelected(), and Gui::EditorView::undoActions().
Referenced by UndoDialog().
void UndoDialog::onSelected | ( | ) | [protected, slot] |
Closes the dialog and sends the message 'Undo' to the currently active MDI view.
Definition at line 80 of file DlgUndoRedo.cpp.
References Gui::Application::Instance, and Gui::Application::sendMsgToActiveView().
Referenced by onFetchInfo().