OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tableeditidaction.hpp
Go to the documentation of this file.
1 #ifndef CSVWORLD_TABLEEDITIDACTION_HPP
2 #define CSVWORLD_TABLEEDITIDACTION_HPP
3 
4 #include <QAction>
5 
6 #include "../../model/world/columnbase.hpp"
7 #include "../../model/world/universalid.hpp"
8 
9 class QTableView;
10 
11 namespace CSVWorld
12 {
13  class TableEditIdAction : public QAction
14  {
17 
18  typedef std::pair<CSMWorld::ColumnBase::Display, QString> CellData;
19  CellData getCellData(int row, int column) const;
20 
21  public:
22  TableEditIdAction(const QTableView &table, QWidget *parent = 0);
23 
24  void setCell(int row, int column);
25 
27  bool isValidIdCell(int row, int column) const;
28  };
29 }
30 
31 #endif
std::pair< CSMWorld::ColumnBase::Display, QString > CellData
Definition: tableeditidaction.hpp:18
CSMWorld::UniversalId mCurrentId
Definition: tableeditidaction.hpp:16
TableEditIdAction(const QTableView &table, QWidget *parent=0)
Definition: tableeditidaction.cpp:19
bool isValidIdCell(int row, int column) const
Definition: tableeditidaction.cpp:42
CSMWorld::UniversalId getCurrentId() const
Definition: tableeditidaction.cpp:37
const QTableView & mTable
Definition: tableeditidaction.hpp:15
Definition: tableeditidaction.hpp:13
CellData getCellData(int row, int column) const
Definition: tableeditidaction.cpp:7
void setCell(int row, int column)
Definition: tableeditidaction.cpp:25
Definition: universalid.hpp:12