#include <qdesigner_command_p.h>
Inheritance diagram for qdesigner_internal::AddActionCommand:


Definition at line 969 of file qdesigner_command_p.h.
Public Member Functions | |
| AddActionCommand (QDesignerFormWindowInterface *formWindow) | |
| void | init (QAction *action) |
| virtual void | redo () |
| virtual void | undo () |
Private Attributes | |
| QAction * | m_action |
| qdesigner_internal::AddActionCommand::AddActionCommand | ( | QDesignerFormWindowInterface * | formWindow | ) |
Definition at line 2576 of file qdesigner_command.cpp.
References m_action.
02577 : QDesignerFormWindowCommand(QLatin1String("Add action"), formWindow) 02578 { 02579 m_action = 0; 02580 }
| void qdesigner_internal::AddActionCommand::init | ( | QAction * | action | ) |
Definition at line 2582 of file qdesigner_command.cpp.
References m_action.
Referenced by QDesignerToolBar::createAction(), QDesignerMenu::createAction(), and qdesigner_internal::ActionEditor::slotNewAction().
| void qdesigner_internal::AddActionCommand::redo | ( | ) | [virtual] |
Applies a change to the document. This function must be implemented in the derived class. Calling QUndoStack::push(), QUndoStack::undo() or QUndoStack::redo() from this funciton leads to undefined beahavior.
The default implementation calls redo() on all child commands.
Reimplemented from qdesigner_internal::QDesignerFormWindowCommand.
Definition at line 2588 of file qdesigner_command.cpp.
References QDesignerFormEditorInterface::actionEditor(), qdesigner_internal::QDesignerFormWindowCommand::core(), qdesigner_internal::QDesignerFormWindowCommand::formWindow(), m_action, QDesignerActionEditorInterface::manageAction(), and QDesignerActionEditorInterface::setFormWindow().
02589 { 02590 core()->actionEditor()->setFormWindow(formWindow()); 02591 core()->actionEditor()->manageAction(m_action); 02592 }
Here is the call graph for this function:

| void qdesigner_internal::AddActionCommand::undo | ( | ) | [virtual] |
Reverts a change to the document. After undo() is called, the state of the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling QUndoStack::push(), QUndoStack::undo() or QUndoStack::redo() from this funciton leads to undefined beahavior.
The default implementation calls undo() on all child commands in reverse order.
Reimplemented from qdesigner_internal::QDesignerFormWindowCommand.
Definition at line 2594 of file qdesigner_command.cpp.
References QDesignerFormEditorInterface::actionEditor(), qdesigner_internal::QDesignerFormWindowCommand::core(), qdesigner_internal::QDesignerFormWindowCommand::formWindow(), m_action, QDesignerActionEditorInterface::setFormWindow(), and QDesignerActionEditorInterface::unmanageAction().
02595 { 02596 core()->actionEditor()->setFormWindow(formWindow()); 02597 core()->actionEditor()->unmanageAction(m_action); 02598 }
Here is the call graph for this function:

Definition at line 978 of file qdesigner_command_p.h.
Referenced by AddActionCommand(), init(), redo(), and undo().
1.5.1