OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
recordfilterbox.hpp
Go to the documentation of this file.
1 #ifndef CSV_FILTER_RECORDFILTERBOX_H
2 #define CSV_FILTER_RECORDFILTERBOX_H
3 
4 #include <boost/shared_ptr.hpp>
5 
6 #include <QWidget>
7 #include <QtCore/qnamespace.h>
8 
9 #include <QHBoxLayout>
10 
11 #include "../../model/filter/node.hpp"
12 
13 namespace CSMWorld
14 {
15  class Data;
16 }
17 
18 namespace CSVFilter
19 {
20  class EditWidget;
21 
22  class RecordFilterBox : public QWidget
23  {
24  Q_OBJECT
25 
27 
28  public:
29 
30  RecordFilterBox (CSMWorld::Data& data, QWidget *parent = 0);
31 
32  void setFilter (const std::string& filter);
33 
34  void useFilterRequest(const std::string& idOfFilter);
35 
36  void createFilterRequest(std::vector<std::pair<std::string, std::vector<std::string> > >& filterSource,
37  Qt::DropAction action);
38 
39  signals:
40 
41  void filterChanged (boost::shared_ptr<CSMFilter::Node> filter);
42  };
43 
44 }
45 
46 #endif
EditWidget * mEdit
Definition: recordfilterbox.hpp:26
static const struct @2 signals[]
void setFilter(const std::string &filter)
Definition: recordfilterbox.cpp:30
Definition: editwidget.hpp:22
RecordFilterBox(CSMWorld::Data &data, QWidget *parent=0)
Definition: recordfilterbox.cpp:8
Definition: data.hpp:77
Definition: recordfilterbox.hpp:22
void filterChanged(boost::shared_ptr< CSMFilter::Node > filter)
void createFilterRequest(std::vector< std::pair< std::string, std::vector< std::string > > > &filterSource, Qt::DropAction action)
Definition: recordfilterbox.cpp:36
void useFilterRequest(const std::string &idOfFilter)