]> vaikene.ee Git - evaf/blobdiff - src/plugins/SdiWindow/sdiwindow.h
Changed the SdiWindow::iSdiWindow interface.
[evaf] / src / plugins / SdiWindow / sdiwindow.h
index a73f2eec3d85a9b52dc09ed063c87664e3f5fedf..f88425554319b872fc52fdb9e38ccae724f21497 100644 (file)
@@ -23,6 +23,7 @@
 #include "isdiwindow.h"
 
 #include <Plugins/iPlugin>
+#include <Gui/Window>
 
 #include <QObject>
 #include <QString>
@@ -56,9 +57,7 @@ public:
 
     virtual bool isReady() { return mReady; }
 
-    virtual void addWidget(QWidget * widget);
-
-    virtual void addLayout(QLayout * layout);
+    virtual void addWindow(Gui::Window * window);
 
 
 private: // Methods
@@ -75,11 +74,11 @@ private: // Members
     /// Ready flag
     bool mReady;
 
-    /// The layout of the window
+    /// The layout of the main window
     QVBoxLayout * mLayout;
 
-    /// Widgets and layouts added to the main window
-    QList<QWeakPointer<QObject> > mItemsAdded;
+    /// eVaf GUI window implementing the main window
+    QWeakPointer<Gui::Window> mWindow;
 
 };
 
@@ -89,6 +88,7 @@ private: // Members
 class SdiWindowPlugin : public Plugins::iPlugin
 {
     Q_OBJECT
+    Q_INTERFACES(eVaf::Plugins::iPlugin)
 
 public: