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)  

AspectCaptionSpecChangeCmd Class Reference

#include <aspectcommands.h>

Inheritance diagram for AspectCaptionSpecChangeCmd:
Collaboration diagram for AspectCaptionSpecChangeCmd:

Public Member Functions

 AspectCaptionSpecChangeCmd (AbstractAspect::Private *target, const QString &new_caption_spec)
virtual void redo ()
virtual void undo ()

Private Attributes

QString d_other_caption_spec

Detailed Description

Definition at line 77 of file aspectcommands.h.

Constructor & Destructor Documentation

◆ AspectCaptionSpecChangeCmd()

AspectCaptionSpecChangeCmd::AspectCaptionSpecChangeCmd ( AbstractAspect::Private target,
const QString &  new_caption_spec 

Definition at line 80 of file aspectcommands.h.

81  : d_target(target), d_other_caption_spec(new_caption_spec) {
82  setText(QObject::tr("%1: change caption").arg(d_target->name()));
83  }

References d_target, and AbstractAspect::Private::name().

Here is the call graph for this function:

Member Function Documentation

◆ redo()

virtual void AspectCaptionSpecChangeCmd::redo ( )

Definition at line 85 of file aspectcommands.h.

85  {
86  QString tmp = d_target->captionSpec();
89  }

References AbstractAspect::Private::captionSpec(), d_other_caption_spec, d_target, and AbstractAspect::Private::setCaptionSpec().

Referenced by undo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ undo()

virtual void AspectCaptionSpecChangeCmd::undo ( )

Definition at line 91 of file aspectcommands.h.

91 { redo(); }

References redo().

Here is the call graph for this function:

Member Data Documentation

◆ d_other_caption_spec

QString AspectCaptionSpecChangeCmd::d_other_caption_spec

Definition at line 95 of file aspectcommands.h.

Referenced by redo().

◆ d_target

AbstractAspect::Private* AspectCaptionSpecChangeCmd::d_target

Definition at line 94 of file aspectcommands.h.

Referenced by AspectCaptionSpecChangeCmd(), and redo().

The documentation for this class was generated from the following file:
QString captionSpec() const
Definition: AspectPrivate.cpp:146
QString d_other_caption_spec
Definition: aspectcommands.h:95
QString name() const
Definition: AspectPrivate.cpp:122
virtual void redo()
Definition: aspectcommands.h:85
void setCaptionSpec(const QString &value)
Definition: AspectPrivate.cpp:151
AbstractAspect::Private * d_target
Definition: aspectcommands.h:94