PlayParameterRepository::EditCommand Class Reference

#include <PlayParameterRepository.h>

Inheritance diagram for PlayParameterRepository::EditCommand:
Inheritance graph
Collaboration diagram for PlayParameterRepository::EditCommand:
Collaboration graph

Public Member Functions

 EditCommand (std::shared_ptr< PlayParameters > params)
 
void setPlayMuted (bool)
 
void setPlayAudible (bool)
 
void setPlayPan (float)
 
void setPlayGain (float)
 
void setPlayClipId (QString)
 
void execute () override
 
void unexecute () override
 
QString getName () const override
 

Protected Attributes

std::shared_ptr< PlayParametersm_params
 
PlayParameters m_from
 
PlayParameters m_to
 

Detailed Description

Definition at line 63 of file PlayParameterRepository.h.

Constructor & Destructor Documentation

PlayParameterRepository::EditCommand::EditCommand ( std::shared_ptr< PlayParameters params)

Definition at line 122 of file PlayParameterRepository.cpp.

References PlayParameters::copyFrom(), m_from, m_params, and m_to.

Member Function Documentation

void PlayParameterRepository::EditCommand::setPlayMuted ( bool  muted)

Definition at line 130 of file PlayParameterRepository.cpp.

References m_to, and PlayParameters::setPlayMuted().

void PlayParameterRepository::EditCommand::setPlayAudible ( bool  audible)

Definition at line 136 of file PlayParameterRepository.cpp.

References m_to, and PlayParameters::setPlayAudible().

void PlayParameterRepository::EditCommand::setPlayPan ( float  pan)

Definition at line 142 of file PlayParameterRepository.cpp.

References m_to, and PlayParameters::setPlayPan().

void PlayParameterRepository::EditCommand::setPlayGain ( float  gain)

Definition at line 148 of file PlayParameterRepository.cpp.

References m_to, and PlayParameters::setPlayGain().

void PlayParameterRepository::EditCommand::setPlayClipId ( QString  id)

Definition at line 154 of file PlayParameterRepository.cpp.

References m_to, and PlayParameters::setPlayClipId().

void PlayParameterRepository::EditCommand::execute ( )
overridevirtual

Implements Command.

Definition at line 160 of file PlayParameterRepository.cpp.

References m_params, and m_to.

void PlayParameterRepository::EditCommand::unexecute ( )
overridevirtual

Implements Command.

Definition at line 166 of file PlayParameterRepository.cpp.

References m_from, and m_params.

QString PlayParameterRepository::EditCommand::getName ( ) const
overridevirtual

Member Data Documentation

std::shared_ptr<PlayParameters> PlayParameterRepository::EditCommand::m_params
protected

Definition at line 77 of file PlayParameterRepository.h.

Referenced by EditCommand(), execute(), and unexecute().

PlayParameters PlayParameterRepository::EditCommand::m_from
protected

Definition at line 78 of file PlayParameterRepository.h.

Referenced by EditCommand(), getName(), and unexecute().

PlayParameters PlayParameterRepository::EditCommand::m_to
protected

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