#include <QObject>
#include <QString>
#include <QWidget>
+#include <QList>
+#include <QPointer>
+
+class QVBoxLayout;
namespace eVaf {
namespace SdiWindow {
void done();
+ void addWidget(QWidget * widget);
+
+ void addLayout(QLayout * layout);
+
private: // Methods
void saveSettings();
void restoreSettings();
+
+
+private: // Members
+
+ /// The layout of the window
+ QVBoxLayout * mLayout;
+
+ /// Widgets and layouts added to the main window
+ QList<QPointer<QObject> > mItemsAdded;
+
};
/**
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