mirror of https://github.com/OpenMW/openmw.git
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.
35 lines
790 B
C++
35 lines
790 B
C++
#ifndef CSVWORLD_TABLEEDITIDACTION_HPP
|
|
#define CSVWORLD_TABLEEDITIDACTION_HPP
|
|
|
|
#include <QAction>
|
|
#include <QString>
|
|
|
|
#include <utility>
|
|
|
|
#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 = nullptr);
|
|
|
|
void setCell(int row, int column);
|
|
|
|
CSMWorld::UniversalId getCurrentId() const;
|
|
bool isValidIdCell(int row, int column) const;
|
|
};
|
|
}
|
|
|
|
#endif
|