qdesigner_internal::InsertRowCommand Class Reference

#include <qdesigner_command_p.h>

Inheritance diagram for qdesigner_internal::InsertRowCommand:

Inheritance graph
[legend]
Collaboration diagram for qdesigner_internal::InsertRowCommand:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 380 of file qdesigner_command_p.h.

Public Member Functions

 InsertRowCommand (QDesignerFormWindowInterface *formWindow)
void init (QWidget *widget, int row)
virtual void redo ()
virtual void undo ()

Private Attributes

QPointer< QWidgetm_widget
int m_row


Constructor & Destructor Documentation

qdesigner_internal::InsertRowCommand::InsertRowCommand ( QDesignerFormWindowInterface formWindow  ) 

Definition at line 2105 of file qdesigner_command.cpp.

02106     : QDesignerFormWindowCommand(QApplication::translate("Command", "Insert Row"), formWindow)
02107 {
02108 }


Member Function Documentation

void qdesigner_internal::InsertRowCommand::init ( QWidget widget,
int  row 
)

Definition at line 2110 of file qdesigner_command.cpp.

References m_row, and m_widget.

02111 {
02112     m_widget = widget;
02113     m_row = row;
02114 }

void qdesigner_internal::InsertRowCommand::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.

See also:
undo()

Reimplemented from qdesigner_internal::QDesignerFormWindowCommand.

Definition at line 2116 of file qdesigner_command.cpp.

02117 {
02118 }

void qdesigner_internal::InsertRowCommand::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.

See also:
redo()

Reimplemented from qdesigner_internal::QDesignerFormWindowCommand.

Definition at line 2120 of file qdesigner_command.cpp.

02121 {
02122 }


Member Data Documentation

QPointer<QWidget> qdesigner_internal::InsertRowCommand::m_widget [private]

Definition at line 392 of file qdesigner_command_p.h.

Referenced by init().

int qdesigner_internal::InsertRowCommand::m_row [private]

Definition at line 393 of file qdesigner_command_p.h.

Referenced by init().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 20:44:36 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1