X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Fplugins%2FSdiWindow%2Fisdiwindow.h;h=13b99037471a499f02ab2d85f02a3ab08952c94e;hb=54f282ee6797c05e60993632218875092362bdf7;hp=8cd4343666db997ef1f1118a73fa637873029454;hpb=1cac301bb12de664bd7e7ec59b78e7dfaf04f6d1;p=evaf diff --git a/src/plugins/SdiWindow/isdiwindow.h b/src/plugins/SdiWindow/isdiwindow.h index 8cd4343..13b9903 100644 --- a/src/plugins/SdiWindow/isdiwindow.h +++ b/src/plugins/SdiWindow/isdiwindow.h @@ -22,33 +22,27 @@ #include "libsdiwindow.h" -#include #include +#include class QWidget; class QLayout; namespace eVaf { + +namespace Gui { + class Window; +} // namespace eVaf::Gui + namespace SdiWindow { /** - * Main window interface for eVaf applications implementing the Single Document Interface. + * Single Document Interface window manager for eVaf applications. * - * The iSdiWindow interface provides access to the SDI main window. The SDI main window is - * an empty window that the application can fill with widgets. + * The iSdiWindow interface implements an SDI window manager. */ -class SDIWINDOW_EXPORT iSdiWindow : public QObject +struct SDIWINDOW_EXPORT iSdiWindow { - Q_OBJECT - -public: - - /// Interface constructor - iSdiWindow() : QObject() {} - - /// Empty virtual destructor - virtual ~iSdiWindow() {} - /** * Returns the iSdiWindow interface instance * @return The iSdiWindow interface or zero if not available @@ -60,24 +54,18 @@ public: static iSdiWindow * instance(); /** - * Adds the widget to the end of the main window layout - * @param widget The widget + * Adds the window to the main SDI window + * @param window The window * - * This function adds the widget to the end of the main window layout. + * This function adds a window to the main SDI layout. */ - virtual void addWidget(QWidget * widget) = 0; - - /** - * Adds the layout to the end of the main window layout - * @param layout The layout - * - * This function adds the new layout to the end of the main window layout. - */ - virtual void addLayout(QLayout * layout) = 0; + virtual void addWindow(Gui::Window * window) = 0; }; } // namespace eVaf::SdiWindow } // namespace eVaf +Q_DECLARE_INTERFACE(eVaf::SdiWindow::iSdiWindow, "eVaf.SdiWindow.iSdiWindow/1.1") + #endif // isdiwindow.h