openmw-tes3coop/apps/opencs/view/settings/abstractpage.cpp

40 lines
843 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)
{
}
CSVSettings::AbstractPage::AbstractPage(const QString &pageName, QWidget *parent):
2013-05-08 01:36:34 +00:00
QWidget(parent)
{
QWidget::setObjectName (pageName);
}
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;
}