Reworked colors.txt asistant

master
Unknown 2017-03-07 08:39:00 +01:00
parent 0cd525547a
commit bffc961efd
14 changed files with 914 additions and 721 deletions

View File

@ -23,12 +23,12 @@ SOURCES += main.cpp\
geometry.cpp \
geometrywidget.cpp \
configdialog.cpp \
colorstxtassistant.cpp \
makecolors.cpp \
drawmapfigure.cpp \
drawmapfiguretablemodel.cpp \
figuredelegate.cpp \
minetestmapperexe.cpp
minetestmapperexe.cpp \
colorstxtwizard.cpp \
HEADERS += mainwindow.h \
@ -36,17 +36,16 @@ HEADERS += mainwindow.h \
geometry.h \
geometrywidget.h \
configdialog.h \
colorstxtassistant.h \
makecolors.h \
drawmapfigure.h \
drawmapfiguretablemodel.h \
figuredelegate.h \
minetestmapperexe.h
minetestmapperexe.h \
colorstxtwizard.h \
FORMS += mainwindow.ui \
geometrywidget.ui \
configdialog.ui \
colorstxtassistant.ui
configdialog.ui
RESOURCES += \
minetestmappergui.qrc

View File

@ -1,130 +0,0 @@
#include "colorstxtassistant.h"
#include "ui_colorstxtassistant.h"
ColorsTxtAssistant::ColorsTxtAssistant(QWidget *parent) :
QDialog(parent),
ui(new Ui::ColorsTxtAssistant)
{
ui->setupUi(this);
ui->stackedWidget->setCurrentIndex(0);
ui->buttonPrevious->setVisible(false);
ui->buttonFinished->setVisible(false);
}
ColorsTxtAssistant::~ColorsTxtAssistant()
{
delete ui;
}
void ColorsTxtAssistant::on_buttonGenerate_clicked()
{
MakeColors *makeColors = new MakeColors();
QString fileNodesTxt = ui->fileNodesTxt->text();
QString fileColorsTxt = ui->fileColorsTxt->text();
if(fileColorsTxt.isEmpty()){
fileColorsTxt = QFileInfo(fileNodesTxt).dir().absoluteFilePath("colors.txt");
}
makeColors->setFileColorsTxt(fileColorsTxt);
makeColors->setFileNodesTxt(fileNodesTxt);
makeColors->setTextureSearchDirectorys(getAllSearchDirs());
connect(makeColors, &MakeColors::outputLog,
this, &ColorsTxtAssistant::reciveOuputLog );
connect(makeColors, &MakeColors::progressChanged,
this, &ColorsTxtAssistant::reciveProgressChanged);
connect(makeColors, &MakeColors::maxProgressChanged,
this, &ColorsTxtAssistant::reciveMaxProgressChanged);
makeColors->startProcess();
}
void ColorsTxtAssistant::reciveOuputLog(QString text, int level)
{
QMetaEnum metaEnumLogLevel = QMetaEnum::fromType<MakeColors::LogLevel>();
QString msg = QString("%1:\t%2").arg(metaEnumLogLevel.key(level)).arg(text);
ui->output->appendPlainText(msg);
}
void ColorsTxtAssistant::reciveProgressChanged(int newProgress)
{
ui->progressBar->setValue(newProgress);
//ui->output->appendPlainText(QString("Progress changed to %1").arg(newProgress));
}
void ColorsTxtAssistant::reciveMaxProgressChanged(int newProgress)
{
ui->progressBar->setMaximum(newProgress);
//ui->output->appendPlainText(QString("Max Progress changed to %1").arg(newProgress));
}
void ColorsTxtAssistant::on_buttonPrevious_clicked()
{
int currentIndex = ui->stackedWidget->currentIndex();
ui->stackedWidget->setCurrentIndex(--currentIndex);
ui->buttonNext->setVisible(currentIndex != ui->stackedWidget->children().size());
ui->buttonPrevious->setVisible(currentIndex > 0);
ui->buttonFinished->setVisible((currentIndex+1) == ui->stackedWidget->children().size());//only visible on last page
}
void ColorsTxtAssistant::on_buttonNext_clicked()
{
int currentIndex = ui->stackedWidget->currentIndex();
ui->stackedWidget->setCurrentIndex(++currentIndex);
ui->buttonPrevious->setVisible(currentIndex > 0);//Visible if not on page 0
ui->buttonNext->setVisible((currentIndex+1) < ui->stackedWidget->children().size());// Visible if not on last page
ui->buttonFinished->setVisible((currentIndex+1) == ui->stackedWidget->children().size());//visible on last page
}
void ColorsTxtAssistant::on_buttonAddSearchDir_clicked()
{
QFileIconProvider *p = new QFileIconProvider();
QString folder = QFileDialog::getExistingDirectory(this,tr("Select Folder"));
QListWidgetItem *item = new QListWidgetItem(p->icon(QFileIconProvider::Folder),folder);
item->setFlags(item->flags()|Qt::ItemIsEditable);
ui->listSearchDirs->addItem(item);
//ui->listSearchDirs->setE
}
void ColorsTxtAssistant::on_buttonRemoveSearchDir_clicked()
{
qDeleteAll(ui->listSearchDirs->selectedItems());
}
QStringList ColorsTxtAssistant::getAllSearchDirs(void)
{
QStringList textureSearchDirecotries;
for(int i = 0; i < ui->listSearchDirs->count(); ++i)
{
QListWidgetItem* item = ui->listSearchDirs->item(i);
textureSearchDirecotries<< item->data(Qt::DisplayRole).toString();
}
return textureSearchDirecotries;
}
void ColorsTxtAssistant::on_buttonFinished_clicked()
{
this->accept();
}
void ColorsTxtAssistant::on_browseColorsTxt_clicked()
{
QString fileName = QFileDialog::getOpenFileName(this, tr("Open colors.txt File"),
ui->fileColorsTxt->text(),
tr("TXT File (*.txt)"));
if(fileName!="") ui->fileColorsTxt->setText(fileName);
}
void ColorsTxtAssistant::on_browseFileNodesTxt_clicked()
{
QString fileName = QFileDialog::getOpenFileName(this, tr("Open colors.txt File"),
ui->fileNodesTxt->text(),
tr("TXT File (*.txt)"));
if(fileName!="") ui->fileNodesTxt->setText(fileName);
}
void ColorsTxtAssistant::setNodesTxtFilePath(const QString &nodesTxtFilePath)
{
ui->fileNodesTxt->setText(nodesTxtFilePath);
}

View File

@ -1,57 +0,0 @@
#ifndef COLORSTXTASSISTANT_H
#define COLORSTXTASSISTANT_H
#include <QDialog>
#include <QFileDialog>
#include <QFileIconProvider>
#include <QListWidget>
#include <QListWidgetItem>
#include <QMetaEnum>
#include <QObject>
#include <QStringList>
#include "makecolors.h"
namespace Ui {
class ColorsTxtAssistant;
}
class ColorsTxtAssistant : public QDialog
{
Q_OBJECT
public:
explicit ColorsTxtAssistant(QWidget *parent = 0);
~ColorsTxtAssistant();
void setNodesTxtFilePath(const QString &nodesTxtFilePath);
public slots:
private slots:
void on_buttonGenerate_clicked();
void on_buttonPrevious_clicked();
void on_buttonNext_clicked();
void on_buttonAddSearchDir_clicked();
void on_buttonRemoveSearchDir_clicked();
void reciveOuputLog(QString text, int level);
void reciveProgressChanged(int newProgress);
void reciveMaxProgressChanged(int newProgress);
void on_buttonFinished_clicked();
void on_browseColorsTxt_clicked();
void on_browseFileNodesTxt_clicked();
private:
Ui::ColorsTxtAssistant *ui;
QStringList getAllSearchDirs(void);
};
#endif // COLORSTXTASSISTANT_H

View File

@ -1,235 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ColorsTxtAssistant</class>
<widget class="QDialog" name="ColorsTxtAssistant">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>546</width>
<height>328</height>
</rect>
</property>
<property name="windowTitle">
<string>Create colors.txt assistant</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="2" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="buttonPrevious">
<property name="text">
<string>Previous</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonNext">
<property name="text">
<string>Next</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonFinished">
<property name="text">
<string>Finished</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="stackedWidgetPage1">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTextBrowser" name="textBrowser">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;This Assistant will help you to generate a new colors.txt that fits to your mods and games.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;To proceed click the Next button&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="stackedWidgetPage2">
<layout class="QGridLayout" name="gridLayout_5">
<item row="2" column="0">
<widget class="QLineEdit" name="fileNodesTxt">
<property name="placeholderText">
<string notr="true">nodes.txt</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="browseFileNodesTxt">
<property name="text">
<string>browse</string>
</property>
<property name="icon">
<iconset resource="minetestmappergui.qrc">
<normaloff>:/open</normaloff>:/open</iconset>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QTextBrowser" name="textBrowser_2">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;ol style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;First, you have to install and enable the mod &amp;quot;dumpnodes&amp;quot; You can download it here: &lt;/span&gt;&lt;a href=&quot;https://bitbucket.org/adrido/dumpnodes/overview&quot;&gt;&lt;span style=&quot; font-size:9pt; text-decoration: underline; color:#0000ff;&quot;&gt;https://bitbucket.org/adrido/dumpnodes/overview&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;extract it like each other mod into your mods folder. &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Activate it in the world configuration &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Start the game normaly &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;if you are ingame type /dumpnodes &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Now there should be a file called nodes.txt inside the world folder. If its there, click the next button if not, start with step 1.&lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Select the generated nodes.txt file down there&lt;/li&gt;&lt;/ol&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="stackedWidgetPage4">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Now you have to specify one or more folders where the textures can be found.&lt;/p&gt;&lt;p&gt;Recomended is the minetest_game folder and the mods folder.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="1">
<widget class="QPushButton" name="buttonAddSearchDir">
<property name="text">
<string>add new</string>
</property>
<property name="icon">
<iconset resource="minetestmappergui.qrc">
<normaloff>:/open</normaloff>:/open</iconset>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="buttonRemoveSearchDir">
<property name="text">
<string>remove selected</string>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="3">
<widget class="QListWidget" name="listSearchDirs">
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
</property>
<property name="defaultDropAction">
<enum>Qt::MoveAction</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="stackedWidgetPage5">
<layout class="QGridLayout" name="gridLayout_4">
<item row="1" column="0">
<widget class="QLineEdit" name="fileColorsTxt">
<property name="placeholderText">
<string notr="true">colors.txt</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="browseColorsTxt">
<property name="text">
<string>browse</string>
</property>
<property name="icon">
<iconset resource="minetestmappergui.qrc">
<normaloff>:/open</normaloff>:/open</iconset>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QTextBrowser" name="textBrowser_3">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Optionaly you can specify a colors.txt here.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;If you leave this field empty, a colors.txt file will created in the same place as the nodes.txt&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="stackedWidgetPage6">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Finished! Click the button Generate now to generate the colors.txt file</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonGenerate">
<property name="text">
<string>Generate</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar">
<property name="maximum">
<number>1</number>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="output"/>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="minetestmappergui.qrc"/>
</resources>
<connections/>
</ui>

248
colorstxtwizard.cpp Normal file
View File

@ -0,0 +1,248 @@
#include "colorstxtwizard.h"
#include "makecolors.h"
#include <QDir>
#include <QVBoxLayout>
#include <QDebug>
#include <QFileDialog>
#include <QPushButton>
#include <QPlainTextEdit>
#include <QProgressBar>
ColorsTxtWizard::ColorsTxtWizard(QWidget* parent)
: QWizard(parent)
{
addPage(new IntroPage);
addPage(new NodesTxtPage);
addPage(new TextureFoldersPage);
addPage(new OutputFilePage);
addPage(new ConclusionPage);
setPixmap(QWizard::LogoPixmap, QPixmap(":/images/text.svg"));
setPixmap(QWizard::WatermarkPixmap, QPixmap(":/images/WizardImage.bmp"));
setWindowTitle(tr("Colors Txt Wizard"));
qDebug()<< wizardStyle();
//if (wizardStyle() == WizardStyle::AeroStyle)
setWizardStyle(WizardStyle::ModernStyle);
}
void ColorsTxtWizard::setNodesTxtFilePath(const QString &nodesTxtFilePath)
{
setField("nodesTxt", nodesTxtFilePath);
}
IntroPage::IntroPage(QWidget* parent)
: QWizardPage(parent)
{
setTitle(tr("Introduction"));
//setPixmap(QWizard::WatermarkPixmap, QPixmap(":/images/watermark1.png"));
label = new QLabel(tr("This wizard will generate a brand new colors.txt file "
"that fits exactly to your game and mods. You simply "
"need to specify the nodes.txt and the paths where your "
"game and your mods are installed."));
label->setWordWrap(true);
QVBoxLayout* layout = new QVBoxLayout;
layout->addWidget(label);
setLayout(layout);
}
NodesTxtPage::NodesTxtPage(QWidget* parent)
: QWizardPage(parent)
{
setTitle(tr("The nodes.txt file"));
setSubTitle(tr("Follow the steps and specify the path to the nodes.txt"));
const QString dumpnodesDownload = QStringLiteral("<a href=\"https://bitbucket.org/adrido/dumpnodes/overview\">https://bitbucket.org/adrido/dumpnodes/overview</a>");
label = new QLabel(tr("<ol>\n"
"<li>First, you have to install the mod <span style=\" font-weight:600;\">dumpnodes</span>. "
"You can download it here: %1</li>\n"
"<li>Extract it like each other mod into your mods folder. </li>\n"
"<li>Activate it in the world configuration </li>\n"
"<li>Start the game normaly </li>\n"
"<li>If you are ingame type /dumpnodes </li>\n"
"<li>Now there should be a file called nodes.txt inside the world folder.</li>\n"
"<li>Select the generated nodes.txt file down there</li>\n"
"</ol>").arg(dumpnodesDownload));
label->setWordWrap(true);
nodesTxtLabel = new QLabel("nodes.txt:");
nodesTxtLineEdit = new QLineEdit;
nodesTxtLabel->setBuddy(nodesTxtLineEdit);
registerField("nodesTxt*", nodesTxtLineEdit);
QPushButton *button = new QPushButton(QIcon(":/open"), tr("&Browse"), this);
connect(button, &QAbstractButton::clicked,this,&NodesTxtPage::browse);
QVBoxLayout *layout = new QVBoxLayout;
QHBoxLayout *hlayout = new QHBoxLayout;
layout->addWidget(label);
hlayout->addWidget(nodesTxtLabel);
hlayout->addWidget(nodesTxtLineEdit);
hlayout->addWidget(button);
layout->addLayout(hlayout);
setLayout(layout);
}
void NodesTxtPage::browse(void){
QString fileName = QFileDialog::getOpenFileName(this, tr("Open nodes.txt File"),
nodesTxtLineEdit->text(),
tr("TXT File (*.txt)"));
if(fileName!="") nodesTxtLineEdit->setText(fileName);
}
TextureFoldersPage::TextureFoldersPage(QWidget* parent)
: QWizardPage(parent)
{
setTitle(tr("Texture Folders"));
setSubTitle(tr("Seletct one or more folders where the textures for the world are. Eg. the game folder and mods folder."));
setPixmap(QWizard::WatermarkPixmap,QPixmap());
inputDirs = new QListWidget;
addFolder = new QPushButton(QIcon(":/open"), tr("Add folder"),this);
remFolder = new QPushButton(tr("Remove selected folders"),this);
chgFolder = new QPushButton(tr("Edit selected folder"),this);
connect(addFolder, &QAbstractButton::clicked,this,&TextureFoldersPage::add);
connect(remFolder, &QAbstractButton::clicked,this,&TextureFoldersPage::rem);
connect(chgFolder, &QAbstractButton::clicked,this,&TextureFoldersPage::chg);
QPlainTextEdit *inputDirsText = new QPlainTextEdit();
registerField("inputDirs*", inputDirsText);
QVBoxLayout *vlayout = new QVBoxLayout;
QHBoxLayout *hlayout = new QHBoxLayout;
hlayout->addWidget(addFolder);
//hlayout->addWidget(chgFolder);
hlayout->addWidget(remFolder);
vlayout->addLayout(hlayout);
//vlayout->addStretch(1);
vlayout->addWidget(inputDirs);
setLayout(vlayout);
}
void TextureFoldersPage::add(void){
QString folder = QFileDialog::getExistingDirectory(this,tr("Select texture folder"));
QListWidgetItem *item = new QListWidgetItem(fileIconProvider->icon(QFileIconProvider::Folder),folder);
item->setFlags(item->flags()|Qt::ItemIsEditable);
inputDirs->addItem(item);
QStringList list;
for(int i = 0; i < inputDirs->count(); ++i)
{
QListWidgetItem* item = inputDirs->item(i);
list << item->data(Qt::DisplayRole).toString();
}
setField("inputDirs",QVariant(list));
emit completeChanged();
}
void TextureFoldersPage::rem(void){
qDeleteAll(inputDirs->selectedItems());
emit completeChanged();
}
void TextureFoldersPage::chg(void){
//TODO: Implement me
}
bool TextureFoldersPage::isComplete(void) const
{
return inputDirs->count() >= 1;
}
OutputFilePage::OutputFilePage(QWidget* parent)
: QWizardPage(parent)
{
setTitle(tr("Output colors.txt"));
setSubTitle(tr("Optionally you can specify the colors.txt where the colors should be written into. "
"If you leaf this empty, the file placed at the same directory as the nodes.txt file."));
colorsTxtLabel = new QLabel("colors.txt:");
colorsTxtLineEdit = new QLineEdit;
colorsTxtLineEdit->setPlaceholderText("colors.txt");
colorsTxtLabel->setBuddy(colorsTxtLineEdit);
registerField("colorsTxt", colorsTxtLineEdit);
QPushButton *button = new QPushButton(QIcon(":/open"), tr("&Browse"), this);
connect(button, &QAbstractButton::clicked,this,&OutputFilePage::browse);
QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget(colorsTxtLabel);
layout->addWidget(colorsTxtLineEdit);
layout->addWidget(button);
setLayout(layout);
}
void OutputFilePage::browse(void){
QString fileName = QFileDialog::getSaveFileName(this, tr("Save colors.txt File"),
colorsTxtLineEdit->text(),
tr("TXT File (*.txt)"));
if(fileName!="") colorsTxtLineEdit->setText(fileName);
}
ConclusionPage::ConclusionPage(QWidget* parent)
: QWizardPage(parent)
{
setTitle(tr("Conclusion"));
setSubTitle(tr("All done. :-) Now click the Generate button to generate the colors.txt"));
progress = new QProgressBar;
log = new QPlainTextEdit;
label = new QLabel;
label->setWordWrap(true);
QPushButton *button = new QPushButton(tr("Generate"),this);
connect(button, &QAbstractButton::clicked,
this, &ConclusionPage::generate);
QVBoxLayout* layout = new QVBoxLayout;
layout->addWidget(label);
layout->addWidget(progress);
layout->addWidget(button);
layout->addWidget(log);
setLayout(layout);
}
void ConclusionPage::initializePage()
{
QString finishText = wizard()->buttonText(QWizard::FinishButton);
finishText.remove('&');
label->setText(tr("Click %1 to finish.")
.arg(finishText));
}
bool ConclusionPage::isComplete(void) const {
return generated;
}
bool ConclusionPage::generate(void){
MakeColors *makeColors = new MakeColors();
QString fileNodesTxt = field("nodesTxt").toString();
QString fileColorsTxt = field("colorsTxt").toString();
if(fileColorsTxt.isEmpty()){
fileColorsTxt = QFileInfo(fileNodesTxt).dir().absoluteFilePath("colors.txt");
}
makeColors->setFileColorsTxt(fileColorsTxt);
makeColors->setFileNodesTxt(fileNodesTxt);
makeColors->setTextureSearchDirectorys(field("inputDirs").toStringList());
connect(makeColors, &MakeColors::outputLog,
log, &QPlainTextEdit::appendPlainText );
connect(makeColors, &MakeColors::progressChanged,
progress, &QProgressBar::setValue );
connect(makeColors, &MakeColors::maxProgressChanged,
progress, &QProgressBar::setMaximum);
connect(makeColors, &QThread::finished,
[=]{generated = true; emit completeChanged();});
makeColors->startProcess();
return true;
}

103
colorstxtwizard.h Normal file
View File

@ -0,0 +1,103 @@
#ifndef COLORSTXTWIZARD_H
#define COLORSTXTWIZARD_H
#include <QFileIconProvider>
#include <QLabel>
#include <QLineEdit>
#include <QListWidget>
#include <QObject>
#include <QPlainTextEdit>
#include <QProgressBar>
#include <QWidget>
#include <QWizard>
class ColorsTxtWizard : public QWizard
{
Q_OBJECT
public:
ColorsTxtWizard(QWidget *parent = 0);
void setNodesTxtFilePath(const QString &nodesTxtFilePath);
};
class IntroPage : public QWizardPage
{
Q_OBJECT
public:
IntroPage(QWidget *parent = 0);
private:
QLabel *label;
};
class NodesTxtPage : public QWizardPage
{
Q_OBJECT
public:
NodesTxtPage(QWidget *parent = 0);
private slots:
void browse();
private:
QLabel *label;
QLabel *nodesTxtLabel;
QLineEdit *nodesTxtLineEdit;
};
class TextureFoldersPage : public QWizardPage
{
Q_OBJECT
public:
TextureFoldersPage(QWidget *parent = 0);
bool isComplete(void) const;
private slots:
void add();
void rem();
void chg();
private:
QFileIconProvider *fileIconProvider = new QFileIconProvider();
QListWidget *inputDirs;
QPushButton *addFolder;
QPushButton *chgFolder;
QPushButton *remFolder;
};
class OutputFilePage : public QWizardPage
{
Q_OBJECT
public:
OutputFilePage(QWidget *parent = 0);
private slots:
void browse();
private:
QLabel *colorsTxtLabel;
QLineEdit *colorsTxtLineEdit;
};
class ConclusionPage : public QWizardPage
{
Q_OBJECT
public:
ConclusionPage(QWidget *parent = 0);
bool isComplete(void) const override;
protected:
void initializePage() override;
private slots:
bool generate();
private:
bool generated = false;
QLabel *label;
QProgressBar *progress;
QPlainTextEdit *log;
};
#endif

2
images/sources.txt Normal file
View File

@ -0,0 +1,2 @@
text.svg:
Open Icon Libary GPL v2

132
images/text.svg Normal file
View File

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) --><svg height="48.000000px" id="svg249" inkscape:export-filename="/home/lapo/text.png" inkscape:export-xdpi="240.00000" inkscape:export-ydpi="240.00000" inkscape:output_extension="org.inkscape.output.svg.inkscape" inkscape:version="0.45+0.46pre0" sodipodi:docbase="/home/dobey/Projects/gnome-icon-theme/scalable/mimetypes" sodipodi:docname="text-x-generic.svg" sodipodi:version="0.32" width="48.000000px" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<metadata>
<rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work rdf:about="">
<dc:title>Generic Text</dc:title>
<dc:description></dc:description>
<dc:subject>
<rdf:Bag>
<rdf:li>regular</rdf:li>
<rdf:li>plaintext</rdf:li>
<rdf:li>text</rdf:li>
<rdf:li>document</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:publisher>
<cc:Agent rdf:about="http://www.openclipart.org/">
<dc:title>Source: GNOME Icon Theme, Source: GNOME Icon Theme, Source: GNOME Icon Theme, Source: GNOME Icon Theme, Source: GNOME Icon Theme</dc:title>
</cc:Agent>
</dc:publisher>
<dc:creator>
<cc:Agent>
<dc:title>Lapo Calamandrei</dc:title>
</cc:Agent>
</dc:creator>
<dc:rights>
<cc:Agent>
<dc:title>Lapo Calamandrei</dc:title>
</cc:Agent>
</dc:rights>
<dc:date></dc:date>
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<cc:license rdf:resource="http://creativecommons.org/licenses/GPL/2.0/"/>
<dc:language>en</dc:language>
</cc:Work>
</rdf:RDF>
</metadata>
<defs id="defs3">
<linearGradient gradientUnits="userSpaceOnUse" id="linearGradient5816" inkscape:collect="always" x1="-26.753757" x2="-24.75" xlink:href="#linearGradient3656" y1="11.566258" y2="9.687501"/>
<linearGradient gradientTransform="matrix(0.9223058,0,0,0.9185751,-92.447368,61.3257)" gradientUnits="userSpaceOnUse" id="linearGradient5836" inkscape:collect="always" x1="-18.588562" x2="-28.789402" xlink:href="#linearGradient3520" y1="11.052948" y2="14.069944"/>
<radialGradient cx="-26.305403" cy="10.108011" fx="-26.305403" fy="10.108011" gradientTransform="matrix(0.4073362,-0.2798276,0.7510293,1.0932492,-115.18484,51.56213)" gradientUnits="userSpaceOnUse" id="radialGradient5839" inkscape:collect="always" r="7.0421038" xlink:href="#linearGradient3671"/>
<linearGradient id="linearGradient6469" inkscape:collect="always">
<stop id="stop6471" offset="0" style="stop-color:#000000;stop-opacity:1;"/>
<stop id="stop6473" offset="1" style="stop-color:#000000;stop-opacity:0;"/>
</linearGradient>
<linearGradient gradientTransform="translate(-180,0)" gradientUnits="userSpaceOnUse" id="linearGradient6475" inkscape:collect="always" x1="58.282169" x2="61.181217" xlink:href="#linearGradient6469" y1="70.751839" y2="67.799171"/>
<radialGradient cx="4" cy="5.2999997" fx="4" fy="5.2999997" gradientTransform="matrix(1.8860258,0,0,1.1764706,-3.5441033,-4.2352941)" gradientUnits="userSpaceOnUse" id="radialGradient5810" inkscape:collect="always" r="17" xlink:href="#linearGradient3741"/>
<linearGradient gradientTransform="translate(-90,60)" gradientUnits="userSpaceOnUse" id="linearGradient5845" inkscape:collect="always" x1="-47.5" x2="-62.75" xlink:href="#linearGradient3613" y1="49.020683" y2="-22.502075"/>
<radialGradient cx="-30.249996" cy="35.357208" fx="-30.249996" fy="35.357208" gradientTransform="matrix(3.9957492,0,0,1.9350367,0.62141,28.832578)" gradientUnits="userSpaceOnUse" id="radialGradient5843" inkscape:collect="always" r="18.000002" xlink:href="#linearGradient3683"/>
<linearGradient gradientUnits="userSpaceOnUse" id="linearGradient5804" inkscape:collect="always" x1="25.058096" x2="25.058096" xlink:href="#linearGradient3702" y1="47.027729" y2="39.999443"/>
<radialGradient cx="4.9929786" cy="43.5" fx="4.9929786" fy="43.5" gradientTransform="matrix(2.003784,0,0,1.4,-20.01187,-104.4)" gradientUnits="userSpaceOnUse" id="radialGradient5802" inkscape:collect="always" r="2.5" xlink:href="#linearGradient3688"/>
<radialGradient cx="4.9929786" cy="43.5" fx="4.9929786" fy="43.5" gradientTransform="matrix(2.003784,0,0,1.4,27.98813,-17.4)" gradientUnits="userSpaceOnUse" id="radialGradient5800" inkscape:collect="always" r="2.5" xlink:href="#linearGradient3688"/>
<linearGradient gradientUnits="userSpaceOnUse" id="linearGradient5798" inkscape:collect="always" x1="25.058096" x2="25.058096" xlink:href="#linearGradient3702" y1="47.027729" y2="39.999443"/>
<radialGradient cx="4.9929786" cy="43.5" fx="4.9929786" fy="43.5" gradientTransform="matrix(2.003784,0,0,1.4,-20.01187,-104.4)" gradientUnits="userSpaceOnUse" id="radialGradient5796" inkscape:collect="always" r="2.5" xlink:href="#linearGradient3688"/>
<radialGradient cx="4.9929786" cy="43.5" fx="4.9929786" fy="43.5" gradientTransform="matrix(2.003784,0,0,1.4,27.98813,-17.4)" gradientUnits="userSpaceOnUse" id="radialGradient5794" inkscape:collect="always" r="2.5" xlink:href="#linearGradient3688"/>
<linearGradient id="linearGradient3656" inkscape:collect="always">
<stop id="stop3658" offset="0" style="stop-color:#ffffff;stop-opacity:1;"/>
<stop id="stop3660" offset="1" style="stop-color:#ffffff;stop-opacity:0;"/>
</linearGradient>
<linearGradient id="linearGradient3520" inkscape:collect="always">
<stop id="stop3522" offset="0" style="stop-color:#000000;stop-opacity:0.41295547"/>
<stop id="stop3524" offset="1" style="stop-color:#000000;stop-opacity:0;"/>
</linearGradient>
<linearGradient id="linearGradient3671">
<stop id="stop3673" offset="0" style="stop-color:#ffffff;stop-opacity:1;"/>
<stop id="stop3691" offset="0.47533694" style="stop-color:#ffffff;stop-opacity:1;"/>
<stop id="stop3675" offset="1" style="stop-color:#ffffff;stop-opacity:0;"/>
</linearGradient>
<linearGradient id="linearGradient3741" inkscape:collect="always">
<stop id="stop3743" offset="0" style="stop-color:#ffffff;stop-opacity:1;"/>
<stop id="stop3745" offset="1" style="stop-color:#ffffff;stop-opacity:0;"/>
</linearGradient>
<linearGradient id="linearGradient3613" inkscape:collect="always">
<stop id="stop3615" offset="0" style="stop-color:#888a85;stop-opacity:1"/>
<stop id="stop3617" offset="1" style="stop-color:#babdb6;stop-opacity:1"/>
</linearGradient>
<linearGradient id="linearGradient3683">
<stop id="stop3685" offset="0" style="stop-color:#f6f6f5;stop-opacity:1;"/>
<stop id="stop3689" offset="1" style="stop-color:#d3d7cf;stop-opacity:1"/>
</linearGradient>
<linearGradient id="linearGradient3688" inkscape:collect="always">
<stop id="stop3690" offset="0" style="stop-color:black;stop-opacity:1;"/>
<stop id="stop3692" offset="1" style="stop-color:black;stop-opacity:0;"/>
</linearGradient>
<linearGradient id="linearGradient3702">
<stop id="stop3704" offset="0" style="stop-color:black;stop-opacity:0;"/>
<stop id="stop3710" offset="0.5" style="stop-color:black;stop-opacity:1;"/>
<stop id="stop3706" offset="1" style="stop-color:black;stop-opacity:0;"/>
</linearGradient>
</defs>
<sodipodi:namedview bordercolor="#666666" borderopacity="0.25490196" id="base" inkscape:current-layer="layer6" inkscape:cx="46.371834" inkscape:cy="9.7451355" inkscape:document-units="px" inkscape:grid-bbox="true" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:showpageshadow="false" inkscape:window-height="872" inkscape:window-width="1048" inkscape:window-x="270" inkscape:window-y="146" inkscape:zoom="1" pagecolor="#ffffff" showgrid="false"/>
<g id="layer6" inkscape:groupmode="layer" inkscape:label="Shadow">
<g id="g6015" style="display:inline" transform="translate(150,-60)">
<rect height="48" id="rect5504" style="opacity:0;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline" width="48" x="-150" y="60"/>
<g id="g5508" inkscape:label="Shadow" style="opacity:0.65587045;display:inline" transform="matrix(1.0464281,0,0,0.8888889,-151.18572,65.72224)">
<g id="g5511" style="opacity:0.4" transform="matrix(1.052632,0,0,1.285713,-1.263158,-13.42854)">
<rect height="7" id="rect5513" style="opacity:1;fill:url(#radialGradient5794);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="5" x="38" y="40"/>
<rect height="7" id="rect5515" style="opacity:1;fill:url(#radialGradient5796);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="scale(-1,-1)" width="5" x="-10" y="-47"/>
<rect height="7.0000005" id="rect5517" style="opacity:1;fill:url(#linearGradient5798);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="28" x="10" y="40"/>
</g>
</g>
<g id="g5519" inkscape:label="Shadow" style="display:inline" transform="matrix(0.9548466,0,0,0.5555562,-148.98776,79.888875)">
<g id="g5521" style="opacity:0.4" transform="matrix(1.052632,0,0,1.285713,-1.263158,-13.42854)">
<rect height="7" id="rect5523" style="opacity:1;fill:url(#radialGradient5800);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="5" x="38" y="40"/>
<rect height="7" id="rect5525" style="opacity:1;fill:url(#radialGradient5802);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="scale(-1,-1)" width="5" x="-10" y="-47"/>
<rect height="7.0000005" id="rect5527" style="opacity:1;fill:url(#linearGradient5804);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="28" x="10" y="40"/>
</g>
</g>
<path d="M -141.47614,63.5 C -141.47614,63.5 -124,63.5 -122.5,63.5 C -118.62295,63.572942 -116,66 -113.5,68.5 C -111,71 -108.89232,73.752625 -108.5,77.5 C -108.5,79 -108.5,102.47614 -108.5,102.47614 C -108.5,103.59736 -109.40264,104.5 -110.52385,104.5 L -141.47614,104.5 C -142.59736,104.5 -143.5,103.59736 -143.5,102.47614 L -143.5,65.523858 C -143.5,64.402641 -142.59736,63.5 -141.47614,63.5 z" id="path5529" sodipodi:nodetypes="ccsccccccc" style="fill:url(#radialGradient5843);fill-opacity:1;stroke:url(#linearGradient5845);stroke-width:1;stroke-miterlimit:4;display:inline"/>
<path d="M 8.53125,4 C 7.6730803,4 7,4.6730802 7,5.53125 L 7,42.46875 C 7,43.32692 7.6730802,44 8.53125,44 L 39.46875,44 C 40.326919,44 41,43.326918 41,42.46875 C 41,42.46875 41,19 41,17.5 C 41,16.10803 40.513021,13.200521 38.65625,11.34375 C 36.65625,9.34375 35.65625,8.34375 33.65625,6.34375 C 31.799479,4.4869792 28.89197,4 27.5,4 C 26,4 8.53125,4 8.53125,4 z" id="path5531" inkscape:original="M 8.53125 3.5 C 7.410033 3.5 6.5 4.4100329 6.5 5.53125 L 6.5 42.46875 C 6.5 43.589967 7.4100329 44.5 8.53125 44.5 L 39.46875 44.5 C 40.589967 44.5 41.5 43.589966 41.5 42.46875 C 41.5 42.46875 41.5 19 41.5 17.5 C 41.5 16 41 13 39 11 C 37 9 36 8 34 6 C 32 4 29 3.5 27.5 3.5 C 26 3.5 8.5312499 3.5 8.53125 3.5 z " inkscape:radius="-0.4861359" sodipodi:type="inkscape:offset" style="opacity:0.68016196;fill:url(#radialGradient5810);fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;display:inline" transform="translate(-150,60)"/>
<path d="M -138.59375,69.125 C -138.81243,69.125 -139,69.312565 -139,69.53125 C -139,69.749934 -138.81243,69.937499 -138.59375,69.9375 L -117.40625,69.9375 C -117.18757,69.9375 -117,69.749934 -117,69.53125 C -117,69.312566 -117.18757,69.125 -117.40625,69.125 L -138.59375,69.125 z M -138.53125,71.0625 C -138.79094,71.0625 -139,71.271563 -139,71.53125 C -139,71.790937 -138.79094,72 -138.53125,72 L -116.46875,72 C -116.20906,72 -116,71.790937 -116,71.53125 C -116,71.271563 -116.20906,71.0625 -116.46875,71.0625 L -138.53125,71.0625 z M -138.53125,73.0625 C -138.79094,73.0625 -139,73.271563 -139,73.53125 C -139,73.790937 -138.79094,74 -138.53125,74 L -113.34375,74 C -113.08406,74 -112.875,73.790937 -112.875,73.53125 C -112.875,73.271563 -113.08406,73.0625 -113.34375,73.0625 L -138.53125,73.0625 z M -138.53125,75.0625 C -138.79094,75.0625 -139,75.271563 -139,75.53125 C -139,75.790937 -138.79094,76 -138.53125,76 L -113.34375,76 C -113.08406,76 -112.875,75.790937 -112.875,75.53125 C -112.875,75.271563 -113.08406,75.0625 -113.34375,75.0625 L -138.53125,75.0625 z M -138.53125,77.0625 C -138.79094,77.0625 -139,77.271563 -139,77.53125 C -139,77.790937 -138.79094,78 -138.53125,78 L -113.34375,78 C -113.08406,78 -112.875,77.790937 -112.875,77.53125 C -112.875,77.271563 -113.08406,77.0625 -113.34375,77.0625 L -138.53125,77.0625 z" id="rect5857" style="opacity:0.15;fill:url(#linearGradient6475);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"/>
<path d="M -122.5,64 C -123.88889,64 -122.54207,64.497088 -121.15625,65.125 C -119.77043,65.752912 -116.18337,68.340052 -117,72 C -112.67669,71.569417 -110.32087,75.122378 -110,76.28125 C -109.67913,77.440122 -109,78.888889 -109,77.5 C -108.97167,73.694419 -111.84543,71.068299 -113.84375,68.84375 C -115.84207,66.619201 -118.84621,64.476761 -122.5,64 z" id="path5533" sodipodi:nodetypes="ccccczc" style="fill:url(#radialGradient5839);fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;display:inline"/>
<path d="M -121.39912,65.014353 C -120.47682,65.014353 -118.39068,71.210015 -119.31298,75.343603 C -115.01802,74.915844 -110.4596,75.43178 -110,76.28125 C -110.32087,75.122378 -112.67669,71.569417 -117,72 C -116.13534,68.124761 -120.18657,65.382702 -121.39912,65.014353 z" id="path5535" sodipodi:nodetypes="ccccc" style="opacity:0.87854249;fill:url(#linearGradient5836);fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;display:inline"/>
<path d="M -51.46875,4.5 C -52.051916,4.5 -52.5,4.9480842 -52.5,5.53125 L -52.5,42.46875 C -52.5,43.051915 -52.051914,43.5 -51.46875,43.5 L -20.53125,43.5 C -19.948085,43.5 -19.5,43.051914 -19.5,42.46875 C -19.5,42.46875 -19.5,19 -19.5,17.5 C -19.5,16.220971 -19.980469,13.394531 -21.6875,11.6875 C -23.6875,9.6875 -24.6875,8.6875 -26.6875,6.6875 C -28.394531,4.9804687 -31.220971,4.5 -32.5,4.5 C -34,4.5 -51.46875,4.5 -51.46875,4.5 z" id="path5537" inkscape:original="M -51.46875 3.5 C -52.589967 3.5 -53.5 4.4100329 -53.5 5.53125 L -53.5 42.46875 C -53.5 43.589967 -52.589966 44.5 -51.46875 44.5 L -20.53125 44.5 C -19.410033 44.5 -18.5 43.589966 -18.5 42.46875 C -18.5 42.46875 -18.5 19 -18.5 17.5 C -18.5 16 -19 13 -21 11 C -23 9 -24 8 -26 6 C -28 4 -31 3.5 -32.5 3.5 C -34 3.5 -51.468749 3.5 -51.46875 3.5 z " inkscape:radius="-0.99436891" sodipodi:type="inkscape:offset" style="fill:none;fill-opacity:1;stroke:url(#linearGradient5816);stroke-width:1;stroke-miterlimit:4;display:inline" transform="translate(-90,60)"/>
<g id="g5539" inkscape:r_cx="true" inkscape:r_cy="true" style="opacity:0.15;fill:#000000;display:inline" transform="matrix(0.928889,0,0,1,-148.28889,60)">
<rect height="0.9375" id="rect5549" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="19.0625"/>
<rect height="0.9375" id="rect5553" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="21.0625"/>
<rect height="0.9375" id="rect5555" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="23.0625"/>
<rect height="0.9375" id="rect5557" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="25.0625"/>
<rect height="0.9375" id="rect5559" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="27.0625"/>
<rect height="0.9375" id="rect5561" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="29.0625"/>
<rect height="0.9375" id="rect5563" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="31.0625"/>
<rect height="0.9375" id="rect5565" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="33.0625"/>
<rect height="0.9375" id="rect5567" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="28.125" x="10" y="35.0625"/>
<rect height="0.9375" id="rect5569" inkscape:r_cx="true" inkscape:r_cy="true" rx="0.50463516" ry="0.46875" style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999982px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" width="13.8125" x="10" y="37.0625"/>
</g>
</g>
</g>
<g id="layer1" inkscape:groupmode="layer" inkscape:label="Base" style="display:inline"/>
<g id="layer5" inkscape:groupmode="layer" inkscape:label="Text" style="display:inline"/>
</svg>

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -8,6 +8,7 @@
#include <QFileDialog>
#include <QStringList>
static QMap<int, QString> geometryGranularitySymbolic;
static QMap<QString, int> geometryGranularityNumeric;
static QMap<int, QString> geometrySizeModeSymbolic;
@ -1001,8 +1002,8 @@ void MainWindow::on_actionPreferences_triggered()
void MainWindow::startColorsTxtAssistant(void)
{
ColorsTxtAssistant *assistant = new ColorsTxtAssistant(this);
assistant->exec();
ColorsTxtWizard *wizard = new ColorsTxtWizard(this);
wizard->exec();
}
/**
@ -1036,9 +1037,9 @@ QString MainWindow::getColorsTxtFilePath(QDir *appDir, QDir *worldDir)
);
if(ret == QMessageBox::Yes)
{
ColorsTxtAssistant assistant(this);
assistant.setNodesTxtFilePath(worldDir->absoluteFilePath("nodes.txt"));
assistant.exec();//maybe exec should return if a colors.txt file could successfuly generated.
ColorsTxtWizard wizard(this);
wizard.setNodesTxtFilePath(worldDir->absoluteFilePath("nodes.txt"));
wizard.exec();//maybe exec should return if a colors.txt file could successfuly generated.
if(QFile::exists( worldDir->absoluteFilePath("colors.txt"))){

View File

@ -19,7 +19,8 @@
#include <QWinTaskbarProgress>
#endif
#include "colorstxtassistant.h"
//#include "colorstxtassistant.h"
#include "colorstxtwizard.h"
#include "configdialog.h"
#include "drawmapfigure.h"
#include "drawmapfiguretablemodel.h"

View File

@ -28,7 +28,7 @@
</size>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="tab_genaral">
<attribute name="title">
@ -2214,7 +2214,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<item row="4" column="2">
<widget class="ColorLineEdit" name="figure_color">
<property name="text">
<string>red</string>
<string notr="true">red</string>
</property>
</widget>
</item>

View File

@ -23,5 +23,7 @@
<file>images/drawpoint.png</file>
<file>images/drawrectangle.png</file>
<file>images/drawtext.png</file>
<file>images/WizardImage.bmp</file>
<file>images/text.svg</file>
</qresource>
</RCC>

View File

@ -12,108 +12,79 @@
<context>
<name>ColorsTxtAssistant</name>
<message>
<location filename="../colorstxtassistant.ui" line="14"/>
<source>Create colors.txt assistant</source>
<translation>Erstelle colors.txt Assistent</translation>
<translation type="vanished">Erstelle colors.txt Assistent</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="22"/>
<source>Previous</source>
<translation>Zurück</translation>
<translation type="vanished">Zurück</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="42"/>
<source>Next</source>
<translation>Weiter</translation>
<translation type="vanished">Weiter</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="49"/>
<source>Finished</source>
<translation>Fertigstellen</translation>
<translation type="vanished">Fertigstellen</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="65"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;This Assistant will help you to generate a new colors.txt that fits to your mods and games.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;To proceed click the Next button&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="89"/>
<location filename="../colorstxtassistant.ui" line="177"/>
<source>browse</source>
<translation>Durchsuchen</translation>
<translation type="vanished">Durchsuchen</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="100"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;ol style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;First, you have to install and enable the mod &amp;quot;dumpnodes&amp;quot; You can download it here: &lt;/span&gt;&lt;a href=&quot;https://bitbucket.org/adrido/dumpnodes/overview&quot;&gt;&lt;span style=&quot; font-size:9pt; text-decoration: underline; color:#0000ff;&quot;&gt;https://bitbucket.org/adrido/dumpnodes/overview&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;extract it like each other mod into your mods folder. &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Activate it in the world configuration &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Start the game normaly &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;if you are ingame type /dumpnodes &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Now there should be a file called nodes.txt inside the world folder. If its there, click the next button if not, start with step 1.&lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Select the generated nodes.txt file down there&lt;/li&gt;&lt;/ol&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="124"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Now you have to specify one or more folders where the textures can be found.&lt;/p&gt;&lt;p&gt;Recomended is the minetest_game folder and the mods folder.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="133"/>
<source>add new</source>
<translation>Neuer Ordner</translation>
<translation type="vanished">Neuer Ordner</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="144"/>
<source>remove selected</source>
<translation>Ausgewählten Entfernen</translation>
<translation type="vanished">Ausgewählten Entfernen</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="188"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Optionaly you can specify a colors.txt here.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;If you leave this field empty, a colors.txt file will created in the same place as the nodes.txt&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
<source>Generate</source>
<translation type="vanished">Erstellen</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="204"/>
<source>Finished! Click the button Generate now to generate the colors.txt file</source>
<translation type="unfinished"></translation>
<source>Select Folder</source>
<translation type="vanished">Ordner auswählen</translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="211"/>
<source>Open colors.txt File</source>
<translation type="vanished">Öffne colors.txt Datei</translation>
</message>
<message>
<source>TXT File (*.txt)</source>
<translation type="vanished">TXT Datei (*.txt)</translation>
</message>
</context>
<context>
<name>ColorsTxtWizard</name>
<message>
<location filename="../colorstxtwizard.cpp" line="24"/>
<source>Colors Txt Wizard</source>
<translation>Colors Txt Assistent</translation>
</message>
</context>
<context>
<name>ConclusionPage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="194"/>
<source>Conclusion</source>
<translation>Zusammenfassung</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="195"/>
<source>All done. :-) Now click the Generate button to generate the colors.txt</source>
<translation>Alles erledigt :-) Clicke auf Erstellen um die colors.txt Datei zu generieren</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="202"/>
<source>Generate</source>
<translation>Erstellen</translation>
</message>
<message>
<location filename="../colorstxtassistant.cpp" line="81"/>
<source>Select Folder</source>
<translation>Ordner auswählen</translation>
</message>
<message>
<location filename="../colorstxtassistant.cpp" line="113"/>
<location filename="../colorstxtassistant.cpp" line="121"/>
<source>Open colors.txt File</source>
<translation>Öffne colors.txt Datei</translation>
</message>
<message>
<location filename="../colorstxtassistant.cpp" line="115"/>
<location filename="../colorstxtassistant.cpp" line="123"/>
<source>TXT File (*.txt)</source>
<translation>TXT Datei (*.txt)</translation>
<location filename="../colorstxtwizard.cpp" line="219"/>
<source>Click %1 to finish.</source>
<translation>Clicke auf %1 zum Fertigstellen.</translation>
</message>
</context>
<context>
@ -358,6 +329,19 @@ p, li { white-space: pre-wrap; }
<translation>&lt;h1&gt;Warnung&lt;/h1&gt;&lt;h2&gt;Geometrie ist nicht bekannt&lt;/h2&gt;Die eingegebene Geometrie ist entweder ungültig oder wird nur im &lt;i&gt;Benutzerdefinierten&lt;/i&gt; modus Unterstützt.</translation>
</message>
</context>
<context>
<name>IntroPage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="37"/>
<source>Introduction</source>
<translation>Einführung</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="40"/>
<source>This wizard will generate a brand new colors.txt file that fits exactly to your game and mods. You simply need to specify the nodes.txt and the paths where your game and your mods are installed.</source>
<translation>Dieser Asistent erstellt eine ganz neue colors.txt Datei die exakt zu dem Spiel und den mods passt. Es müssen nur die nodes.txt und die Ordner in denen das Game und die Mod&apos;s liegen angegeben werden.</translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
@ -941,11 +925,6 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<source>Apply</source>
<translation>Zuweisen</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2217"/>
<source>red</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2224"/>
<source>Figure:</source>
@ -1166,7 +1145,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<translation>Höhenkarte Farben</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="904"/>
<location filename="../mainwindow.cpp" line="905"/>
<source>select color</source>
<translation>Farbe auswählen</translation>
</message>
@ -1284,7 +1263,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2431"/>
<location filename="../mainwindow.cpp" line="1053"/>
<location filename="../mainwindow.cpp" line="1054"/>
<source>Cancel</source>
<translation>Abbrechen</translation>
</message>
@ -1317,7 +1296,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2590"/>
<location filename="../mainwindow.cpp" line="883"/>
<location filename="../mainwindow.cpp" line="884"/>
<source>About MinetestMapper</source>
<translation>Über MinetestMapper</translation>
</message>
@ -1361,7 +1340,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2727"/>
<location filename="../mainwindow.cpp" line="917"/>
<location filename="../mainwindow.cpp" line="918"/>
<source>New Profile</source>
<translation>Neues Profil</translation>
</message>
@ -1371,7 +1350,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2735"/>
<location filename="../mainwindow.cpp" line="479"/>
<location filename="../mainwindow.cpp" line="480"/>
<source>Expert Mode</source>
<translation>Expertenmodus</translation>
</message>
@ -1386,18 +1365,18 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<translation>Im Expertenmodus werden die Parameter angezeigt, die du verändern kannst.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="248"/>
<location filename="../mainwindow.cpp" line="249"/>
<source>Current Language changed to %1</source>
<translation>Sprache wurde auf %1 geändert</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2686"/>
<location filename="../mainwindow.cpp" line="869"/>
<location filename="../mainwindow.cpp" line="870"/>
<source>About MinetestMapper GUI</source>
<translation>Über MinetestMapperGUI</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="296"/>
<location filename="../mainwindow.cpp" line="297"/>
<source>Minetestmapper not found</source>
<translation>Minetestmapper nicht gefunden</translation>
</message>
@ -1422,7 +1401,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<translation type="vanished">Das Bild existiert bereits</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="326"/>
<location filename="../mainwindow.cpp" line="327"/>
<source>The File &lt;i&gt;%1&lt;/i&gt; does already exist. &lt;br&gt;&lt;br&gt;Do you want to overwrite?</source>
<translation>Die Datei &lt;i&gt;%1&lt;/i&gt; existiert bereits. &lt;br&gt;&lt;br&gt;Soll die Datei Überschrieben werden?</translation>
</message>
@ -1431,58 +1410,58 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<translation type="vanished">Der Ordner existiert nicht</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="335"/>
<location filename="../mainwindow.cpp" line="336"/>
<source>The directory &lt;i&gt;%1&lt;/i&gt; does not exist. &lt;br&gt;&lt;br&gt;Should it be created?</source>
<translation>Der Ordner &lt;i&gt;%1&lt;/i&gt; existiert nicht. &lt;br&gt;&lt;br&gt;Möchten sie den Ordner erstellen?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="480"/>
<location filename="../mainwindow.cpp" line="481"/>
<source>MinetestMapper will be executed using this arguments.
The arguments can be removed, modified, or new arguments can be added.</source>
<translation>MinetestMapper wird mit den folgenden Parametern ausgeführt.
Die einzelnen Parameter können entfernt, verändert, oder neue hinzugefügt werden.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="539"/>
<location filename="../mainwindow.cpp" line="540"/>
<source>Finisched :)</source>
<translation>Fertig :-)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="547"/>
<location filename="../mainwindow.cpp" line="548"/>
<source>minetestmapper terminated</source>
<translation>minetestmapper abgebrochen</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="290"/>
<location filename="../mainwindow.cpp" line="291"/>
<source>ERROR: No minetestmapper executable could not be found.
Please configure one. </source>
<translation>FEHLER: Kein Minetestmapper programm gefunden.
Bitte Konfiguriere eins.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="293"/>
<location filename="../mainwindow.cpp" line="294"/>
<source>ERROR: The Minetetmapper Application (%1) does not look like a Minetetestmapper
Please configure a correct MinetestMapper Application. </source>
<translation>FEHLER: Das Minetestmapper Programm (%1) ist möglicherweise kein Minetestmapper Programm.
Bitte Wählen sie eine Korrekte Minetestmapper Anwendung aus.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="298"/>
<location filename="../mainwindow.cpp" line="299"/>
<source>(Edit-&gt;Preferences)</source>
<translation>(Bearbeiten-&gt;Einstellungen)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>Do you want to open Preferences now?</source>
<translation>Sollen die Einstellungen jetzt geöffnet werden?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="312"/>
<location filename="../mainwindow.cpp" line="313"/>
<source>No input world selected</source>
<translation>Keine Welt ausgewählt</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="313"/>
<location filename="../mainwindow.cpp" line="314"/>
<source>ERROR: No MinetestWorld selected.
please select a world</source>
@ -1491,12 +1470,12 @@ please select a world</source>
Bitte wähle eine aus</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="319"/>
<location filename="../mainwindow.cpp" line="320"/>
<source>No output image selected</source>
<translation>Kein Ausgansbild ausgewählt</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="320"/>
<location filename="../mainwindow.cpp" line="321"/>
<source>ERROR: No output image selected.
Please select a output image</source>
@ -1505,28 +1484,28 @@ Please select a output image</source>
Bitte ein Ausgabebild wählen</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="325"/>
<location filename="../mainwindow.cpp" line="326"/>
<source>The image file does already exist</source>
<translation>Die Datei existiert bereits</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="334"/>
<location filename="../mainwindow.cpp" line="335"/>
<source>The directory does not exist</source>
<translation>Der Ordner existiert nicht</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="550"/>
<location filename="../mainwindow.cpp" line="567"/>
<location filename="../mainwindow.cpp" line="551"/>
<location filename="../mainwindow.cpp" line="568"/>
<source>Minetest Mapper failed</source>
<translation>Minetestmapper hat ein Fehler festgestellt</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="551"/>
<location filename="../mainwindow.cpp" line="552"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Exit code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Status of MinetestMapper: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Please fix the error and try again </source>
<translation>&lt;h1&gt;Fehler&lt;/h1&gt; &lt;h2&gt;kartenerstellung fehlgeschlagen&lt;/h2&gt;Exit code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Ausgabe des Minetstmapper: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Bitte den Fehler beheben und erneut versuchen </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="568"/>
<location filename="../mainwindow.cpp" line="569"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Error code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Error Message: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;</source>
<translation>&lt;h1&gt;FEHLER&lt;/h1&gt; &lt;h2&gt;minetestmapper ist abgestürzt&lt;/h2&gt;Fehlercode: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Fehlernachricht: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;</translation>
</message>
@ -1539,113 +1518,115 @@ Bitte ein Ausgabebild wählen</translation>
<translation type="vanished">Konnte die Einstellungen nicht migrieren</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="622"/>
<location filename="../mainwindow.cpp" line="623"/>
<source>Can not save settings</source>
<translation>Kann die Einstellungen nicht speichern</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="623"/>
<location filename="../mainwindow.cpp" line="624"/>
<source>Minetest Mapper GUI could not save the settings to %1.
Please make shure Minetest Mapper Gui can access to the file/directory</source>
<translation>Minetest Mapper GUI konnte die Einstellungen nicht nach %1 speichern.
Bitte stelle sicher, dass Minetest Mapper GUI auf die Datei/ den Ordner zugreifen darf.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="650"/>
<location filename="../mainwindow.cpp" line="651"/>
<source>Can not save profile</source>
<translation>Konnte das Profil nicht speichern</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="651"/>
<location filename="../mainwindow.cpp" line="652"/>
<source>Minetest Mapper GUI could not save the current Profile &apos;%1&apos; to %2.
Please make shure Minetest Mapper Gui can access to the file/directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="827"/>
<location filename="../mainwindow.cpp" line="828"/>
<source>Open Minetest World</source>
<translation>Minetest Welt-Ordner öffnen</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="837"/>
<location filename="../mainwindow.cpp" line="838"/>
<source>Save generated map to...</source>
<translation>Karte speichern nach...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="837"/>
<location filename="../mainwindow.cpp" line="838"/>
<source>png image (*.png)</source>
<translation>png Grafik (*.png)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="844"/>
<location filename="../mainwindow.cpp" line="845"/>
<source>Open HeightmapNodes File</source>
<translation>Öffne HeightmapNodes Datei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="846"/>
<location filename="../mainwindow.cpp" line="854"/>
<location filename="../mainwindow.cpp" line="862"/>
<location filename="../mainwindow.cpp" line="847"/>
<location filename="../mainwindow.cpp" line="855"/>
<location filename="../mainwindow.cpp" line="863"/>
<source>TXT File (*.txt)</source>
<translation>TXT Datei (*.txt)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="852"/>
<location filename="../mainwindow.cpp" line="853"/>
<source>Open HeightmapColors File</source>
<translation>Öffne Höhenkarte Farbdefinitionsdatei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="860"/>
<location filename="../mainwindow.cpp" line="861"/>
<source>Open colors.txt File</source>
<translation>Öffne colors.txt Datei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="870"/>
<location filename="../mainwindow.cpp" line="871"/>
<source>&lt;h1&gt;About MinetestMapperGUI&lt;/h1&gt;The &lt;b&gt;MinetestMapper Gui&lt;/b&gt; is written by addi.&lt;br /&gt;It is licensed under a &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot;&gt;Creative Commons Attribution 3.0 Unported License&lt;/a&gt;.&lt;br&gt;The current version is %1. &lt;br&gt;The sourcecode is aviable on &lt;a href=&apos;https://bitbucket.org/adrido/minetestmappergui/&apos;&gt;Bitbucket&lt;/a&gt;.&lt;br&gt;You may also want to read the &lt;a href=&apos;https://forum.minetest.net/viewtopic.php?f=14&amp;t=12139&apos;&gt;Minetest forum thread&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;b&gt;Thanks to:&lt;/b&gt;&lt;br&gt;McKrustenkaese for his great icon</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="884"/>
<location filename="../mainwindow.cpp" line="885"/>
<source>&lt;h1&gt;About MinetestMapper&lt;/h1&gt;The &lt;b&gt;MinetestMapper&lt;/b&gt; is written by:&lt;br&gt;Miroslav Bendík &lt;miroslav.bendik@gmail.com&gt;&lt;br&gt;ShadowNinja &lt;shadowninja@minetest.net&gt;&lt;br&gt;sfan5 &lt;sfan5@live.de&gt;&lt;br&gt;Rogier &lt;rogier777@gmail.com&gt;&lt;br&gt;&lt;br&gt;&lt;u&gt;Version:&lt;/u&gt; %1 (%2)&lt;br&gt;&lt;u&gt;License:&lt;/u&gt; LGPLv2.1+ and BSD 2-clause.&lt;br&gt;&lt;u&gt;Source Code:&lt;/u&gt; &lt;a href=&apos;https://github.com/Rogier-5/minetest-mapper-cpp&apos;&gt;Github&lt;/a&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="977"/>
<location filename="../mainwindow.cpp" line="978"/>
<source>map center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="982"/>
<location filename="../mainwindow.cpp" line="983"/>
<source>map origin (top left)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1032"/>
<location filename="../mainwindow.cpp" line="1033"/>
<source>Create a colors.txt</source>
<translation type="unfinished"></translation>
<translation>Erstelle eine colors.txt Datei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1033"/>
<location filename="../mainwindow.cpp" line="1034"/>
<source>There is a nodes.txt but no colors.txt in the world directory
Do you want to generate one?
If you select &apos;No&apos; the default colors.txt will be used.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1050"/>
<source>No colors.txt file</source>
<translation type="unfinished"></translation>
<translation>Es gibt eine nodes.txt aber keine colors.txt Datei in dem Welt ordner.
Möchtest du eine erstellen?
Wenn du auf &apos;Nein&apos; clickst, wird eine standard colors.txt Datei verwendet.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1051"/>
<source>No colors.txt file</source>
<translation>Keine colors.txt Datei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1052"/>
<source>ERROR: Still no colors.txt file found inside world directory.
Do you want to cancel or proceed with default colors.txt file?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1054"/>
<location filename="../mainwindow.cpp" line="1055"/>
<source>Proceed with default</source>
<translation type="unfinished"></translation>
<translation>Mit standard Datei fortfahren</translation>
</message>
<message>
<source>ERROR: No minetestmapper executable could not be found.
@ -1678,12 +1659,12 @@ Bitte erneut eine gültige minetestmapper Anwendung auswählen. (Bearbeiten-&gt;
Möchten Sie die Einstellungen jetzt öffnen? </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="898"/>
<location filename="../mainwindow.cpp" line="899"/>
<source>preview: %1</source>
<translation>Vorschau: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="918"/>
<location filename="../mainwindow.cpp" line="919"/>
<source>Name of the new Profile:</source>
<translation>Name des Neuen Profils:</translation>
</message>
@ -1723,15 +1704,97 @@ Möchten Sie die Einstellungen jetzt öffnen? </translation>
<context>
<name>NodesTxtPage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="54"/>
<source>The nodes.txt file</source>
<translation>Die nodes.txt Datei</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="55"/>
<source>Follow the steps and specify the path to the nodes.txt</source>
<translation>Folge den Schritten und gebe die nodes.txt an</translation>
</message>
<message>
<source>&lt;ol&gt;
&lt;li&gt;First, you have to install the mod &lt;span style=&quot; font-weight:600;&quot;&gt;dumpnodes&lt;/span&gt;. You can download it here: %1&lt;/li&gt;
&lt;li&gt;Extract it like each other mod into your mods folder. &lt;/li&gt;
&lt;li&gt;Activate it in the world configuration &lt;/li&gt;
&lt;li&gt;Start the game normaly &lt;/li&gt;
&lt;li&gt;If you are ingame type /dumpnodes &lt;/li&gt;&lt;li&gt;Now there should be a file called nodes.txt inside the world folder.&lt;/li&gt;
&lt;li&gt;Select the generated nodes.txt file down there&lt;/li&gt;
&lt;/ol&gt;</source>
<translation type="vanished">&lt;ol&gt;
&lt;li&gt;Als erstess musst du die Mod &lt;span style=&quot; font-weight:600;&quot;&gt;dumpnodes&lt;/span&gt; installieren. Du kannst diese hier herrunterladen: %1&lt;/li&gt;
&lt;li&gt;Entpacke diese wie jede andere Mod in das mods verzeichnis. &lt;/li&gt;
&lt;li&gt;Aktiviere diese in der Welt-Konfiguration &lt;/li&gt;
&lt;li&gt;Starte das spiel ganz normal &lt;/li&gt;
&lt;li&gt;Im spiel führe den befehl /dumpnodes aus&lt;/li&gt;
&lt;li&gt;Nun sollte es eine Datei nodes.txt im Welt Ordner geben.&lt;/li&gt;
&lt;li&gt;Wähle die Datei unten aus.&lt;/li&gt;
&lt;/ol&gt;</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="58"/>
<source>&lt;ol&gt;
&lt;li&gt;First, you have to install the mod &lt;span style=&quot; font-weight:600;&quot;&gt;dumpnodes&lt;/span&gt;. You can download it here: %1&lt;/li&gt;
&lt;li&gt;Extract it like each other mod into your mods folder. &lt;/li&gt;
&lt;li&gt;Activate it in the world configuration &lt;/li&gt;
&lt;li&gt;Start the game normaly &lt;/li&gt;
&lt;li&gt;If you are ingame type /dumpnodes &lt;/li&gt;
&lt;li&gt;Now there should be a file called nodes.txt inside the world folder.&lt;/li&gt;
&lt;li&gt;Select the generated nodes.txt file down there&lt;/li&gt;
&lt;/ol&gt;</source>
<translation>&lt;ol&gt;
&lt;li&gt;Als erstess musst du die Mod &lt;span style=&quot; font-weight:600;&quot;&gt;dumpnodes&lt;/span&gt; installieren. Du kannst diese hier herrunterladen: %1&lt;/li&gt;
&lt;li&gt;Entpacke diese wie jede andere Mod in das mods verzeichnis. &lt;/li&gt;
&lt;li&gt;Aktiviere diese in der Welt-Konfiguration &lt;/li&gt;
&lt;li&gt;Starte das spiel ganz normal &lt;/li&gt;
&lt;li&gt;Im spiel führe den befehl /dumpnodes aus&lt;/li&gt;
&lt;li&gt;Nun sollte es eine Datei nodes.txt im Welt Ordner geben.&lt;/li&gt;
&lt;li&gt;Wähle die Datei unten aus.&lt;/li&gt;
&lt;/ol&gt;</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="75"/>
<source>&amp;Browse</source>
<translation>&amp;Durchsuchen</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="87"/>
<source>Open nodes.txt File</source>
<translation>Öffne die nodes.txt Datei</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="89"/>
<source>TXT File (*.txt)</source>
<translation type="obsolete">TXT Datei (*.txt)</translation>
<translation>TXT Datei (*.txt)</translation>
</message>
</context>
<context>
<name>OutputFilePage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="162"/>
<source>Output colors.txt</source>
<translation>Ausgabe colors.txt</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="163"/>
<source>Optionally you can specify the colors.txt where the colors should be written into. If you leaf this empty, the file placed at the same directory as the nodes.txt file.</source>
<translation>Optional kannst du die colors.txt datei Festlegen in die erstellt werden soll. Wird das feld leergelassen wird die colors.txt im selben Ordner wie die nodes.txt erstellt. </translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="173"/>
<source>&amp;Browse</source>
<translation>&amp;Durchsuchen</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="184"/>
<source>Save colors.txt File</source>
<translation>Speichere die colors.txt Datei</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="186"/>
<source>TXT File (*.txt)</source>
<translation type="obsolete">TXT Datei (*.txt)</translation>
<translation>TXT Datei (*.txt)</translation>
</message>
</context>
<context>
@ -1740,5 +1803,35 @@ Möchten Sie die Einstellungen jetzt öffnen? </translation>
<source>Select Folder</source>
<translation type="obsolete">Ordner auswählen</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="97"/>
<source>Texture Folders</source>
<translation>Textur Ordner</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="98"/>
<source>Seletct one or more folders where the textures for the world are. Eg. the game folder and mods folder.</source>
<translation>Wähle einen oder Mehrere Ordner aus, in dem die Texturen für die Welt liegen. Z.B. den game- und den mods Ordner.</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="102"/>
<source>Add folder</source>
<translation>Ordner Hinzufügen</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="103"/>
<source>Remove selected folders</source>
<translation>Ausgewählte Ordner entfernen</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="104"/>
<source>Edit selected folder</source>
<translation>Bearbeite ausgewählten Ordner</translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="129"/>
<source>Select texture folder</source>
<translation>Wähle den Textur Ordner aus</translation>
</message>
</context>
</TS>

View File

@ -10,109 +10,33 @@
</message>
</context>
<context>
<name>ColorsTxtAssistant</name>
<name>ColorsTxtWizard</name>
<message>
<location filename="../colorstxtassistant.ui" line="14"/>
<source>Create colors.txt assistant</source>
<location filename="../colorstxtwizard.cpp" line="24"/>
<source>Colors Txt Wizard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ConclusionPage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="194"/>
<source>Conclusion</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="22"/>
<source>Previous</source>
<location filename="../colorstxtwizard.cpp" line="195"/>
<source>All done. :-) Now click the Generate button to generate the colors.txt</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="42"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="49"/>
<source>Finished</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="65"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;This Assistant will help you to generate a new colors.txt that fits to your mods and games.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;To proceed click the Next button&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="89"/>
<location filename="../colorstxtassistant.ui" line="177"/>
<source>browse</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="100"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;ol style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;First, you have to install and enable the mod &amp;quot;dumpnodes&amp;quot; You can download it here: &lt;/span&gt;&lt;a href=&quot;https://bitbucket.org/adrido/dumpnodes/overview&quot;&gt;&lt;span style=&quot; font-size:9pt; text-decoration: underline; color:#0000ff;&quot;&gt;https://bitbucket.org/adrido/dumpnodes/overview&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;extract it like each other mod into your mods folder. &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Activate it in the world configuration &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Start the game normaly &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;if you are ingame type /dumpnodes &lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Now there should be a file called nodes.txt inside the world folder. If its there, click the next button if not, start with step 1.&lt;/li&gt;
&lt;li style=&quot; font-size:9pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Select the generated nodes.txt file down there&lt;/li&gt;&lt;/ol&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="124"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Now you have to specify one or more folders where the textures can be found.&lt;/p&gt;&lt;p&gt;Recomended is the minetest_game folder and the mods folder.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="133"/>
<source>add new</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="144"/>
<source>remove selected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="188"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Optionaly you can specify a colors.txt here.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;If you leave this field empty, a colors.txt file will created in the same place as the nodes.txt&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="204"/>
<source>Finished! Click the button Generate now to generate the colors.txt file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.ui" line="211"/>
<location filename="../colorstxtwizard.cpp" line="202"/>
<source>Generate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.cpp" line="81"/>
<source>Select Folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.cpp" line="113"/>
<location filename="../colorstxtassistant.cpp" line="121"/>
<source>Open colors.txt File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtassistant.cpp" line="115"/>
<location filename="../colorstxtassistant.cpp" line="123"/>
<source>TXT File (*.txt)</source>
<location filename="../colorstxtwizard.cpp" line="219"/>
<source>Click %1 to finish.</source>
<translation type="unfinished"></translation>
</message>
</context>
@ -346,6 +270,19 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>IntroPage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="37"/>
<source>Introduction</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="40"/>
<source>This wizard will generate a brand new colors.txt file that fits exactly to your game and mods. You simply need to specify the nodes.txt and the paths where your game and your mods are installed.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
@ -572,7 +509,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="904"/>
<location filename="../mainwindow.cpp" line="905"/>
<source>select color</source>
<translation type="unfinished"></translation>
</message>
@ -1002,11 +939,6 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<source>Apply</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2217"/>
<source>red</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2224"/>
<source>Figure:</source>
@ -1069,7 +1001,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2431"/>
<location filename="../mainwindow.cpp" line="1053"/>
<location filename="../mainwindow.cpp" line="1054"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
@ -1117,7 +1049,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2590"/>
<location filename="../mainwindow.cpp" line="883"/>
<location filename="../mainwindow.cpp" line="884"/>
<source>About MinetestMapper</source>
<translation type="unfinished"></translation>
</message>
@ -1153,7 +1085,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2686"/>
<location filename="../mainwindow.cpp" line="869"/>
<location filename="../mainwindow.cpp" line="870"/>
<source>About MinetestMapper GUI</source>
<translation type="unfinished"></translation>
</message>
@ -1204,13 +1136,13 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
</message>
<message>
<location filename="../mainwindow.ui" line="2727"/>
<location filename="../mainwindow.cpp" line="917"/>
<location filename="../mainwindow.cpp" line="918"/>
<source>New Profile</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2735"/>
<location filename="../mainwindow.cpp" line="479"/>
<location filename="../mainwindow.cpp" line="480"/>
<source>Expert Mode</source>
<translation type="unfinished"></translation>
</message>
@ -1230,228 +1162,228 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="248"/>
<location filename="../mainwindow.cpp" line="249"/>
<source>Current Language changed to %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="290"/>
<location filename="../mainwindow.cpp" line="291"/>
<source>ERROR: No minetestmapper executable could not be found.
Please configure one. </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="293"/>
<location filename="../mainwindow.cpp" line="294"/>
<source>ERROR: The Minetetmapper Application (%1) does not look like a Minetetestmapper
Please configure a correct MinetestMapper Application. </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="296"/>
<location filename="../mainwindow.cpp" line="297"/>
<source>Minetestmapper not found</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="326"/>
<location filename="../mainwindow.cpp" line="327"/>
<source>The File &lt;i&gt;%1&lt;/i&gt; does already exist. &lt;br&gt;&lt;br&gt;Do you want to overwrite?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="335"/>
<location filename="../mainwindow.cpp" line="336"/>
<source>The directory &lt;i&gt;%1&lt;/i&gt; does not exist. &lt;br&gt;&lt;br&gt;Should it be created?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="480"/>
<location filename="../mainwindow.cpp" line="481"/>
<source>MinetestMapper will be executed using this arguments.
The arguments can be removed, modified, or new arguments can be added.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="539"/>
<location filename="../mainwindow.cpp" line="540"/>
<source>Finisched :)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="547"/>
<location filename="../mainwindow.cpp" line="548"/>
<source>minetestmapper terminated</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="298"/>
<location filename="../mainwindow.cpp" line="299"/>
<source>(Edit-&gt;Preferences)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="300"/>
<location filename="../mainwindow.cpp" line="301"/>
<source>Do you want to open Preferences now?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="312"/>
<location filename="../mainwindow.cpp" line="313"/>
<source>No input world selected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="313"/>
<location filename="../mainwindow.cpp" line="314"/>
<source>ERROR: No MinetestWorld selected.
please select a world</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="319"/>
<location filename="../mainwindow.cpp" line="320"/>
<source>No output image selected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="320"/>
<location filename="../mainwindow.cpp" line="321"/>
<source>ERROR: No output image selected.
Please select a output image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="325"/>
<location filename="../mainwindow.cpp" line="326"/>
<source>The image file does already exist</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="334"/>
<location filename="../mainwindow.cpp" line="335"/>
<source>The directory does not exist</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="550"/>
<location filename="../mainwindow.cpp" line="567"/>
<location filename="../mainwindow.cpp" line="551"/>
<location filename="../mainwindow.cpp" line="568"/>
<source>Minetest Mapper failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="551"/>
<location filename="../mainwindow.cpp" line="552"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Exit code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Status of MinetestMapper: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Please fix the error and try again </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="568"/>
<location filename="../mainwindow.cpp" line="569"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Error code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Error Message: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="622"/>
<location filename="../mainwindow.cpp" line="623"/>
<source>Can not save settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="623"/>
<location filename="../mainwindow.cpp" line="624"/>
<source>Minetest Mapper GUI could not save the settings to %1.
Please make shure Minetest Mapper Gui can access to the file/directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="650"/>
<location filename="../mainwindow.cpp" line="651"/>
<source>Can not save profile</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="651"/>
<location filename="../mainwindow.cpp" line="652"/>
<source>Minetest Mapper GUI could not save the current Profile &apos;%1&apos; to %2.
Please make shure Minetest Mapper Gui can access to the file/directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="827"/>
<location filename="../mainwindow.cpp" line="828"/>
<source>Open Minetest World</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="837"/>
<location filename="../mainwindow.cpp" line="838"/>
<source>Save generated map to...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="837"/>
<location filename="../mainwindow.cpp" line="838"/>
<source>png image (*.png)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="844"/>
<location filename="../mainwindow.cpp" line="845"/>
<source>Open HeightmapNodes File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="846"/>
<location filename="../mainwindow.cpp" line="854"/>
<location filename="../mainwindow.cpp" line="862"/>
<location filename="../mainwindow.cpp" line="847"/>
<location filename="../mainwindow.cpp" line="855"/>
<location filename="../mainwindow.cpp" line="863"/>
<source>TXT File (*.txt)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="852"/>
<location filename="../mainwindow.cpp" line="853"/>
<source>Open HeightmapColors File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="860"/>
<location filename="../mainwindow.cpp" line="861"/>
<source>Open colors.txt File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="870"/>
<location filename="../mainwindow.cpp" line="871"/>
<source>&lt;h1&gt;About MinetestMapperGUI&lt;/h1&gt;The &lt;b&gt;MinetestMapper Gui&lt;/b&gt; is written by addi.&lt;br /&gt;It is licensed under a &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot;&gt;Creative Commons Attribution 3.0 Unported License&lt;/a&gt;.&lt;br&gt;The current version is %1. &lt;br&gt;The sourcecode is aviable on &lt;a href=&apos;https://bitbucket.org/adrido/minetestmappergui/&apos;&gt;Bitbucket&lt;/a&gt;.&lt;br&gt;You may also want to read the &lt;a href=&apos;https://forum.minetest.net/viewtopic.php?f=14&amp;t=12139&apos;&gt;Minetest forum thread&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;b&gt;Thanks to:&lt;/b&gt;&lt;br&gt;McKrustenkaese for his great icon</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="884"/>
<location filename="../mainwindow.cpp" line="885"/>
<source>&lt;h1&gt;About MinetestMapper&lt;/h1&gt;The &lt;b&gt;MinetestMapper&lt;/b&gt; is written by:&lt;br&gt;Miroslav Bendík &lt;miroslav.bendik@gmail.com&gt;&lt;br&gt;ShadowNinja &lt;shadowninja@minetest.net&gt;&lt;br&gt;sfan5 &lt;sfan5@live.de&gt;&lt;br&gt;Rogier &lt;rogier777@gmail.com&gt;&lt;br&gt;&lt;br&gt;&lt;u&gt;Version:&lt;/u&gt; %1 (%2)&lt;br&gt;&lt;u&gt;License:&lt;/u&gt; LGPLv2.1+ and BSD 2-clause.&lt;br&gt;&lt;u&gt;Source Code:&lt;/u&gt; &lt;a href=&apos;https://github.com/Rogier-5/minetest-mapper-cpp&apos;&gt;Github&lt;/a&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="977"/>
<location filename="../mainwindow.cpp" line="978"/>
<source>map center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="982"/>
<location filename="../mainwindow.cpp" line="983"/>
<source>map origin (top left)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1032"/>
<location filename="../mainwindow.cpp" line="1033"/>
<source>Create a colors.txt</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1033"/>
<location filename="../mainwindow.cpp" line="1034"/>
<source>There is a nodes.txt but no colors.txt in the world directory
Do you want to generate one?
If you select &apos;No&apos; the default colors.txt will be used.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1050"/>
<location filename="../mainwindow.cpp" line="1051"/>
<source>No colors.txt file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1051"/>
<location filename="../mainwindow.cpp" line="1052"/>
<source>ERROR: Still no colors.txt file found inside world directory.
Do you want to cancel or proceed with default colors.txt file?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1054"/>
<location filename="../mainwindow.cpp" line="1055"/>
<source>Proceed with default</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="898"/>
<location filename="../mainwindow.cpp" line="899"/>
<source>preview: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="918"/>
<location filename="../mainwindow.cpp" line="919"/>
<source>Name of the new Profile:</source>
<translation type="unfinished"></translation>
</message>
@ -1488,4 +1420,106 @@ Do you want to cancel or proceed with default colors.txt file?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>NodesTxtPage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="54"/>
<source>The nodes.txt file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="55"/>
<source>Follow the steps and specify the path to the nodes.txt</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="58"/>
<source>&lt;ol&gt;
&lt;li&gt;First, you have to install the mod &lt;span style=&quot; font-weight:600;&quot;&gt;dumpnodes&lt;/span&gt;. You can download it here: %1&lt;/li&gt;
&lt;li&gt;Extract it like each other mod into your mods folder. &lt;/li&gt;
&lt;li&gt;Activate it in the world configuration &lt;/li&gt;
&lt;li&gt;Start the game normaly &lt;/li&gt;
&lt;li&gt;If you are ingame type /dumpnodes &lt;/li&gt;
&lt;li&gt;Now there should be a file called nodes.txt inside the world folder.&lt;/li&gt;
&lt;li&gt;Select the generated nodes.txt file down there&lt;/li&gt;
&lt;/ol&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="75"/>
<source>&amp;Browse</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="87"/>
<source>Open nodes.txt File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="89"/>
<source>TXT File (*.txt)</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OutputFilePage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="162"/>
<source>Output colors.txt</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="163"/>
<source>Optionally you can specify the colors.txt where the colors should be written into. If you leaf this empty, the file placed at the same directory as the nodes.txt file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="173"/>
<source>&amp;Browse</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="184"/>
<source>Save colors.txt File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="186"/>
<source>TXT File (*.txt)</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TextureFoldersPage</name>
<message>
<location filename="../colorstxtwizard.cpp" line="97"/>
<source>Texture Folders</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="98"/>
<source>Seletct one or more folders where the textures for the world are. Eg. the game folder and mods folder.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="102"/>
<source>Add folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="103"/>
<source>Remove selected folders</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="104"/>
<source>Edit selected folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../colorstxtwizard.cpp" line="129"/>
<source>Select texture folder</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>