OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nestedtable.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_NESTEDTABLE_H
2 #define CSV_WORLD_NESTEDTABLE_H
3 
4 #include <QEvent>
5 
6 #include "dragrecordtable.hpp"
7 
8 class QAction;
9 class QContextMenuEvent;
10 
11 namespace CSMWorld
12 {
13  class NestedTableProxyModel;
14  class UniversalId;
15  class CommandDispatcher;
16 }
17 
18 namespace CSMDoc
19 {
20  class Document;
21 }
22 
23 namespace CSVWorld
24 {
25  class TableEditIdAction;
26 
28  {
29  Q_OBJECT
30 
36 
37  public:
38  NestedTable(CSMDoc::Document& document,
41  QWidget* parent = NULL,
42  bool editable = true,
43  bool fixedRows = false);
44 
45  virtual std::vector<CSMWorld::UniversalId> getDraggedRecords() const;
46 
47  private:
48  void contextMenuEvent (QContextMenuEvent *event);
49 
50  private slots:
52 
54 
55  void editCell();
56 
57  signals:
58  void editRequest(const CSMWorld::UniversalId &id, const std::string &hint);
59  };
60 }
61 
62 #endif
void addNewRowActionTriggered()
Definition: nestedtable.cpp:128
void editCell()
Definition: nestedtable.cpp:141
static const struct @2 signals[]
QAction * mRemoveRowAction
Definition: nestedtable.hpp:32
Definition: dragrecordtable.hpp:24
virtual std::vector< CSMWorld::UniversalId > getDraggedRecords() const
Definition: nestedtable.cpp:82
Definition: tableeditidaction.hpp:13
TableEditIdAction * mEditIdAction
Definition: nestedtable.hpp:33
void removeRowActionTriggered()
Definition: nestedtable.cpp:115
QAction * mAddNewRowAction
Definition: nestedtable.hpp:31
Definition: commanddispatcher.hpp:20
void contextMenuEvent(QContextMenuEvent *event)
Definition: nestedtable.cpp:88
Definition: nestedtableproxymodel.hpp:22
Definition: document.hpp:57
CSMWorld::CommandDispatcher * mDispatcher
Definition: nestedtable.hpp:35
NestedTable(CSMDoc::Document &document, CSMWorld::UniversalId id, CSMWorld::NestedTableProxyModel *model, QWidget *parent=NULL, bool editable=true, bool fixedRows=false)
Definition: nestedtable.cpp:19
void editRequest(const CSMWorld::UniversalId &id, const std::string &hint)
CSMWorld::NestedTableProxyModel * mModel
Definition: nestedtable.hpp:34
Definition: nestedtable.hpp:27
Definition: universalid.hpp:12