OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSMWorld::CopyLandTexturesCommand Class Reference

This command is used to fix LandTexture records and texture indices after cloning a Land. See ImportLandTexturesCommand for details. More...

#include <commands.hpp>

Inheritance diagram for CSMWorld::CopyLandTexturesCommand:
Collaboration diagram for CSMWorld::CopyLandTexturesCommand:

Public Member Functions

 CopyLandTexturesCommand (IdTable &landTable, IdTable &ltexTable, const std::string &origin, const std::string &dest, QUndoCommand *parent=nullptr)
 
- Public Member Functions inherited from CSMWorld::ImportLandTexturesCommand
 ImportLandTexturesCommand (IdTable &landTable, IdTable &ltexTable, QUndoCommand *parent)
 
void redo () override
 
void undo () override
 

Private Member Functions

const std::string & getOriginId () const override
 
const std::string & getDestinationId () const override
 
void onRedo () override
 
void onUndo () override
 

Private Attributes

std::string mOriginId
 
std::string mDestId
 

Additional Inherited Members

- Protected Types inherited from CSMWorld::ImportLandTexturesCommand
using DataType = LandTexturesColumn::DataType
 
- Protected Attributes inherited from CSMWorld::ImportLandTexturesCommand
IdTablemLands
 
IdTablemLtexs
 
DataType mOld
 
int mOldState
 
std::vector< std::string > mCreatedTextures
 

Detailed Description

This command is used to fix LandTexture records and texture indices after cloning a Land. See ImportLandTexturesCommand for details.

Constructor & Destructor Documentation

CSMWorld::CopyLandTexturesCommand::CopyLandTexturesCommand ( IdTable landTable,
IdTable ltexTable,
const std::string &  origin,
const std::string &  dest,
QUndoCommand parent = nullptr 
)

Member Function Documentation

const std::string & CSMWorld::CopyLandTexturesCommand::getDestinationId ( ) const
overrideprivatevirtual
const std::string & CSMWorld::CopyLandTexturesCommand::getOriginId ( ) const
overrideprivatevirtual
void CSMWorld::CopyLandTexturesCommand::onRedo ( )
inlineoverrideprivatevirtual
void CSMWorld::CopyLandTexturesCommand::onUndo ( )
inlineoverrideprivatevirtual

Member Data Documentation

std::string CSMWorld::CopyLandTexturesCommand::mDestId
private
std::string CSMWorld::CopyLandTexturesCommand::mOriginId
private

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