2015-06-20 14:33:36 +00:00
|
|
|
#ifndef CSV_WIDGET_DROPLINEEDIT_HPP
|
|
|
|
#define CSV_WIDGET_DROPLINEEDIT_HPP
|
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
2015-06-20 15:29:31 +00:00
|
|
|
#include "../../model/world/columnbase.hpp"
|
2015-06-20 14:33:36 +00:00
|
|
|
|
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class TableMimeData;
|
2015-06-21 14:16:13 +00:00
|
|
|
class UniversalId;
|
2015-06-20 14:33:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSVWidget
|
|
|
|
{
|
|
|
|
class DropLineEdit : public QLineEdit
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2015-06-21 14:16:13 +00:00
|
|
|
CSMWorld::ColumnBase::Display mDropType;
|
|
|
|
///< The accepted Display type for this LineEdit.
|
2015-06-20 14:33:36 +00:00
|
|
|
|
|
|
|
public:
|
2015-06-21 14:16:13 +00:00
|
|
|
DropLineEdit(CSMWorld::ColumnBase::Display type, QWidget *parent = 0);
|
2015-06-20 14:33:36 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void dragEnterEvent(QDragEnterEvent *event);
|
|
|
|
void dragMoveEvent(QDragMoveEvent *event);
|
|
|
|
void dropEvent(QDropEvent *event);
|
|
|
|
|
|
|
|
signals:
|
2015-06-20 17:52:47 +00:00
|
|
|
void tableMimeDataDropped(const CSMWorld::UniversalId &id, const CSMDoc::Document *document);
|
2015-06-20 14:33:36 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|