1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 13:53:53 +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 12:22:43 +00:00
#include "../doc/subview.hpp"
2022-10-19 17:02:00 +00:00
#include <QModelIndex>
#include <QVariant>
2022-10-19 17:02:00 +00:00
#include <QWidget>
2022-10-19 17:02:00 +00:00
#include <string>
#include <vector>
#include <apps/opencs/model/world/universalid.hpp>
class QEvent;
class QObject;
class QWidget;
2014-01-20 15:17:49 +00:00
2012-12-11 12:22:43 +00:00
namespace CSMDoc
{
class Document;
}
2014-04-13 14:40:41 +00:00
namespace CSVFilter
{
class FilterBox;
}
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-11 12:22:43 +00:00
class TableSubView : public CSVDoc::SubView
{
Q_OBJECT
Table* mTable;
2013-07-25 12:29:56 +00:00
TableBottomBox* mBottom;
2014-04-13 14:40:41 +00: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 12:29:56 +00:00
void setStatusBar(bool show) override;
2013-07-25 12:29:56 +00:00
void useHint(const std::string& hint) override;
2014-01-27 18:40:05 +00:00
protected:
bool eventFilter(QObject* object, QEvent* event) override;
2014-04-13 14:40:41 +00:00
signals:
void cloneRequest(const std::string&, const CSMWorld::UniversalId::Type);
2014-02-21 11:48:39 +00:00
2014-01-27 18:40:05 +00: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 07:27:29 +00:00
public slots:
void requestFocus(const std::string& id);
};
}
#endif