X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fplugins%2FSdiWindow%2Fisdiwindow.h;h=8cd4343666db997ef1f1118a73fa637873029454;hb=1cac301bb12de664bd7e7ec59b78e7dfaf04f6d1;hp=a5794db626de520b49cb2c54fb5aadc9ff31da4a;hpb=fc85345abea9becdd9aedfb1e0cf66d8843528fd;p=evaf diff --git a/src/plugins/SdiWindow/isdiwindow.h b/src/plugins/SdiWindow/isdiwindow.h index a5794db..8cd4343 100644 --- a/src/plugins/SdiWindow/isdiwindow.h +++ b/src/plugins/SdiWindow/isdiwindow.h @@ -25,6 +25,9 @@ #include #include +class QWidget; +class QLayout; + namespace eVaf { namespace SdiWindow { @@ -32,7 +35,7 @@ namespace SdiWindow { * Main window interface for eVaf applications implementing the Single Document Interface. * * The iSdiWindow interface provides access to the SDI main window. The SDI main window is - * an empty window that the application needs to fill with widgets. + * an empty window that the application can fill with widgets. */ class SDIWINDOW_EXPORT iSdiWindow : public QObject { @@ -57,13 +60,20 @@ public: static iSdiWindow * instance(); /** - * Returns the main window widget - * @return The main window widget + * Adds the widget to the end of the main window layout + * @param widget The widget + * + * This function adds the widget to the end of the main window layout. + */ + virtual void addWidget(QWidget * widget) = 0; + + /** + * Adds the layout to the end of the main window layout + * @param layout The layout * - * This function provides access to the main window widget. The main window is an empty QWidget and - * needs to be filled with additional widgets in order to provide some functionality. + * This function adds the new layout to the end of the main window layout. */ - virtual QWidget * widget() const = 0; + virtual void addLayout(QLayout * layout) = 0; };