X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Fplugins%2FSdiWindow%2Fsdiwindow.h;h=f88425554319b872fc52fdb9e38ccae724f21497;hb=54f282ee6797c05e60993632218875092362bdf7;hp=a73f2eec3d85a9b52dc09ed063c87664e3f5fedf;hpb=ad70660919cd7b0e821e35548b6d1f5efa181c4c;p=evaf diff --git a/src/plugins/SdiWindow/sdiwindow.h b/src/plugins/SdiWindow/sdiwindow.h index a73f2ee..f884255 100644 --- a/src/plugins/SdiWindow/sdiwindow.h +++ b/src/plugins/SdiWindow/sdiwindow.h @@ -23,6 +23,7 @@ #include "isdiwindow.h" #include +#include #include #include @@ -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 > mItemsAdded; + /// eVaf GUI window implementing the main window + QWeakPointer mWindow; }; @@ -89,6 +88,7 @@ private: // Members class SdiWindowPlugin : public Plugins::iPlugin { Q_OBJECT + Q_INTERFACES(eVaf::Plugins::iPlugin) public: