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

61 lines
1.2 KiB
C++
Raw Normal View History

2014-12-06 13:01:55 +01:00
#ifndef CSV_TOOLS_REPORTTABLE_H
#define CSV_TOOLS_REPORTTABLE_H
#include "../world/dragrecordtable.hpp"
2014-12-06 14:17:56 +01:00
class QAction;
2014-12-06 13:01:55 +01:00
namespace CSMTools
{
class ReportModel;
}
namespace CSVWorld
{
class CommandDelegate;
}
namespace CSVTools
{
class ReportTable : public CSVWorld::DragRecordTable
{
Q_OBJECT
CSMTools::ReportModel *mModel;
CSVWorld::CommandDelegate *mIdTypeDelegate;
2014-12-06 14:17:56 +01:00
QAction *mShowAction;
QAction *mRemoveAction;
2014-12-06 13:01:55 +01:00
2014-12-06 13:19:43 +01:00
private:
2014-12-06 14:17:56 +01:00
void contextMenuEvent (QContextMenuEvent *event);
2014-12-06 13:19:43 +01:00
void mouseMoveEvent (QMouseEvent *event);
virtual void mouseDoubleClickEvent (QMouseEvent *event);
2014-12-06 13:01:55 +01:00
public:
ReportTable (CSMDoc::Document& document, const CSMWorld::UniversalId& id,
QWidget *parent = 0);
virtual std::vector<CSMWorld::UniversalId> getDraggedRecords() const;
void updateUserSetting (const QString& name, const QStringList& list);
void clear();
2014-12-06 13:01:55 +01:00
private slots:
2014-12-06 14:17:56 +01:00
void showSelection();
void removeSelection();
2014-12-06 13:01:55 +01:00
signals:
void editRequest (const CSMWorld::UniversalId& id, const std::string& hint);
};
}
#endif