X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Fplugins%2FSdiWindow%2Fsdiwindow.h;h=31b311d60454d8a4c4d04efa640f5fb88bf7b4b4;hb=f443e47f50a5d12f592aaae6a4e553e4a125ee1c;hp=d886cca5d842914472e0e92b939abb7e7e04e78c;hpb=06f9c5336ba8a2200b68f636520707693eb5ada7;p=evaf
diff --git a/src/plugins/SdiWindow/sdiwindow.h b/src/plugins/SdiWindow/sdiwindow.h
index d886cca..31b311d 100644
--- a/src/plugins/SdiWindow/sdiwindow.h
+++ b/src/plugins/SdiWindow/sdiwindow.h
@@ -27,6 +27,10 @@
#include
#include
#include
+#include
+#include
+
+class QVBoxLayout;
namespace eVaf {
namespace SdiWindow {
@@ -49,6 +53,10 @@ public:
void done();
+ void addWidget(QWidget * widget);
+
+ void addLayout(QLayout * layout);
+
private: // Methods
@@ -57,6 +65,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 +96,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