equal
deleted
inserted
replaced
|
1 /* |
|
2 * SuperPageView.h |
|
3 * |
|
4 * Created on: Jun 11, 2010 |
|
5 * Author: lewontin |
|
6 */ |
|
7 |
|
8 #include "controllableviewimpl.h" |
|
9 |
|
10 #ifndef SUPERPAGEVIEW_H_ |
|
11 #define SUPERPAGEVIEW_H_ |
|
12 |
|
13 namespace GVA { |
|
14 |
|
15 class GWebContentView; |
|
16 |
|
17 class SuperPageView : public ControllableViewBase |
|
18 { |
|
19 Q_OBJECT |
|
20 |
|
21 public: |
|
22 SuperPageView(GWebContentView * contentView, QObject * parent = 0, const QString &objectName = QString::null); |
|
23 virtual ~SuperPageView(); |
|
24 //Reimplement ControllableViewBase methods |
|
25 static QString Type() { return "superPage"; } |
|
26 virtual QString type() const { return Type(); } |
|
27 QGraphicsWidget* widget() const; |
|
28 virtual QList<QAction*> getContext(); |
|
29 virtual void show(); |
|
30 virtual void hide() {;} |
|
31 public slots: |
|
32 void addAction(const QString& action, const QString & script = QString()); |
|
33 private slots: |
|
34 void invokeScriptAction(); |
|
35 private: |
|
36 GWebContentView * m_contentView; |
|
37 QMap<QString, QAction*> m_actions; |
|
38 }; |
|
39 } |
|
40 #endif /* SUPERPAGEVIEW_H_ */ |