]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/ModuleBase_PageGroupBox.h
Salome HOME
Add copyright header according to request of CEA from 06.06.2017
[modules/shaper.git] / src / ModuleBase / ModuleBase_PageGroupBox.h
1 // Copyright (C) 2014-2017  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
18 //
19
20 /*
21  * ModuleBase_PageGroupBox.h
22  *
23  *  Created on: Mar 4, 2015
24  *      Author: sbh
25  */
26
27 #ifndef MODULEBASE_PAGEGROUPBOX_H_
28 #define MODULEBASE_PAGEGROUPBOX_H_
29
30 #include <ModuleBase.h>
31 #include <ModuleBase_PageBase.h>
32
33 #include <QGroupBox>
34 #include <QList>
35
36 class ModuleBase_ModelWidget;
37 class QGridLayout;
38
39
40 /*!
41  * \ingroup GUI
42  * Represent a property panel's list of ModuleBase_ModelWidgets.
43  */
44 class MODULEBASE_EXPORT ModuleBase_PageGroupBox : public QGroupBox, public ModuleBase_PageBase
45 {
46   Q_OBJECT
47  public:
48   /// Constructs a page that looks like a QGroupBox
49   explicit ModuleBase_PageGroupBox(QWidget* theParent = 0);
50   /// Destructs the page
51   virtual ~ModuleBase_PageGroupBox();
52
53  protected:
54   /// Adds the given widget to page's layout
55   virtual void placeModelWidget(ModuleBase_ModelWidget* theWidget);
56   /// Adds the given page to page's layout
57   virtual void placeWidget(QWidget* theWidget);
58   /// Returns page's layout (QGridLayout)
59   virtual QLayout* pageLayout();
60   /// Adds a stretch to page's layout
61   virtual void addPageStretch();
62
63  private:
64   QGridLayout* myMainLayout; ///< page's layout
65 };
66
67 #endif /* MODULEBASE_PAGEGROUPBOX_H_ */