]> vaikene.ee Git - evaf/blobdiff - src/plugins/SdiWindow/isdiwindow.h
Changed the SdiWindow::iSdiWindow interface.
[evaf] / src / plugins / SdiWindow / isdiwindow.h
index 28e774d1b5be7c262aaabbc761aa78b96b23e05c..13b99037471a499f02ab2d85f02a3ab08952c94e 100644 (file)
@@ -29,13 +29,17 @@ 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.
  */
 struct SDIWINDOW_EXPORT iSdiWindow
 {
@@ -50,26 +54,18 @@ struct SDIWINDOW_EXPORT iSdiWindow
     static iSdiWindow * instance();
 
     /**
-     * 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
+     * Adds the window to the main SDI window
+     * @param window The window
      *
-     * This function adds the new layout to the end of the main window layout.
+     * This function adds a window to the main SDI 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.0")
+Q_DECLARE_INTERFACE(eVaf::SdiWindow::iSdiWindow, "eVaf.SdiWindow.iSdiWindow/1.1")
 
 #endif // isdiwindow.h