ginebra2/ContentViews/SuperPageView.h
changeset 3 0954f5dd2cd0
child 16 3c88a81ff781
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ginebra2/ContentViews/SuperPageView.h	Tue Jun 29 00:46:29 2010 -0400
@@ -0,0 +1,40 @@
+/*
+ * SuperPageView.h
+ *
+ *  Created on: Jun 11, 2010
+ *      Author: lewontin
+ */
+
+#include "controllableviewimpl.h"
+
+#ifndef SUPERPAGEVIEW_H_
+#define SUPERPAGEVIEW_H_
+
+namespace GVA {
+
+class GWebContentView;
+
+class SuperPageView : public ControllableViewBase
+{
+      Q_OBJECT
+      
+  public:
+      SuperPageView(GWebContentView * contentView, QObject * parent = 0, const QString &objectName = QString::null);
+      virtual ~SuperPageView();
+      //Reimplement ControllableViewBase methods
+      static QString Type() { return "superPage"; }
+      virtual QString type() const { return Type(); }
+      QGraphicsWidget* widget() const;
+      virtual QList<QAction*> getContext();
+      virtual void show();
+      virtual void hide() {;}
+  public slots:
+      void addAction(const QString& action, const QString & script = QString());
+  private slots:
+      void invokeScriptAction();
+  private:
+      GWebContentView * m_contentView;
+      QMap<QString, QAction*>  m_actions;
+};
+}
+#endif /* SUPERPAGEVIEW_H_ */