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::QDesignerFormWindowCommand Class Reference

#include <qdesigner_formwindowcommand_p.h>

+ Inheritance diagram for qdesigner_internal::QDesignerFormWindowCommand:
+ Collaboration diagram for qdesigner_internal::QDesignerFormWindowCommand:

Public Member Functions

 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
 

Static Public Member Functions

static void updateBuddies (QDesignerFormWindowInterface *form, const QString &old_name, const QString &new_name)
 

Protected Member Functions

QDesignerFormWindowInterfaceformWindow () const
 
QDesignerFormEditorInterfacecore () const
 
QDesignerPropertySheetExtensionpropertySheet (QObject *object) const
 
void cheapUpdate ()
 
void selectUnmanagedObject (QObject *unmanagedObject)
 

Detailed Description

Definition at line 32 of file qdesigner_formwindowcommand_p.h.

Constructor & Destructor Documentation

◆ QDesignerFormWindowCommand()

qdesigner_internal::QDesignerFormWindowCommand::QDesignerFormWindowCommand ( const QString & description,
QDesignerFormWindowInterface * formWindow,
QUndoCommand * parent = nullptr )

Definition at line 29 of file qdesigner_formwindowcommand.cpp.

Member Function Documentation

◆ cheapUpdate()

void qdesigner_internal::QDesignerFormWindowCommand::cheapUpdate ( )
protected

Definition at line 60 of file qdesigner_formwindowcommand.cpp.

◆ core()

QDesignerFormEditorInterface * qdesigner_internal::QDesignerFormWindowCommand::core ( ) const
protected

Definition at line 42 of file qdesigner_formwindowcommand.cpp.

◆ formWindow()

QDesignerFormWindowInterface * qdesigner_internal::QDesignerFormWindowCommand::formWindow ( ) const
protected

Definition at line 37 of file qdesigner_formwindowcommand.cpp.

◆ propertySheet()

QDesignerPropertySheetExtension * qdesigner_internal::QDesignerFormWindowCommand::propertySheet ( QObject * object) const
protected

Definition at line 69 of file qdesigner_formwindowcommand.cpp.

◆ redo()

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

Reimplemented in qdesigner_internal::RemoveActionCommand, qdesigner_internal::RemoveActionFromCommand, qdesigner_internal::RemoveButtonsFromGroupCommand, qdesigner_internal::RemoveButtonsFromGroupCommand, qdesigner_internal::RemoveDynamicPropertyCommand, qdesigner_internal::RemoveMenuActionCommand, qdesigner_internal::ReparentWidgetCommand, qdesigner_internal::ResetPropertyCommand, qdesigner_internal::SetPropertyCommand, qdesigner_internal::SimplifyLayoutCommand, and qdesigner_internal::TabOrderCommand.

Definition at line 55 of file qdesigner_formwindowcommand.cpp.

◆ selectUnmanagedObject()

void qdesigner_internal::QDesignerFormWindowCommand::selectUnmanagedObject ( QObject * unmanagedObject)
protected

Definition at line 101 of file qdesigner_formwindowcommand.cpp.

◆ undo()

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

Reimplemented in qdesigner_internal::RemoveActionCommand, qdesigner_internal::RemoveActionFromCommand, qdesigner_internal::RemoveButtonsFromGroupCommand, qdesigner_internal::RemoveButtonsFromGroupCommand, qdesigner_internal::RemoveDynamicPropertyCommand, qdesigner_internal::RemoveMenuActionCommand, qdesigner_internal::ReparentWidgetCommand, qdesigner_internal::SimplifyLayoutCommand, and qdesigner_internal::TabOrderCommand.

Definition at line 50 of file qdesigner_formwindowcommand.cpp.

◆ updateBuddies()

void qdesigner_internal::QDesignerFormWindowCommand::updateBuddies ( QDesignerFormWindowInterface * form,
const QString & old_name,
const QString & new_name )
static

Definition at line 74 of file qdesigner_formwindowcommand.cpp.


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