scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

AspectChildAddCmd Class Reference

#include <aspectcommands.h>

Inheritance diagram for AspectChildAddCmd:
[legend]
Collaboration diagram for AspectChildAddCmd:
[legend]

Public Member Functions

 AspectChildAddCmd (AbstractAspect::Private *target, AbstractAspect *child, int index)
 
virtual void redo ()
 
virtual void undo ()
 

Protected Attributes

AbstractAspect::Privated_target
 
AbstractAspectd_child
 
int d_index
 
bool d_removed
 
bool d_detach
 

Detailed Description

Definition at line 153 of file aspectcommands.h.

Constructor & Destructor Documentation

◆ AspectChildAddCmd()

AspectChildAddCmd::AspectChildAddCmd ( AbstractAspect::Private target,
AbstractAspect child,
int  index 
)
inline

Definition at line 156 of file aspectcommands.h.

157  : AspectChildRemoveCmd(target, child, false) {
158  setText(QObject::tr("%1: add %2").arg(d_target->name()).arg(d_child->name()));
159  d_index = index;
160  }

References AspectChildRemoveCmd::d_child, AspectChildRemoveCmd::d_index, AspectChildRemoveCmd::d_target, AbstractAspect::name(), and AbstractAspect::Private::name().

Here is the call graph for this function:

Member Function Documentation

◆ redo()

virtual void AspectChildAddCmd::redo ( )
inlinevirtual

Reimplemented from AspectChildRemoveCmd.

Definition at line 162 of file aspectcommands.h.

References AspectChildRemoveCmd::undo().

Here is the call graph for this function:

◆ undo()

virtual void AspectChildAddCmd::undo ( )
inlinevirtual

Reimplemented from AspectChildRemoveCmd.

Definition at line 164 of file aspectcommands.h.

References AspectChildRemoveCmd::redo().

Here is the call graph for this function:

Member Data Documentation

◆ d_child

◆ d_detach

bool AspectChildRemoveCmd::d_detach
protectedinherited

Definition at line 150 of file aspectcommands.h.

Referenced by AspectChildRemoveCmd::~AspectChildRemoveCmd().

◆ d_index

int AspectChildRemoveCmd::d_index
protectedinherited

◆ d_removed

bool AspectChildRemoveCmd::d_removed
protectedinherited

◆ d_target

AbstractAspect::Private* AspectChildRemoveCmd::d_target
protectedinherited

The documentation for this class was generated from the following file:
AspectChildRemoveCmd::d_index
int d_index
Definition: aspectcommands.h:149
AspectChildRemoveCmd::d_child
AbstractAspect * d_child
Definition: aspectcommands.h:148
AbstractAspect::name
QString name() const
Definition: AbstractAspect.cpp:229
AbstractAspect::Private::name
QString name() const
Definition: AspectPrivate.cpp:122
AspectChildRemoveCmd::undo
virtual void undo()
Definition: aspectcommands.h:140
AspectChildRemoveCmd::AspectChildRemoveCmd
AspectChildRemoveCmd(AbstractAspect::Private *target, AbstractAspect *child, bool detach)
Definition: aspectcommands.h:124
AspectChildRemoveCmd::redo
virtual void redo()
Definition: aspectcommands.h:134
AspectChildRemoveCmd::d_target
AbstractAspect::Private * d_target
Definition: aspectcommands.h:147