X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_PageBase.h;h=2d5b51242c829deeed9593222fdb630fe3204634;hb=c0e273c1479a9940dbe4f966853c82a6b8709d88;hp=63be634d3996e1ef547fb3bdfec3ab58b706e92a;hpb=1eac469f7df8510cd4883afecde38c4d35bda7a8;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PageBase.h b/src/ModuleBase/ModuleBase_PageBase.h index 63be634d3..2d5b51242 100644 --- a/src/ModuleBase/ModuleBase_PageBase.h +++ b/src/ModuleBase/ModuleBase_PageBase.h @@ -1,9 +1,21 @@ -/* - * ModuleBase_PageBase.h - * - * Created on: Mar 4, 2015 - * Author: sbh - */ +// Copyright (C) 2014-2022 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 +44,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 +59,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.