1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 06:49:55 +00:00
openmw-tes3mp/apps/opencs/view/settings/abstractpage.cpp

45 lines
1,006 B
C++
Raw Normal View History

2013-05-08 01:36:34 +00: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-08 01:36:34 +00:00
QWidget(parent)
{
QGridLayout *pageLayout = new QGridLayout(this);
setLayout (pageLayout);
2013-05-08 01:36:34 +00:00
}
CSVSettings::AbstractPage::AbstractPage(const QString &pageName, QWidget *parent):
2013-05-08 01:36:34 +00:00
QWidget(parent)
{
QWidget::setObjectName (pageName);
QGridLayout *pageLayout = new QGridLayout(this);
setLayout (pageLayout);
2013-05-08 01:36:34 +00:00
}
CSVSettings::AbstractPage::~AbstractPage()
2013-05-08 01:36:34 +00:00
{
}
CSMSettings::SettingList *CSVSettings::AbstractPage::getSettings()
2013-05-08 01:36:34 +00:00
{
CSMSettings::SettingList *settings = new CSMSettings::SettingList();
2013-05-08 01:36:34 +00:00
foreach (AbstractBlock *block, mAbstractBlocks)
{
CSMSettings::SettingList *groupSettings = block->getSettings();
2013-05-08 01:36:34 +00:00
settings->append (*groupSettings);
}
return settings;
}