2012-12-03 22:03:02 +01:00
|
|
|
#ifndef CSV_WORLD_TABLESUBVIEW_H
|
|
|
|
#define CSV_WORLD_TABLESUBVIEW_H
|
|
|
|
|
2012-12-11 13:22:43 +01:00
|
|
|
#include "../doc/subview.hpp"
|
2012-12-03 22:03:02 +01:00
|
|
|
|
2012-12-13 13:35:08 +01:00
|
|
|
class QModelIndex;
|
2012-12-03 22:03:02 +01:00
|
|
|
|
2014-01-20 16:17:49 +01:00
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class IdTable;
|
|
|
|
}
|
|
|
|
|
2012-12-11 13:22:43 +01:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
2012-12-03 22:03:02 +01:00
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class Table;
|
2013-07-25 14:29:56 +02:00
|
|
|
class TableBottomBox;
|
2013-07-26 12:42:15 +02:00
|
|
|
class CreatorFactoryBase;
|
2012-12-03 22:03:02 +01:00
|
|
|
|
2012-12-11 13:22:43 +01:00
|
|
|
class TableSubView : public CSVDoc::SubView
|
2012-12-03 22:03:02 +01:00
|
|
|
{
|
2012-12-13 13:35:08 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
2012-12-03 22:03:02 +01:00
|
|
|
Table *mTable;
|
2013-07-25 14:29:56 +02:00
|
|
|
TableBottomBox *mBottom;
|
2012-12-03 22:03:02 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2013-07-26 12:34:30 +02:00
|
|
|
TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document,
|
2013-10-31 13:40:14 +01:00
|
|
|
const CreatorFactoryBase& creatorFactory, bool sorting);
|
2013-07-25 14:29:56 +02:00
|
|
|
|
2012-12-03 22:03:02 +01:00
|
|
|
virtual void setEditLock (bool locked);
|
2013-07-25 14:29:56 +02:00
|
|
|
|
|
|
|
virtual void updateEditorSetting (const QString& key, const QString& value);
|
|
|
|
|
|
|
|
virtual void setStatusBar (bool show);
|
2014-01-19 11:44:47 +01:00
|
|
|
|
|
|
|
signals:
|
2014-01-21 08:27:29 +01:00
|
|
|
void cloneRequest(const std::string&,
|
|
|
|
const CSMWorld::UniversalId::Type,
|
|
|
|
const CSMWorld::UniversalId::ArgumentType);
|
2012-12-13 13:35:08 +01:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
2013-07-21 17:53:39 +02:00
|
|
|
void editRequest (int row);
|
2014-01-21 08:27:29 +01:00
|
|
|
void cloneRequest (const CSMWorld::UniversalId& toClone);
|
2012-12-03 22:03:02 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2013-06-15 06:40:18 -05:00
|
|
|
#endif
|