]> vaikene.ee Git - evaf/blobdiff - src/plugins/SdiWindow/sdiwindow.h
Changed the SdiWindow::iSdiWindow interface.
[evaf] / src / plugins / SdiWindow / sdiwindow.h
index f0cfe6fc52aae2e5f96c7d6487acb2483388d5db..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;
 
 };