OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tablesubview.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_TABLESUBVIEW_H
2 #define CSV_WORLD_TABLESUBVIEW_H
3 
4 #include "../doc/subview.hpp"
5 
6 #include <QtCore/qnamespace.h>
7 
8 class QModelIndex;
9 
10 namespace CSMWorld
11 {
12  class IdTable;
13 }
14 
15 namespace CSMDoc
16 {
17  class Document;
18 }
19 
20 namespace CSVFilter
21 {
22  class FilterBox;
23 }
24 
25 namespace CSVWorld
26 {
27  class Table;
28  class TableBottomBox;
29  class CreatorFactoryBase;
30 
32  {
33  Q_OBJECT
34 
38 
39  public:
40 
42  const CreatorFactoryBase& creatorFactory, bool sorting);
43 
44  virtual void setEditLock (bool locked);
45 
46  virtual void setStatusBar (bool show);
47 
48  virtual void useHint (const std::string& hint);
49 
50  protected:
51  bool eventFilter(QObject* object, QEvent *event);
52 
53  signals:
54  void cloneRequest(const std::string&,
56 
57  private slots:
58 
59  void editRequest (const CSMWorld::UniversalId& id, const std::string& hint);
60  void cloneRequest (const CSMWorld::UniversalId& toClone);
61  void createFilterRequest(std::vector< CSMWorld::UniversalId >& types,
62  Qt::DropAction action);
63  };
64 }
65 
66 #endif
TableBottomBox * mBottom
Definition: tablesubview.hpp:36
static const struct @2 signals[]
virtual void useHint(const std::string &hint)
Default implementation: ignored.
Definition: tablesubview.cpp:106
bool event(QEvent *event)
Definition: subview.cpp:9
bool eventFilter(QObject *object, QEvent *event)
Definition: tablesubview.cpp:145
Type
Definition: universalid.hpp:40
Table * mTable
Definition: tablesubview.hpp:35
TableSubView(const CSMWorld::UniversalId &id, CSMDoc::Document &document, const CreatorFactoryBase &creatorFactory, bool sorting)
Definition: tablesubview.cpp:19
Definition: tablebottombox.hpp:23
void cloneRequest(const std::string &, const CSMWorld::UniversalId::Type)
Definition: tablesubview.hpp:31
Definition: filterbox.hpp:21
CSVFilter::FilterBox * mFilterBox
Definition: tablesubview.hpp:37
Base class for Creator factory.
Definition: creator.hpp:54
Definition: subview.hpp:23
Definition: document.hpp:57
virtual void setEditLock(bool locked)
Definition: tablesubview.cpp:90
Table widget.
Definition: table.hpp:39
virtual void setStatusBar(bool show)
Default implementation: ignored.
Definition: tablesubview.cpp:101
void editRequest(const CSMWorld::UniversalId &id, const std::string &hint)
Definition: tablesubview.cpp:96
void createFilterRequest(std::vector< CSMWorld::UniversalId > &types, Qt::DropAction action)
Definition: tablesubview.cpp:120
Definition: universalid.hpp:12