#include <commanddispatcher.hpp>
- Parameters
-
id | ID of the table the commands should operate on primarily. |
bool CSMWorld::CommandDispatcher::canDelete |
( |
| ) |
const |
bool CSMWorld::CommandDispatcher::canRevert |
( |
| ) |
const |
void CSMWorld::CommandDispatcher::executeDelete |
( |
| ) |
|
|
slot |
void CSMWorld::CommandDispatcher::executeExtendedDelete |
( |
| ) |
|
|
slot |
void CSMWorld::CommandDispatcher::executeExtendedRevert |
( |
| ) |
|
|
slot |
void CSMWorld::CommandDispatcher::executeModify |
( |
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index, |
|
|
const QVariant & |
new_ |
|
) |
| |
Add a modify command to the undo stack.
- Attention
- model must either be a model for the table operated on by this dispatcher or a proxy of it.
void CSMWorld::CommandDispatcher::executeRevert |
( |
| ) |
|
|
slot |
std::vector< std::string > CSMWorld::CommandDispatcher::getDeletableRecords |
( |
| ) |
const |
|
private |
Return IDs of the record collection that can also be affected when operating on the record collection this dispatcher is used for.
- Note
- The returned collection contains the ID of the record collection this dispatcher is used for. However if that record collection does not support the extended mode, the returned vector will be empty instead.
- Todo:
- add other cell-specific types
std::vector< std::string > CSMWorld::CommandDispatcher::getRevertableRecords |
( |
| ) |
const |
|
private |
- Todo:
- Reverting temporarily disabled on tables that support reordering, because revert logic currently can not handle reordering.
void CSMWorld::CommandDispatcher::setEditLock |
( |
bool |
locked | ) |
|
void CSMWorld::CommandDispatcher::setExtendedTypes |
( |
const std::vector< UniversalId > & |
types | ) |
|
Set record lists selected by the user for extended operations.
void CSMWorld::CommandDispatcher::setSelection |
( |
const std::vector< std::string > & |
selection | ) |
|
std::vector<UniversalId> CSMWorld::CommandDispatcher::mExtendedTypes |
|
private |
bool CSMWorld::CommandDispatcher::mLocked |
|
private |
std::vector<std::string> CSMWorld::CommandDispatcher::mSelection |
|
private |
The documentation for this class was generated from the following files: