Started working on the settings tab

loadfix
pvdk 11 years ago
parent bf6103a3a4
commit cfe66abbc5

@ -1,5 +1,11 @@
#include "settingspage.hpp" #include "settingspage.hpp"
#include <components/process/processinvoker.hpp>
#include <QDebug>
using namespace Process;
Launcher::SettingsPage::SettingsPage(QWidget *parent) : QWidget(parent) Launcher::SettingsPage::SettingsPage(QWidget *parent) : QWidget(parent)
{ {
setupUi(this); setupUi(this);
@ -16,3 +22,14 @@ Launcher::SettingsPage::SettingsPage(QWidget *parent) : QWidget(parent)
languageComboBox->addItems(languages); 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 class SettingsPage : public QWidget, private Ui::SettingsPage
{ {
Q_OBJECT Q_OBJECT
public: public:
SettingsPage(QWidget *parent = 0); SettingsPage(QWidget *parent = 0);
void saveSettings();
bool loadSettings();
private slots:
void on_wizardButton_clicked();
void on_importerButton_clicked();
}; };
} }

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>518</width> <width>516</width>
<height>401</height> <height>399</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -22,8 +22,11 @@
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="languageLabel"> <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"> <property name="text">
<string>Morrowind installation language:</string> <string>Morrowind content language:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -105,7 +108,7 @@
<item> <item>
<widget class="QCheckBox" name="addonsCheckBox"> <widget class="QCheckBox" name="addonsCheckBox">
<property name="text"> <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>
<property name="checked"> <property name="checked">
<bool>true</bool> <bool>true</bool>

Loading…
Cancel
Save