2012-11-29 18:09:06 +00:00
|
|
|
#ifndef CSV_WORLD_TABLE_H
|
|
|
|
#define CSV_WORLD_TABLE_H
|
|
|
|
|
2012-11-30 12:58:10 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2012-11-29 18:09:06 +00:00
|
|
|
#include <QTableView>
|
|
|
|
|
|
|
|
class QUndoStack;
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class Data;
|
|
|
|
class UniversalId;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSVWorld
|
|
|
|
{
|
2012-11-30 12:58:10 +00:00
|
|
|
class CommandDelegate;
|
|
|
|
|
2012-11-29 18:09:06 +00:00
|
|
|
///< Table widget
|
|
|
|
class Table : public QTableView
|
|
|
|
{
|
2012-11-30 12:58:10 +00:00
|
|
|
std::vector<CommandDelegate *> mDelegates;
|
|
|
|
|
2012-11-29 18:09:06 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
Table (const CSMWorld::UniversalId& id, CSMWorld::Data& data, QUndoStack& undoStack);
|
2012-11-30 12:58:10 +00:00
|
|
|
|
|
|
|
void setEditLock (bool locked);
|
2012-11-29 18:09:06 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|