OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
previewwidget.hpp
Go to the documentation of this file.
1 #ifndef OPENCS_VIEW_PREVIEWWIDGET_H
2 #define OPENCS_VIEW_PREVIEWWIDGET_H
3 
4 #include "scenewidget.hpp"
5 
6 #include "object.hpp"
7 
8 class QModelIndex;
9 
10 namespace VFS
11 {
12  class Manager;
13 }
14 
15 namespace CSMWorld
16 {
17  class Data;
18 }
19 
20 namespace CSVRender
21 {
22  class PreviewWidget : public SceneWidget
23  {
24  Q_OBJECT
25 
28 
29  public:
30 
31  PreviewWidget (CSMWorld::Data& data, const std::string& id, bool referenceable,
32  QWidget *parent = 0);
33 
34  signals:
35 
36  void closeRequest();
37 
38  void referenceableIdChanged (const std::string& id);
39 
40  private slots:
41 
42  void referenceableDataChanged (const QModelIndex& topLeft,
43  const QModelIndex& bottomRight);
44 
45  void referenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end);
46 
47  void referenceDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
48 
49  void referenceAboutToBeRemoved (const QModelIndex& parent, int start, int end);
50  };
51 }
52 
53 #endif
Extension of RenderWidget to support lighting mode selection & toolbar.
Definition: scenewidget.hpp:77
static const struct @2 signals[]
PreviewWidget(CSMWorld::Data &data, const std::string &id, bool referenceable, QWidget *parent=0)
Definition: previewwidget.cpp:6
void referenceableAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: previewwidget.cpp:51
Definition: object.hpp:68
CSVRender::Object mObject
Definition: previewwidget.hpp:27
void referenceableDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: previewwidget.cpp:32
Definition: previewwidget.hpp:22
void referenceableIdChanged(const std::string &id)
Definition: data.hpp:77
void referenceAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: previewwidget.cpp:108
void referenceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: previewwidget.cpp:75
CSMWorld::Data & mData
Definition: previewwidget.hpp:26