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
|
|
|
|
2014-02-21 21:17:58 +00:00
|
|
|
#include <QtCore/qnamespace.h>
|
2014-02-20 15:55:51 +00:00
|
|
|
|
2012-12-13 12:35:08 +00:00
|
|
|
class QModelIndex;
|
2012-12-03 21:03:02 +00:00
|
|
|
|
2014-01-20 15:17:49 +00:00
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class IdTable;
|
|
|
|
}
|
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
2012-12-03 21:03:02 +00:00
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class Table;
|
2013-07-25 12:29:56 +00:00
|
|
|
class TableBottomBox;
|
2013-07-26 10:42:15 +00:00
|
|
|
class CreatorFactoryBase;
|
2012-12-03 21:03:02 +00:00
|
|
|
|
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;
|
2013-07-25 12:29:56 +00:00
|
|
|
TableBottomBox *mBottom;
|
2012-12-03 21:03:02 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2013-07-26 10:34:30 +00:00
|
|
|
TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document,
|
2013-10-31 12:40:14 +00:00
|
|
|
const CreatorFactoryBase& creatorFactory, bool sorting);
|
2013-07-25 12:29:56 +00:00
|
|
|
|
2012-12-03 21:03:02 +00:00
|
|
|
virtual void setEditLock (bool locked);
|
2013-07-25 12:29:56 +00:00
|
|
|
|
|
|
|
virtual void updateEditorSetting (const QString& key, const QString& value);
|
|
|
|
|
|
|
|
virtual void setStatusBar (bool show);
|
2014-01-27 18:40:05 +00:00
|
|
|
|
2014-02-21 12:30:52 +00:00
|
|
|
protected:
|
2014-02-21 11:48:39 +00:00
|
|
|
bool eventFilter(QObject* object, QEvent *event);
|
|
|
|
|
2014-01-19 10:44:47 +00:00
|
|
|
signals:
|
2014-01-27 18:40:05 +00:00
|
|
|
void cloneRequest(const std::string&,
|
2014-01-27 12:08:14 +00:00
|
|
|
const CSMWorld::UniversalId::Type);
|
2014-02-20 15:55:51 +00:00
|
|
|
void createFilterRequest(std::vector<std::pair<std::string, std::vector<std::string> > >& filterSource,
|
|
|
|
Qt::DropAction action);
|
2014-02-21 12:30:52 +00:00
|
|
|
void useFilterRequest(const std::string& idOfFilter);
|
2012-12-13 12:35:08 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
2014-03-02 21:34:41 +00:00
|
|
|
void editRequest (const CSMWorld::UniversalId& id, const std::string& hint);
|
2014-01-21 07:27:29 +00:00
|
|
|
void cloneRequest (const CSMWorld::UniversalId& toClone);
|
2014-02-20 15:55:51 +00:00
|
|
|
void createFilterRequest(std::vector< CSMWorld::UniversalId >& types,
|
|
|
|
Qt::DropAction action);
|
2012-12-03 21:03:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2013-06-15 11:40:18 +00:00
|
|
|
#endif
|