OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
subview.hpp
Go to the documentation of this file.
1 #ifndef CSV_DOC_SUBVIEW_H
2 #define CSV_DOC_SUBVIEW_H
3 
4 #include "../../model/doc/document.hpp"
5 
6 #include "../../model/world/universalid.hpp"
7 
8 #include "subviewfactory.hpp"
9 
10 #include <QDockWidget>
11 
12 class QUndoStack;
13 
14 namespace CSMWorld
15 {
16  class Data;
17 }
18 
19 namespace CSVDoc
20 {
21  class View;
22 
23  class SubView : public QDockWidget
24  {
25  Q_OBJECT
26 
28 
29  // not implemented
30  SubView (const SubView&);
32 
33  protected:
34 
35  void setUniversalId(const CSMWorld::UniversalId& id);
36 
37  bool event (QEvent *event);
38 
39  public:
40 
41  SubView (const CSMWorld::UniversalId& id);
42 
44 
45  virtual void setEditLock (bool locked) = 0;
46 
47  virtual void setStatusBar (bool show);
49 
50  virtual void useHint (const std::string& hint);
52 
53  virtual std::string getTitle() const;
54 
55  private:
56 
57  void closeEvent (QCloseEvent *event);
58 
59  signals:
60 
61  void focusId (const CSMWorld::UniversalId& universalId, const std::string& hint);
62 
63  void closeRequest (SubView *subView);
64 
65  void updateTitle();
66 
67  void updateSubViewIndices (SubView *view = NULL);
68 
69  void universalIdChanged (const CSMWorld::UniversalId& universalId);
70 
71  protected slots:
72 
73  void closeRequest();
74  };
75 }
76 
77 #endif
virtual std::string getTitle() const
Definition: subview.cpp:53
static const struct @2 signals[]
bool event(QEvent *event)
Definition: subview.cpp:9
virtual void useHint(const std::string &hint)
Default implementation: ignored.
Definition: subview.cpp:39
CSMWorld::UniversalId mUniversalId
Definition: subview.hpp:27
void closeRequest()
Definition: subview.cpp:58
virtual void setStatusBar(bool show)
Default implementation: ignored.
Definition: subview.cpp:37
void setUniversalId(const CSMWorld::UniversalId &id)
Definition: subview.cpp:41
void closeEvent(QCloseEvent *event)
Definition: subview.cpp:48
SubView(const SubView &)
void universalIdChanged(const CSMWorld::UniversalId &universalId)
void updateSubViewIndices(SubView *view=NULL)
Definition: subview.hpp:23
SubView & operator=(SubView &)
CSMWorld::UniversalId getUniversalId() const
Definition: subview.cpp:32
virtual void setEditLock(bool locked)=0
void focusId(const CSMWorld::UniversalId &universalId, const std::string &hint)
Definition: universalid.hpp:12