You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
781 B
C++
32 lines
781 B
C++
#ifndef CSVWORLD_TABLEEDITIDACTION_HPP
|
|
#define CSVWORLD_TABLEEDITIDACTION_HPP
|
|
|
|
#include <QAction>
|
|
|
|
#include "../../model/world/columnbase.hpp"
|
|
#include "../../model/world/universalid.hpp"
|
|
|
|
class QTableView;
|
|
|
|
namespace CSVWorld
|
|
{
|
|
class TableEditIdAction : public QAction
|
|
{
|
|
const QTableView &mTable;
|
|
CSMWorld::UniversalId mCurrentId;
|
|
|
|
typedef std::pair<CSMWorld::ColumnBase::Display, QString> CellData;
|
|
CellData getCellData(int row, int column) const;
|
|
|
|
public:
|
|
TableEditIdAction(const QTableView &table, QWidget *parent = 0);
|
|
|
|
void setCell(int row, int column);
|
|
|
|
CSMWorld::UniversalId getCurrentId() const;
|
|
bool isValidIdCell(int row, int column) const;
|
|
};
|
|
}
|
|
|
|
#endif
|