X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugins%2FSdiWindow%2Fsdiwindow.h;h=b2c3bc6c2fbdd69a1120d997091dd1bd586e489c;hb=1cac301bb12de664bd7e7ec59b78e7dfaf04f6d1;hp=d886cca5d842914472e0e92b939abb7e7e04e78c;hpb=06f9c5336ba8a2200b68f636520707693eb5ada7;p=evaf
diff --git a/src/plugins/SdiWindow/sdiwindow.h b/src/plugins/SdiWindow/sdiwindow.h
index d886cca..b2c3bc6 100644
--- a/src/plugins/SdiWindow/sdiwindow.h
+++ b/src/plugins/SdiWindow/sdiwindow.h
@@ -27,6 +27,9 @@
#include
#include
#include
+#include
+
+class QVBoxLayout;
namespace eVaf {
namespace SdiWindow {
@@ -49,6 +52,10 @@ public:
void done();
+ void addWidget(QWidget * widget);
+
+ void addLayout(QLayout * layout);
+
private: // Methods
@@ -57,6 +64,16 @@ private: // Methods
void saveSettings();
void restoreSettings();
+
+
+private: // Members
+
+ /// The layout of the window
+ QVBoxLayout * mLayout;
+
+ /// Widgets and layouts added to the main window
+ QList mItemsAdded;
+
};
/**
@@ -78,7 +95,9 @@ public:
bool isReady() const { return mReady; }
- virtual QWidget * widget() const { return wWindow; }
+ virtual void addWidget(QWidget * widget) { wWindow->addWidget(widget); }
+
+ virtual void addLayout(QLayout * layout) { wWindow->addLayout(layout); }
private: // Members