Gui::Dialog::UndoDialog Class Reference

This class implements the undo dialog. More...

#include <DlgUndoRedo.h>

List of all members.

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.

Detailed Description

This class implements the undo dialog.

Author:
Werner Mayer

Definition at line 35 of file DlgUndoRedo.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:11 2011 for FreeCAD by  doxygen 1.6.1