You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/opencs/view/filter/recordfilterbox.hpp

45 lines
881 B
C++

#ifndef CSV_FILTER_RECORDFILTERBOX_H
#define CSV_FILTER_RECORDFILTERBOX_H
#include <QWidget>
#include <QtCore/qnamespace.h>
#include <QHBoxLayout>
#include "../../model/filter/node.hpp"
namespace CSMWorld
{
class Data;
}
namespace CSVFilter
{
class EditWidget;
class RecordFilterBox : public QWidget
{
Q_OBJECT
EditWidget *mEdit;
public:
RecordFilterBox (CSMWorld::Data& data, QWidget *parent = 0);
void setFilter (const std::string& filter);
void useFilterRequest(const std::string& idOfFilter);
void createFilterRequest(std::vector<std::pair<std::string, std::vector<std::string> > >& filterSource,
Qt::DropAction action);
signals:
void filterChanged (std::shared_ptr<CSMFilter::Node> filter);
};
}
#endif