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::TouchLandCommand Class Reference

This command brings a land record into the current plugin, adding LandTexture records and modifying texture indices as needed. More...

#include <commands.hpp>

Inheritance diagram for CSMWorld::TouchLandCommand:
Collaboration diagram for CSMWorld::TouchLandCommand:

Public Member Functions

 TouchLandCommand (IdTable &landTable, IdTable &ltexTable, const std::string &id, 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 mId
 
std::unique_ptr< RecordBasemOld
 
bool mChanged
 

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 brings a land record into the current plugin, adding LandTexture records and modifying texture indices as needed.

Note
See ImportLandTextures for more details.

Constructor & Destructor Documentation

CSMWorld::TouchLandCommand::TouchLandCommand ( IdTable landTable,
IdTable ltexTable,
const std::string &  id,
QUndoCommand parent = nullptr 
)

Here is the call graph for this function:

Member Function Documentation

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

Member Data Documentation

bool CSMWorld::TouchLandCommand::mChanged
private
std::string CSMWorld::TouchLandCommand::mId
private
std::unique_ptr<RecordBase> CSMWorld::TouchLandCommand::mOld
private

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