OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
filterbox.hpp
Go to the documentation of this file.
1 #ifndef CSV_FILTER_FILTERBOX_H
2 #define CSV_FILTER_FILTERBOX_H
3 
4 #include <vector>
5 
6 #include <QWidget>
7 #include <QtCore/qnamespace.h>
8 
9 #include "../../model/filter/node.hpp"
10 #include "../../model/world/universalid.hpp"
11 
12 namespace CSMWorld
13 {
14  class Data;
15 }
16 
17 namespace CSVFilter
18 {
19  class RecordFilterBox;
20 
21  class FilterBox : public QWidget
22  {
23  Q_OBJECT
24 
26 
27  public:
28  FilterBox (CSMWorld::Data& data, QWidget *parent = 0);
29 
30  void setRecordFilter (const std::string& filter);
31 
32  void createFilterRequest(std::vector<std::pair<std::string, std::vector<std::string> > >& filterSource,
33  Qt::DropAction action);
34 
35 
36  private:
37  void dragEnterEvent (QDragEnterEvent* event);
38 
39  void dropEvent (QDropEvent* event);
40 
41  void dragMoveEvent(QDragMoveEvent *event);
42 
43  signals:
44  void recordFilterChanged (boost::shared_ptr<CSMFilter::Node> filter);
45  void recordDropped (std::vector<CSMWorld::UniversalId>& types, Qt::DropAction action);
46  };
47 
48 }
49 
50 #endif
51 
void setRecordFilter(const std::string &filter)
Definition: filterbox.cpp:30
static const struct @2 signals[]
void dragEnterEvent(QDragEnterEvent *event)
Definition: filterbox.cpp:46
void recordDropped(std::vector< CSMWorld::UniversalId > &types, Qt::DropAction action)
FilterBox(CSMWorld::Data &data, QWidget *parent=0)
Definition: filterbox.cpp:10
Definition: filterbox.hpp:21
void recordFilterChanged(boost::shared_ptr< CSMFilter::Node > filter)
Definition: data.hpp:77
void dragMoveEvent(QDragMoveEvent *event)
Definition: filterbox.cpp:51
Definition: recordfilterbox.hpp:22
void createFilterRequest(std::vector< std::pair< std::string, std::vector< std::string > > > &filterSource, Qt::DropAction action)
Definition: filterbox.cpp:56
RecordFilterBox * mRecordFilterBox
Definition: filterbox.hpp:25
void dropEvent(QDropEvent *event)
Definition: filterbox.cpp:35