fixed edge display for volume cells
[engrid-github.git] / src / libengrid / multipagewidgetpage.cpp
blob25a9219d1d4b121a38b84a34f1107997fc53aef0
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
11 // + +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
16 // + +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #include "multipagewidgetpage.h"
23 #include <QtDebug>
25 MultiPageWidgetPage::MultiPageWidgetPage( QVector <QString> files, QString section, QWidget *parent )
26 : QWidget( parent )
28 verticalLayout_scrollArea_Solver = new QVBoxLayout( this );
29 verticalLayout_scrollArea_Solver->setObjectName( QString::fromUtf8( "verticalLayout_scrollArea_Solver" ) );
30 verticalLayout_scrollArea_Solver->setContentsMargins( 0, 0, 0, 0 );
32 scrollArea_Solver = new QScrollArea( this );
33 scrollArea_Solver->setObjectName( QString::fromUtf8( "scrollArea_Solver" ) );
34 scrollArea_Solver->setWidgetResizable( true );
35 scrollArea_Solver->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
36 verticalLayout_scrollArea_Solver->addWidget( scrollArea_Solver );
38 scrollAreaWidgetContents = new QWidget();
39 scrollAreaWidgetContents->setObjectName( QString::fromUtf8( "scrollAreaWidgetContents" ) );
40 scrollAreaWidgetContents->setGeometry( QRect( 0, 0, 499, 129 ) );
41 scrollArea_Solver->setWidget( scrollAreaWidgetContents );
43 verticalLayout_scrollAreaWidgetContents_Solver = new QVBoxLayout();
44 verticalLayout_scrollAreaWidgetContents_Solver->setObjectName( QString::fromUtf8( "verticalLayout_scrollAreaWidgetContents_Solver" ) );
45 verticalLayout_scrollAreaWidgetContents_Solver->setContentsMargins( 0, 0, 0, 0 );
46 scrollAreaWidgetContents->setLayout( verticalLayout_scrollAreaWidgetContents_Solver );
48 TemplateFormLayout* template_form_layout = new TemplateFormLayout(files, section);
49 verticalLayout_scrollAreaWidgetContents_Solver->addLayout( template_form_layout );
50 m_template_form_layout_vector.push_back(template_form_layout);
53 MultiPageWidgetPage::~MultiPageWidgetPage()
57 void MultiPageWidgetPage::saveEgc()
59 for(int i = 0; i < m_template_form_layout_vector.size(); i++) {
60 m_template_form_layout_vector[i]->saveEgc();