1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/opencs/view/settings/abstractpage.cpp

45 lines
1006 B
C++
Raw Normal View History

2013-05-07 20:36:34 -05:00
#include "abstractpage.hpp"
#include <QGroupBox>
#include <QLabel>
#include <QVBoxLayout>
#include <QRadioButton>
#include <QCheckBox>
#include <QSpinBox>
#include <QComboBox>
#include <QLineEdit>
#include <QMargins>
CSVSettings::AbstractPage::AbstractPage(QWidget *parent):
2013-05-07 20:36:34 -05:00
QWidget(parent)
{
QGridLayout *pageLayout = new QGridLayout(this);
setLayout (pageLayout);
2013-05-07 20:36:34 -05:00
}
CSVSettings::AbstractPage::AbstractPage(const QString &pageName, QWidget *parent):
2013-05-07 20:36:34 -05:00
QWidget(parent)
{
QWidget::setObjectName (pageName);
QGridLayout *pageLayout = new QGridLayout(this);
setLayout (pageLayout);
2013-05-07 20:36:34 -05:00
}
CSVSettings::AbstractPage::~AbstractPage()
2013-05-07 20:36:34 -05:00
{
}
CSMSettings::SettingList *CSVSettings::AbstractPage::getSettings()
2013-05-07 20:36:34 -05:00
{
CSMSettings::SettingList *settings = new CSMSettings::SettingList();
2013-05-07 20:36:34 -05:00
foreach (AbstractBlock *block, mAbstractBlocks)
{
CSMSettings::SettingList *groupSettings = block->getSettings();
2013-05-07 20:36:34 -05:00
settings->append (*groupSettings);
}
return settings;
}