X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_PageBase.h;h=7dc6a6dd8c337c27100033316e5c80e2a40ddd16;hb=32bab2f2bbbfea250b7aeb2d5b2ce89a28f7072d;hp=63be634d3996e1ef547fb3bdfec3ab58b706e92a;hpb=ad9ef9bb467716c590a689b23d028a7c82c5ade6;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PageBase.h b/src/ModuleBase/ModuleBase_PageBase.h index 63be634d3..7dc6a6dd8 100644 --- a/src/ModuleBase/ModuleBase_PageBase.h +++ b/src/ModuleBase/ModuleBase_PageBase.h @@ -1,9 +1,22 @@ -/* - * ModuleBase_PageBase.h - * - * Created on: Mar 4, 2015 - * Author: sbh - */ +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef MODULEBASE_PAGEBASE_H_ #define MODULEBASE_PAGEBASE_H_ @@ -32,12 +45,14 @@ class MODULEBASE_EXPORT ModuleBase_PageBase void addModelWidget(ModuleBase_ModelWidget* theWidget); /// Adds the given ModuleBase_PageBase to the page void addPageWidget(ModuleBase_PageBase* theWidget); + /// Adds the given widget to the page + void addWidget(QWidget* theWidget); /// Removes all items from page's layout void clearPage(); /// Passes focus from page to the first ModuleBase_ModelWidget contained on the page bool takeFocus(); /// Returns list of ModuleBase_ModelWidgets contained on the page - QList modelWidgets(); + QList modelWidgets() const; /// Aligns top all widgets on page void alignToTop(); @@ -45,7 +60,9 @@ class MODULEBASE_EXPORT ModuleBase_PageBase /// Pure Virtual. Allows to derived class to lay out the widget properly; virtual void placeModelWidget(ModuleBase_ModelWidget* theWidget) = 0; /// Pure Virtual. Allows to derived class to lay out the page properly; - virtual void placePageWidget(ModuleBase_PageBase* theWidget) = 0; + virtual void placePageWidget(ModuleBase_PageBase* theWidget); + /// Pure Virtual. Allows to derived class to lay out the page properly; + virtual void placeWidget(QWidget* theWidget) = 0; /// Pure Virtual. Returns layout of the page. virtual QLayout* pageLayout() = 0; /// Pure Virtual. Allows to derived class to insert page stretch properly.