OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces
commands.hpp File Reference
#include "record.hpp"
#include <string>
#include <map>
#include <vector>
#include <QVariant>
#include <QUndoCommand>
#include <QModelIndex>
#include "universalid.hpp"
#include "nestedtablewrapper.hpp"
Include dependency graph for commands.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CSMWorld::ModifyCommand
 
class  CSMWorld::CreateCommand
 
class  CSMWorld::CloneCommand
 
class  CSMWorld::RevertCommand
 
class  CSMWorld::DeleteCommand
 
class  CSMWorld::ReorderRowsCommand
 
class  CSMWorld::CreatePathgridCommand
 
class  CSMWorld::UpdateCellCommand
 Update cell ID according to x/y-coordinates. More...
 
class  CSMWorld::NestedTableStoring
 
class  CSMWorld::DeleteNestedCommand
 
class  CSMWorld::AddNestedCommand
 

Namespaces

 CSMWorld
 Class for holding the model. Uses typical qt table abstraction/interface for granting access to the individiual fields of the records, Some records are holding nested data (for instance inventory list of the npc). In cases like this, table model offers interface to access nested data in the qt way - that is specify parent. Since some of those nested data require multiple columns to represent information, single int (default way to index model in the qmodelindex) is not sufficiant. Therefore tablemodelindex class can hold two ints for the sake of indexing two dimensions of the table. This model does not support multiple levels of the nested data. Vast majority of methods makes sense only for the top level data.