1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:49:56 +00:00
openmw-tes3mp/apps/opencs/view/world/nestedtable.hpp

53 lines
1 KiB
C++
Raw Normal View History

2014-06-29 19:12:31 +00:00
#ifndef CSV_WORLD_NESTEDTABLE_H
#define CSV_WORLD_NESTEDTABLE_H
2014-06-29 19:12:31 +00:00
#include <QEvent>
2014-06-29 19:12:31 +00:00
2015-06-21 18:35:00 +00:00
#include "dragrecordtable.hpp"
2014-06-29 19:12:31 +00:00
class QAction;
2014-06-30 18:06:18 +00:00
class QContextMenuEvent;
2014-06-29 19:12:31 +00:00
namespace CSMWorld
{
2015-03-30 05:41:55 +00:00
class NestedTableProxyModel;
class UniversalId;
2015-04-24 23:39:37 +00:00
class CommandDispatcher;
}
namespace CSMDoc
{
class Document;
2014-06-29 19:12:31 +00:00
}
namespace CSVWorld
{
2015-06-21 18:35:00 +00:00
class NestedTable : public DragRecordTable
2014-06-29 19:12:31 +00:00
{
Q_OBJECT
QAction *mAddNewRowAction;
QAction *mRemoveRowAction;
2015-03-30 05:41:55 +00:00
CSMWorld::NestedTableProxyModel* mModel;
2015-04-24 23:39:37 +00:00
CSMWorld::CommandDispatcher *mDispatcher;
2014-06-29 19:12:31 +00:00
public:
NestedTable(CSMDoc::Document& document,
2015-04-24 23:39:37 +00:00
CSMWorld::UniversalId id,
2015-03-30 05:41:55 +00:00
CSMWorld::NestedTableProxyModel* model,
QWidget* parent = NULL);
2015-06-21 18:35:00 +00:00
virtual std::vector<CSMWorld::UniversalId> getDraggedRecords() const;
2014-06-30 18:06:18 +00:00
private:
void contextMenuEvent (QContextMenuEvent *event);
2014-07-01 18:52:27 +00:00
private slots:
void removeRowActionTriggered();
2014-07-01 18:52:27 +00:00
void addNewRowActionTriggered();
2014-06-29 19:12:31 +00:00
};
}
#endif