Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_internal::AddContainerWidgetPageCommand Class Reference

#include <qdesigner_command_p.h>

+ Inheritance diagram for qdesigner_internal::AddContainerWidgetPageCommand:
+ Collaboration diagram for qdesigner_internal::AddContainerWidgetPageCommand:

Public Types

enum  InsertionMode { InsertBefore , InsertAfter }
 

Public Member Functions

 AddContainerWidgetPageCommand (QDesignerFormWindowInterface *formWindow)
 
 ~AddContainerWidgetPageCommand () override
 
void init (QWidget *containerWidget, ContainerType ct, InsertionMode mode)
 
void redo () override
 Applies a change to the document.
 
void undo () override
 Reverts a change to the document.
 
- Public Member Functions inherited from qdesigner_internal::ContainerWidgetCommand
 ContainerWidgetCommand (QDesignerFormWindowInterface *formWindow)
 
 ~ContainerWidgetCommand () override
 
QDesignerContainerExtensioncontainerExtension () const
 
void init (QWidget *containerWidget)
 
- Public Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
 QDesignerFormWindowCommand (const QString &description, QDesignerFormWindowInterface *formWindow, QUndoCommand *parent=nullptr)
 
void undo () override
 Reverts a change to the document.
 
void redo () override
 Applies a change to the document.
 
- Public Member Functions inherited from QUndoCommand
 QUndoCommand (QUndoCommand *parent=nullptr)
 Constructs a QUndoCommand object with parent parent.
 
 QUndoCommand (const QString &text, QUndoCommand *parent=nullptr)
 Constructs a QUndoCommand object with the given parent and text.
 
virtual ~QUndoCommand ()
 Destroys the QUndoCommand object and all child commands.
 
QString text () const
 Returns a short text string describing what this command does; for example, "insert text".
 
QString actionText () const
 
void setText (const QString &text)
 Sets the command's text to be the text specified.
 
bool isObsolete () const
 
void setObsolete (bool obsolete)
 
virtual int id () const
 Returns the ID of this command.
 
virtual bool mergeWith (const QUndoCommand *other)
 Attempts to merge this command with command.
 
int childCount () const
 
const QUndoCommandchild (int index) const
 

Additional Inherited Members

- Static Public Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
static void updateBuddies (QDesignerFormWindowInterface *form, const QString &old_name, const QString &new_name)
 
- Protected Member Functions inherited from qdesigner_internal::ContainerWidgetCommand
void removePage ()
 
void addPage ()
 
- Protected Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
QDesignerFormWindowInterfaceformWindow () const
 
QDesignerFormEditorInterfacecore () const
 
QDesignerPropertySheetExtensionpropertySheet (QObject *object) const
 
void cheapUpdate ()
 
void selectUnmanagedObject (QObject *unmanagedObject)
 
- Protected Attributes inherited from qdesigner_internal::ContainerWidgetCommand
QPointer< QWidgetm_containerWidget
 
QPointer< QWidgetm_widget
 
int m_index
 

Detailed Description

Definition at line 782 of file qdesigner_command_p.h.

Member Enumeration Documentation

◆ InsertionMode

Enumerator
InsertBefore 
InsertAfter 

Definition at line 786 of file qdesigner_command_p.h.

Constructor & Destructor Documentation

◆ AddContainerWidgetPageCommand()

qdesigner_internal::AddContainerWidgetPageCommand::AddContainerWidgetPageCommand ( QDesignerFormWindowInterface * formWindow)
explicit

Definition at line 1991 of file qdesigner_command.cpp.

◆ ~AddContainerWidgetPageCommand()

qdesigner_internal::AddContainerWidgetPageCommand::~AddContainerWidgetPageCommand ( )
overridedefault

Member Function Documentation

◆ init()

void qdesigner_internal::AddContainerWidgetPageCommand::init ( QWidget * containerWidget,
ContainerType ct,
InsertionMode mode )

Definition at line 1998 of file qdesigner_command.cpp.

◆ redo()

void qdesigner_internal::AddContainerWidgetPageCommand::redo ( )
overridevirtual

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 function leads to undefined beahavior.

The default implementation calls redo() on all child commands.

See also
undo()

Reimplemented from QUndoCommand.

Definition at line 2029 of file qdesigner_command.cpp.

◆ undo()

void qdesigner_internal::AddContainerWidgetPageCommand::undo ( )
overridevirtual

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 function leads to undefined beahavior.

The default implementation calls undo() on all child commands in reverse order.

See also
redo()

Reimplemented from QUndoCommand.

Definition at line 2035 of file qdesigner_command.cpp.


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