Started working on the settings tab

loadfix
pvdk 11 years ago
parent bf6103a3a4
commit cfe66abbc5

@ -1,5 +1,11 @@
#include "settingspage.hpp"
#include <components/process/processinvoker.hpp>
#include <QDebug>
using namespace Process;
Launcher::SettingsPage::SettingsPage(QWidget *parent) : QWidget(parent)
{
setupUi(this);
@ -16,3 +22,14 @@ Launcher::SettingsPage::SettingsPage(QWidget *parent) : QWidget(parent)
languageComboBox->addItems(languages);
}
void Launcher::SettingsPage::on_wizardButton_clicked()
{
if (!ProcessInvoker::startProcess(QLatin1String("openmw-wizard"), true))
qDebug() << "an error occurred";
}
void Launcher::SettingsPage::on_importerButton_clicked()
{
}

@ -11,9 +11,16 @@ namespace Launcher
class SettingsPage : public QWidget, private Ui::SettingsPage
{
Q_OBJECT
public:
SettingsPage(QWidget *parent = 0);
void saveSettings();
bool loadSettings();
private slots:
void on_wizardButton_clicked();
void on_importerButton_clicked();
};
}

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>518</width>
<height>401</height>
<width>516</width>
<height>399</height>
</rect>
</property>
<property name="windowTitle">
@ -22,8 +22,11 @@
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="languageLabel">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The language of the original Morrowind installation files (used for the character encoding)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Morrowind installation language:</string>
<string>Morrowind content language:</string>
</property>
</widget>
</item>
@ -105,7 +108,7 @@
<item>
<widget class="QCheckBox" name="addonsCheckBox">
<property name="text">
<string>Import previously selected add-ons (creates a new Content List)</string>
<string>Import add-on and plugin selection (creates a new Content List)</string>
</property>
<property name="checked">
<bool>true</bool>

Loading…
Cancel
Save