2012-12-03 21:03:02 +00:00
|
|
|
#ifndef CSV_WORLD_TABLESUBVIEW_H
|
|
|
|
#define CSV_WORLD_TABLESUBVIEW_H
|
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
#include "../doc/subview.hpp"
|
2012-12-03 21:03:02 +00:00
|
|
|
|
2012-12-13 12:35:08 +00:00
|
|
|
class QModelIndex;
|
2012-12-03 21:03:02 +00:00
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
2012-12-03 21:03:02 +00:00
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class Table;
|
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
class TableSubView : public CSVDoc::SubView
|
2012-12-03 21:03:02 +00:00
|
|
|
{
|
2012-12-13 12:35:08 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2012-12-03 21:03:02 +00:00
|
|
|
Table *mTable;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document, bool createAndDelete);
|
2012-12-03 21:03:02 +00:00
|
|
|
|
|
|
|
virtual void setEditLock (bool locked);
|
2012-12-13 12:35:08 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void rowActivated (const QModelIndex& index);
|
2012-12-03 21:03:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|