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:
[legend]
Collaboration diagram for AspectCaptionSpecChangeCmd:
[legend]

Public Member Functions

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

Private Attributes

AbstractAspect::Privated_target
 
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 
)
inline

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 ( )
inlinevirtual

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 ( )
inlinevirtual

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
private

Definition at line 95 of file aspectcommands.h.

Referenced by redo().

◆ d_target

AbstractAspect::Private* AspectCaptionSpecChangeCmd::d_target
private

Definition at line 94 of file aspectcommands.h.

Referenced by AspectCaptionSpecChangeCmd(), and redo().


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