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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 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"
2022-10-19 19:02:00 +02:00
#include <QModelIndex>
#include <QVariant>
2022-10-19 19:02:00 +02:00
#include <QWidget>
2022-10-19 19:02:00 +02:00
#include <string>
#include <vector>
#include <apps/opencs/model/world/universalid.hpp>
class QEvent;
class QObject;
class QWidget;
2014-01-20 16:17:49 +01:00
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;
2021-07-24 20:00:25 +00:00
bool mShowOptions;
QWidget* mOptions;
public:
TableSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document,
const CreatorFactoryBase& creatorFactory, bool sorting);
void setEditLock(bool locked) override;
2013-07-25 14:29:56 +02:00
void setStatusBar(bool show) override;
2013-07-25 14:29:56 +02:00
void useHint(const std::string& hint) override;
2014-01-27 19:40:05 +01:00
protected:
bool eventFilter(QObject* object, QEvent* event) override;
2014-04-13 16:40:41 +02:00
signals:
void cloneRequest(const std::string&, const CSMWorld::UniversalId::Type);
2014-02-21 12:48:39 +01:00
2014-01-27 19:40:05 +01:00
private slots:
void editRequest(const CSMWorld::UniversalId& id, const std::string& hint);
void cloneRequest(const CSMWorld::UniversalId& toClone);
void createFilterRequest(std::vector<CSMWorld::UniversalId>& types,
const std::pair<QVariant, std::string>& columnSearchData, Qt::DropAction action);
2021-07-24 20:00:25 +00:00
void toggleOptions();
2014-01-21 08:27:29 +01:00
public slots:
void requestFocus(const std::string& id);
};
}
#endif