OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reporttable.hpp
Go to the documentation of this file.
1 #ifndef CSV_TOOLS_REPORTTABLE_H
2 #define CSV_TOOLS_REPORTTABLE_H
3 
4 #include <map>
5 
6 #include "../world/dragrecordtable.hpp"
7 
8 class QAction;
10 
11 namespace CSMTools
12 {
13  class ReportModel;
14 }
15 
16 namespace CSMPrefs
17 {
18  class Setting;
19 }
20 
21 namespace CSVWorld
22 {
23  class CommandDelegate;
24 }
25 
26 namespace CSVTools
27 {
29  {
30  Q_OBJECT
31 
33  {
38  };
39 
47  std::map<Qt::KeyboardModifiers, DoubleClickAction> mDoubleClickActions;
49 
50  private:
51 
52  void contextMenuEvent (QContextMenuEvent *event);
53 
54  void mouseMoveEvent (QMouseEvent *event);
55 
56  virtual void mouseDoubleClickEvent (QMouseEvent *event);
57 
58  public:
59 
65  bool richTextDescription, int refreshState = 0, QWidget *parent = 0);
66 
67  virtual std::vector<CSMWorld::UniversalId> getDraggedRecords() const;
68 
69  void clear();
70 
76  std::vector<int> getReplaceIndices (bool selection) const;
77 
79  void flagAsReplaced (int index);
80 
81  private slots:
82 
83  void settingChanged (const CSMPrefs::Setting *setting);
84 
85  void showSelection();
86 
87  void removeSelection();
88 
89  public slots:
90 
91  void stateChanged (int state, CSMDoc::Document *document);
92 
93  signals:
94 
95  void editRequest (const CSMWorld::UniversalId& id, const std::string& hint);
96 
97  void replaceRequest();
98 
99  void refreshRequest();
100  };
101 }
102 
103 #endif
static const struct @2 signals[]
Definition: reporttable.hpp:36
void removeSelection()
Definition: reporttable.cpp:319
void showSelection()
Definition: reporttable.cpp:307
std::map< Qt::KeyboardModifiers, DoubleClickAction > mDoubleClickActions
Definition: reporttable.hpp:47
Definition: dragrecordtable.hpp:24
Definition: reportmodel.hpp:15
QSortFilterProxyModel * mProxyModel
Definition: reporttable.hpp:40
void clear()
Definition: reporttable.cpp:339
CSMTools::ReportModel * mModel
Definition: reporttable.hpp:41
void mouseMoveEvent(QMouseEvent *event)
Definition: reporttable.cpp:88
Definition: reporttable.hpp:35
void editRequest(const CSMWorld::UniversalId &id, const std::string &hint)
Definition: util.hpp:99
QAction * mShowAction
Definition: reporttable.hpp:43
virtual void mouseDoubleClickEvent(QMouseEvent *event)
Definition: reporttable.cpp:94
CSVWorld::CommandDelegate * mIdTypeDelegate
Definition: reporttable.hpp:42
Definition: setting.hpp:22
void settingChanged(const CSMPrefs::Setting *setting)
Definition: reporttable.cpp:269
Definition: reporttable.hpp:28
Definition: document.hpp:57
void flagAsReplaced(int index)
Definition: reporttable.cpp:264
void stateChanged(int state, CSMDoc::Document *document)
Definition: reporttable.cpp:344
DoubleClickAction
Definition: reporttable.hpp:32
Definition: reporttable.hpp:34
QAction * mRefreshAction
Definition: reporttable.hpp:46
QAction * mRemoveAction
Definition: reporttable.hpp:44
virtual std::vector< CSMWorld::UniversalId > getDraggedRecords() const
Definition: reporttable.cpp:209
QAction * mReplaceAction
Definition: reporttable.hpp:45
int mRefreshState
Definition: reporttable.hpp:48
Definition: reporttable.hpp:37
void contextMenuEvent(QContextMenuEvent *event)
Definition: reporttable.cpp:53
ReportTable(CSMDoc::Document &document, const CSMWorld::UniversalId &id, bool richTextDescription, int refreshState=0, QWidget *parent=0)
Definition: reporttable.cpp:141
std::vector< int > getReplaceIndices(bool selection) const
Definition: reporttable.cpp:224
Definition: universalid.hpp:12