1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/apps/opencs/view/world/tablesubview.hpp

70 lines
1.6 KiB
C++
Raw Normal View History

#ifndef CSV_WORLD_TABLESUBVIEW_H
#define CSV_WORLD_TABLESUBVIEW_H
2012-12-11 13:22:43 +01:00
#include "../doc/subview.hpp"
2014-02-22 01:17:58 +04:00
#include <QtCore/qnamespace.h>
2014-02-20 16:55:51 +01:00
class QModelIndex;
2014-01-20 16:17:49 +01:00
namespace CSMWorld
{
class IdTable;
}
2012-12-11 13:22:43 +01:00
namespace CSMDoc
{
class Document;
}
2014-04-13 16:40:41 +02:00
namespace CSVFilter
{
class FilterBox;
}
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-11 13:22:43 +01:00
class TableSubView : public CSVDoc::SubView
{
Q_OBJECT
Table *mTable;
2013-07-25 14:29:56 +02:00
TableBottomBox *mBottom;
2014-04-13 16:40:41 +02:00
CSVFilter::FilterBox *mFilterBox;
public:
TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document,
const CreatorFactoryBase& creatorFactory, bool sorting);
2013-07-25 14:29:56 +02:00
virtual void setEditLock (bool locked);
2013-07-25 14:29:56 +02:00
virtual void updateUserSetting
(const QString& name, const QStringList &list);
2013-07-25 14:29:56 +02:00
virtual void setStatusBar (bool show);
2014-01-27 19:40:05 +01:00
2014-04-13 16:40:41 +02:00
virtual void useHint (const std::string& hint);
protected:
2014-02-21 12:48:39 +01:00
bool eventFilter(QObject* object, QEvent *event);
2014-01-19 11:44:47 +01:00
signals:
2014-01-27 19:40:05 +01:00
void cloneRequest(const std::string&,
2014-01-27 13:08:14 +01:00
const CSMWorld::UniversalId::Type);
private slots:
void editRequest (const CSMWorld::UniversalId& id, const std::string& hint);
2014-01-21 08:27:29 +01:00
void cloneRequest (const CSMWorld::UniversalId& toClone);
2014-02-20 16:55:51 +01:00
void createFilterRequest(std::vector< CSMWorld::UniversalId >& types,
Qt::DropAction action);
};
}
#endif