mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-23 21:23:53 +00:00
700d55f1fb
Implemented updating editor application from preferences menu, loading settings when editor loads, adding Record Status Display prefernce. Fixed multiple bugs, made changes to CSM(V)Settings classes to make implementing new prefrences easier. Rewrote CSMSettings::UserSettings to retain last-loaded settings. Adjusted icon position in Record Status column Capitalized status text Added delegate to referenceables table
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#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):
|
|
QWidget(parent)
|
|
{
|
|
QGridLayout *pageLayout = new QGridLayout(this);
|
|
setLayout (pageLayout);
|
|
}
|
|
|
|
CSVSettings::AbstractPage::AbstractPage(const QString &pageName, QWidget *parent):
|
|
QWidget(parent)
|
|
{
|
|
QWidget::setObjectName (pageName);
|
|
|
|
QGridLayout *pageLayout = new QGridLayout(this);
|
|
setLayout (pageLayout);
|
|
}
|
|
|
|
CSVSettings::AbstractPage::~AbstractPage()
|
|
{
|
|
}
|
|
/*
|
|
void CSVSettings::AbstractPage::setupUi()
|
|
{
|
|
// Hacks to get the stylesheet look properly
|
|
#ifdef Q_OS_MAC
|
|
QPlastiqueStyle *style = new QPlastiqueStyle;
|
|
//profilesComboBox->setStyle(style);
|
|
#endif
|
|
}
|
|
*/
|
|
CSMSettings::SettingList *CSVSettings::AbstractPage::getSettings()
|
|
{
|
|
CSMSettings::SettingList *settings = new CSMSettings::SettingList();
|
|
|
|
foreach (AbstractBlock *block, mAbstractBlocks)
|
|
{
|
|
CSMSettings::SettingList *groupSettings = block->getSettings();
|
|
settings->append (*groupSettings);
|
|
}
|
|
|
|
return settings;
|
|
}
|