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