diff --git a/drawmapfigure.cpp b/drawmapfigure.cpp index 97eba50..967d0c1 100644 --- a/drawmapfigure.cpp +++ b/drawmapfigure.cpp @@ -1,5 +1,14 @@ #include "drawmapfigure.h" +QStringList DrawMapFigure::figuresList = QStringList() << QT_TR_NOOP("Unknown") + << QT_TR_NOOP("Arrow") + << QT_TR_NOOP("Circle") + << QT_TR_NOOP("Ellipse") + << QT_TR_NOOP("Line") + << QT_TR_NOOP("Point") + << QT_TR_NOOP("Rectangle") + << QT_TR_NOOP("Text"); + DrawMapFigure::DrawMapFigure(QObject *parent) : QObject(parent) { @@ -18,9 +27,8 @@ DrawMapFigure::DrawMapFigure(const QString &str, QObject *parent) : QString params = match.captured("params"); color.setNamedColor(params.section(' ', 1, 1)); - bool ok; figure = getFigure(match.captured("type")); - if(color.isValid() && ok){ + if(color.isValid()){ switch (figure) { case Text: //parse text and fall through for point @@ -143,12 +151,7 @@ QColor DrawMapFigure::getColor() const QStringList DrawMapFigure::getFigureList() { - QMetaEnum metaEnum = QMetaEnum::fromType
(); - QStringList list; - for(int i =0; i(); private: - + Q_OBJECT + static QStringList figuresList; }; #endif // DRAWMAPFIGURE_H diff --git a/drawmapfiguretablemodel.cpp b/drawmapfiguretablemodel.cpp index ec79a4f..4d5692e 100644 --- a/drawmapfiguretablemodel.cpp +++ b/drawmapfiguretablemodel.cpp @@ -6,14 +6,7 @@ DrawMapFigureTableModel::DrawMapFigureTableModel(QObject *parent) : QAbstractTableModel(parent) { list = new QList; - header <<"Figure"<<"Use image coordinates"<<"Point"<<"Geometry"<<"Color"<<"Text"; -} - -DrawMapFigureTableModel::DrawMapFigureTableModel(QList *list, QObject *parent) - : QAbstractTableModel(parent) -{ - this->list = list; - header <<"Figure"<<"Use image coordinates"<<"Point"<<"Geometry"<<"Color"<<"Text"; + header <getUseImageCoordinates(); + if(role == Qt::EditRole){ + return item->getUseImageCoordinates(); + } + else { + return item->getUseImageCoordinates() ? "Image (x,y)" : "Minetest (x,z)"; + } break; case 2: return (item->requiresPoint()) ? QString("(%1,%2)").arg(p.x()).arg(p.y()) : QVariant(); break; case 3: - return item->requiresGeometry() ? item->getGeometry()->getString() : QVariant(); + return item->requiresGeometry() ? item->getGeometry()->getString(Geometry::FormatKeep) : QVariant(); break; case 4: return item->getColor(); @@ -121,6 +119,9 @@ QVariant DrawMapFigureTableModel::data(const QModelIndex &index, int role) const else if(role == Qt::DecorationRole && col==4){ return item->getColor(); } + else if(role == Qt::CheckStateRole && col ==1){ + return item->getUseImageCoordinates()? Qt::Checked : Qt::Unchecked; + } } return QVariant(); } @@ -156,6 +157,12 @@ bool DrawMapFigureTableModel::setData(const QModelIndex &index, const QVariant & emit dataChanged(index, index, QVector() << role); return true; } + else if( index.isValid() && role == Qt::CheckStateRole &&index.column()==1){ + DrawMapFigure *item = list->at(index.row()); + item->setUseImageCoordinates(value.toInt() == Qt::Checked); + emit dataChanged(index, index, QVector() << role); + return true; + } return false; } @@ -169,7 +176,7 @@ Qt::ItemFlags DrawMapFigureTableModel::flags(const QModelIndex &index) const if(col == 0) flag |= Qt::ItemIsEnabled|Qt::ItemIsEditable; else if(col == 1) - flag |= Qt::ItemIsEditable; + flag |= Qt::ItemIsUserCheckable; else if (col == 2 && item->requiresPoint()) flag |= Qt::ItemIsEditable; else if (col == 3 && item->requiresGeometry()) diff --git a/drawmapfiguretablemodel.cpp.autosave b/drawmapfiguretablemodel.cpp.autosave deleted file mode 100644 index ec79a4f..0000000 --- a/drawmapfiguretablemodel.cpp.autosave +++ /dev/null @@ -1,248 +0,0 @@ -#include "drawmapfiguretablemodel.h" - -#include - -DrawMapFigureTableModel::DrawMapFigureTableModel(QObject *parent) - : QAbstractTableModel(parent) -{ - list = new QList; - header <<"Figure"<<"Use image coordinates"<<"Point"<<"Geometry"<<"Color"<<"Text"; -} - -DrawMapFigureTableModel::DrawMapFigureTableModel(QList *list, QObject *parent) - : QAbstractTableModel(parent) -{ - this->list = list; - header <<"Figure"<<"Use image coordinates"<<"Point"<<"Geometry"<<"Color"<<"Text"; -} - -QVariant DrawMapFigureTableModel::headerData(int section, Qt::Orientation orientation, int role) const -{ - if (role == Qt::DisplayRole && orientation == Qt::Horizontal && section <= header.size()) - { - return header[section]; - } - else if(role == Qt::DisplayRole && orientation == Qt::Vertical){ - return section+1; - } - return QVariant(); -} - -bool DrawMapFigureTableModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role) -{ - if (value != headerData(section, orientation, role) && role == Qt::DisplayRole && orientation == Qt::Horizontal) - { - header[section] = value.toString(); - emit headerDataChanged(orientation, section, section); - return true; - } - - - return false; -} - - -int DrawMapFigureTableModel::rowCount(const QModelIndex &parent) const -{ - Q_UNUSED(parent); - if (parent.isValid()) - return 0; - - - return list->size(); -} - -int DrawMapFigureTableModel::columnCount(const QModelIndex &parent) const -{ - Q_UNUSED(parent); - if (parent.isValid()) - return 0; - - return header.size(); - // FIXME: Implement me! -} - -QVariant DrawMapFigureTableModel::data(const QModelIndex &index, int role) const -{ - if (index.isValid()){ - int row = index.row(); - int col = index.column(); - DrawMapFigure *item = list->at(row); - QPoint p = item->getPoint(); - QMetaEnum metaEnum = QMetaEnum::fromType(); - if(role == Qt::DecorationRole && col ==0) - { - return item->getIcon(); - } - else if(role == Qt::BackgroundRole) - { - if(item->getFigure()==DrawMapFigure::Unknown){ - return QBrush(Qt::red); - } - else if(col == 2 && !item->requiresPoint()){ - return QBrush(Qt::lightGray); - } - else if (col == 3 && !item->requiresGeometry()){ - return QBrush(Qt::lightGray); - } - else if(col == 5 && !item->requiresText()){ - return QBrush(Qt::lightGray); - } - } - else if(role == Qt::EditRole ||role == Qt::DisplayRole){ - - switch(col){ - case 0: - return (role == Qt::EditRole) ? QVariant(item->getFigure()) : QString(metaEnum.key(item->getFigure())); - break; - - case 1: - return item->getUseImageCoordinates(); - break; - case 2: - return (item->requiresPoint()) ? QString("(%1,%2)").arg(p.x()).arg(p.y()) : QVariant(); - break; - case 3: - return item->requiresGeometry() ? item->getGeometry()->getString() : QVariant(); - break; - case 4: - return item->getColor(); - break; - case 5: - return item->getText(); - break; - default: - return QVariant(); - } - - // FIXME: Implement me! - return QVariant(); - } - else if(role == Qt::DecorationRole && col==4){ - return item->getColor(); - } - } - return QVariant(); -} - -bool DrawMapFigureTableModel::setData(const QModelIndex &index, const QVariant &value, int role) -{ - if (index.isValid() && role == Qt::EditRole && data(index, role) != value) { - int row = index.row(); - int col = index.column(); - DrawMapFigure *item = list->at(row); - switch(col){ - case 0: - item->setFigure(value.toInt()); - break; - case 1: - item->setUseImageCoordinates(value.toBool()); - break; - case 2: - item->setPoint(value.toString()); - break; - case 3: - item->getGeometry()->set(value.toString()); - break; - case 4: - item->setColor(QColor(value.toString())); - break; - case 5: - item->setText(value.toString()); - default: - break; - } - // FIXME: Implement me! - emit dataChanged(index, index, QVector() << role); - return true; - } - return false; -} - -Qt::ItemFlags DrawMapFigureTableModel::flags(const QModelIndex &index) const -{ - if (!index.isValid()) - return Qt::NoItemFlags; - Qt::ItemFlags flag = QAbstractItemModel::flags(index); - int col = index.column(); - DrawMapFigure *item = list->at(index.row()); - if(col == 0) - flag |= Qt::ItemIsEnabled|Qt::ItemIsEditable; - else if(col == 1) - flag |= Qt::ItemIsEditable; - else if (col == 2 && item->requiresPoint()) - flag |= Qt::ItemIsEditable; - else if (col == 3 && item->requiresGeometry()) - flag |= Qt::ItemIsEditable; - else if (col == 4) - flag |= Qt::ItemIsEditable; - else if(col == 5 && item->requiresText()) - flag |= Qt::ItemIsEditable; - - return flag; -} - -bool DrawMapFigureTableModel::insertRows(int position, int count, const QModelIndex &parent) -{ - beginInsertRows(parent, position, position + count - 1); - for (int row = 0; row < count; ++row) { - list->insert(position, new DrawMapFigure()); - } - endInsertRows(); - return true; -} - -bool DrawMapFigureTableModel::insertColumns(int column, int count, const QModelIndex &parent) -{ - beginInsertColumns(parent, column, column + count - 1); - // FIXME: Implement me! - endInsertColumns(); - return false; -} - -bool DrawMapFigureTableModel::removeRows(int position, int count, const QModelIndex &parent) -{ - beginRemoveRows(parent, position, position + count - 1); - for (int row = 0; row < count; ++row) { - list->removeAt(position); - } - endRemoveRows(); - return true; -} - -bool DrawMapFigureTableModel::removeColumns(int column, int count, const QModelIndex &parent) -{ - beginRemoveColumns(parent, column, column + count - 1); - // FIXME: Implement me! - endRemoveColumns(); - return false; -} - -QStringList DrawMapFigureTableModel::getStringList() const -{ - QStringList retval; - for (int i = 0; i < list->size(); ++i) - retval << list->at(i)->getString(); - return retval; -} - -QStringList DrawMapFigureTableModel::getArguments() const -{ - QStringList retval; - for (int i = 0; i < list->size(); ++i) - retval << list->at(i)->getSplittedString(); - return retval; -} - -void DrawMapFigureTableModel::insertStringList(const QStringList &other) -{ - if(other.length() > 0){ - int leng = other.length(); - beginInsertRows(QModelIndex() , list->length(), list->length()+leng - 1); - //insertRows(0, other.length(),QModelIndex()); - for(int i = 0; i < leng; ++i){ - list->append(new DrawMapFigure(other.at(i))); - } - endInsertRows(); - } -} diff --git a/drawmapfiguretablemodel.h b/drawmapfiguretablemodel.h index df0a3c9..b9c88ce 100644 --- a/drawmapfiguretablemodel.h +++ b/drawmapfiguretablemodel.h @@ -12,7 +12,6 @@ class DrawMapFigureTableModel : public QAbstractTableModel public: explicit DrawMapFigureTableModel(QObject *parent = 0); - explicit DrawMapFigureTableModel(QList *list, QObject *parent = 0); // Header: QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; diff --git a/geometry.cpp b/geometry.cpp index c59fb11..5887ae1 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -40,7 +40,7 @@ Geometry::Format Geometry::set(QString str) QRegularExpressionMatch match; if(str.isEmpty()){ qDebug()<<"format is FormatNone"; - return FormatNone; + format = FormatNone; } else if((match =corners.match(str)).hasMatch()) { qDebug()<<"format is Corners"; @@ -52,7 +52,7 @@ Geometry::Format Geometry::set(QString str) // Order is important here! computeDimensions(); computeCenter(); - return Geometry::Corners; + format = Geometry::Corners; } else if((match =centerDimension.match(str)).hasMatch()){ qDebug()<<"format is CenterDimensions"; @@ -67,7 +67,7 @@ Geometry::Format Geometry::set(QString str) computeDimensions(); computeCenter(); } - return Geometry::CenterDimensions; + format = Geometry::CenterDimensions; } else if((match = cornerDimension.match(str)).hasMatch()){ qDebug()<<"format is CornerDimensions"; @@ -82,7 +82,7 @@ Geometry::Format Geometry::set(QString str) computeDimensions(); computeCenter(); } - return Geometry::CornerDimensions; + format = Geometry::CornerDimensions; } else if((match = cornerDimensionAlternate.match(str)).hasMatch()){ qDebug() << "format is x[<+|-xoffset><+|-yoffset>]"; @@ -99,7 +99,7 @@ Geometry::Format Geometry::set(QString str) computeDimensions(); computeCenter(); } - return Geometry::CenterDimensions; + format = Geometry::CenterDimensions; } else if(match.lastCapturedIndex() ==4){ qDebug() << "format is CornerDimensions"; @@ -114,15 +114,17 @@ Geometry::Format Geometry::set(QString str) computeDimensions(); computeCenter(); } - return Geometry::CornerDimensions; + format = Geometry::CornerDimensions; } - else return Geometry::FormatCustom; + else format = Geometry::FormatCustom; } else { qDebug()<<"Warning: Could not parse format of string: "<format; // Use the preferred format switch (format) { case CenterDimensions: if(center[0]==0 && center[1] ==0) diff --git a/geometry.h b/geometry.h index d328843..39aef88 100644 --- a/geometry.h +++ b/geometry.h @@ -52,6 +52,8 @@ private: void computeCorner1(void); void computeCenter(void); // Depends dimensions to be correct ! void computeDimensions(void); + + Format format = FormatNone; }; #endif // GEOMETRY_H diff --git a/languages/gui_de.ts b/languages/gui_de.ts index e91b9e7..e5c3f51 100644 --- a/languages/gui_de.ts +++ b/languages/gui_de.ts @@ -9,6 +9,114 @@ Farbe auswählen + + ColorsTxtAssistant + + + Dialog + + + + + Previous + Zurück + + + + Next + Weiter + + + + Finished + Fertigstellen + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">This Assistant will help you to generate a new colors.txt that fits to your mods and games.</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;"><br /></span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">To proceed click the Next button</span></p></body></html> + + + + + + browse + Durchsuchen + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> +<ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">First, you have to install and enable the mod &quot;dumpnodes&quot; You can download it here: </span><a href="https://bitbucket.org/adrido/dumpnodes/overview"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">https://bitbucket.org/adrido/dumpnodes/overview</span></a></li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">extract it like each other mod into your mods folder. </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Activate it in the world configuration </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Start the game normaly </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">if you are ingame type /dumpnodes </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">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.</li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Select the generated nodes.txt file down there</li></ol></body></html> + + + + + <html><head/><body><p>Now you have to specify one or more folders where the textures can be found.</p><p>Recomended is the minetest_game folder and the mods folder.</p></body></html> + + + + + add new + Neu + + + + remove selected + Ausgewählter +Entfernen + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Optionaly you can specify a colors.txt here.</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">If you leave this field empty, a colors.txt file will created in the same place as the nodes.txt</span></p></body></html> + + + + + Finished! Click the button Generate now to generate the colors.txt file + + + + + Generate + Erstellen + + + + Select Folder + Ordner auswählen + + + + + Open colors.txt File + Öffne colors.txt Datei + + + + + TXT File (*.txt) + TXT Datei (*.txt) + + ConfigDialog @@ -72,12 +180,45 @@ ERROR: Die Ausgewählte Datei ist kein Minetestmapper Programm + + DrawMapFigureTableModel + + + Figure + Figur + + + + Coordinates + Koordinatensystem + + + + Point + Punkt + + + + Geometry + Geometrie + + + + Color + Farbe + + + + Text + Text + + GeometryWidget Try to convert to a non-custom format - + @@ -158,7 +299,7 @@ Try to convert to another - + @@ -166,14 +307,14 @@ Parsen - - + + Invalid or unrecognised geometry Ungültige oder unbekannte Geometrie - - + + <h1>WARNING</h1> <h2>Geometry string was not recognised</h2>The given geometry is either invalid, or only supported in <i>custom</i> mode. <h1>Warnung</h1><h2>Geometrie ist nicht bekannt</h2>Die eingegebene Geometrie ist entweder ungültig oder wird nur im <i>Benutzerdefinierten</i> modus Unterstützt. @@ -198,7 +339,7 @@ Database backend - Datenbank backend + Datenbank backend @@ -208,7 +349,7 @@ redis - + @@ -236,58 +377,58 @@ Automatisch - + geometrymode Geometriemodus - + pixel Pixel - + block Kartenblock (16x16x16) - + fixed Fest - + shrink verkleinern - + Heightmap Höhenkarte - + Specify the nodes list for the height map Legt die Liste für Höhenkarten-nodes fest - - + + Specify the color definition file for the height map Legt die Farbdefinitionsliste für die Höhenkarte fest - + a monochrome map is generated in shades of that color, ranging from black at depth -128 to the given color at height 127. - Eine Monochrome Karte wird erstellt. + Eine Monochrome Karte wird erstellt. - + e.g. grey,black, #00FF00 z.B. grey, black, #00FF00 - + If a color is given, a monochrome map is generated in shades of that color, ranging from black at depth -128 to the given color at height 127. Wenn eine Farbe festgelegt ist, wird eine Monochrome Karte in Schatten dieser farbe erstellt. Diese reicht von einer Tiefe von -128 bis 127. @@ -297,53 +438,41 @@ Vorschau: - - Currently, shrinking is done with block granularity, and based on which blocks are in the database. As the database always contains a row or and column of empty, or partially empty blocks at the map edges, there will still be empty pixels at the edges of the map. Use --blockcolor to visualize these empty blocks. - - - - + Generate a map of at most the requested geometry. Shrink it to the smallest possible size that still includes the same information. - The requested geometry will be extended so that the map does not contain partial map blocks (of 16x16 nodes each). At least all pixels covered by the geometry will be in the map, but there may be up to 15 more in every direction. - Die gewählte Gometrie wird ausgedehnt, sodass die Karte nur ganze Kartenblöcke (16x16) einschließt. Alle Pixel der geometrie werden eingeschlossen, aber es können bis zu 15 Pixel mehr sein. + Die gewählte Gometrie wird ausgedehnt, sodass die Karte nur ganze Kartenblöcke (16x16) einschließt. Alle Pixel der geometrie werden eingeschlossen, aber es können bis zu 15 Pixel mehr sein. - + round the coodinates to a multiple of 16. Rundet die Koordinaten auf ein vielfaches von 16. - - A map of exactly the requested size is generated (after adjustments due to the 'shrink' flag, or possible adjustments required by the scale factor). - - - - + interpret the coordinates with pixel granularity. - + min-Y Untere Höhengrenze - - + Specify the upper height limit for the map Legt das Obere Höhenlimit für die Karte fest - + max-Y Obere Höhengrenze - + Nodes higher than this level will not be drawn. This can be used to avoid floating islands or floating artefacts from abscuring the world below. Blöcke über diesem level werden nicht angezigt. Dies kann dazu verwendet werden um schwebende Inseln und andere gegenstände auszusortieren. @@ -362,326 +491,453 @@ z.B. -200,-100:200,200 - + NOTE: If this flag is used, and no actual geometry is specified, this would result in a maximum-size map (65536 x 65536), which is currently not possible, and will fail, due to a bug in the drawing library. <b>Achtung:</b> Wenn dieser Parameter verwendet wird, ohne dass eine geometrie festgelegt ist wird eine Karte der Maximalen Größe (65536 x 65536) erstellt. Dies ist derzeit nicht möglich aufgrund eines fehlers der Zeichenbibliothek. - + don't reduce the map size. What ever is specified using a geometry option, is what will be draw, even if partly or fully empty. Kartengröße wird nicht reduziert. Alles was in der Geometrie festgelegt ist wird angezeigt, egal ob es leer ist. - + Color Farbe - + If no color is specified, minetestmapper will use a colors file to determine which colors to use at which height level. Wenn keine Farbe festgelegt wurde, verwendet der minetestmapper eine datei. - + File Datei - + use color or select a heightmap-colors.txt file Verwende eine Farbe, oder wähle eine heightmap-colors.txt datei aus - + heightmap Skale Höhenkarte Skala - - + + Draw a height scale at the bottom of the map Zeichne eine Höhenskala am unteren Rand der Karte - + Draw Heightscale Zeichne Höhenkartenskala - + other Weitere - + Y-scale Y-Skalierung - + Height level 0 Normal Null höhe - + Colors Farben - + tilebordercolor Rasterfarbe - + Specify the background color for the image Legt die Hintergrundfarbe für das Bild fest - + bgcolor Hintergrundfarbe - + playercolor Spielerfarbe - + Specify the color for empty mapblocks Legt die Farbe für leere kartenabschnitte fest - + blockcolor Farbe für leere Kartenabschnitte - + origincolor Farbe des Ursprungs - + scalecolor Farbe der Skala - + Specify the color for drawing tile borders Legt die Farbe des Rasters fest - + Specify the color for drawing player locations Legt die Farbe der Spielerpositionen fest - + Specify the color for drawing the map origin (0,0) Legt die Farbe der Ursprungsmarkierung fest - + Specify the color for text in the scales on the side Legt die Farbe des Textes in der Skala fest - + Map features Eigenschaften - + Draw origin Zeichne Ursprung - + Open map after creation Öffne Karte nach Erstellung - + Open map after creation with the default png viewer Öffnet die Karte nach dem erstellen mit dem Standard png Programm - + &Preferences E&instellungen - + Draw a scale on the left and/or top edge Zeichnet eine Skala links und/oder oben auf der Karte - + drawscale Zeichne Skala - + edit colors.txt bearbeite colors.txt - + edit heightmap-nodes.txt bearbeite heightmap-nodes.txt - + edit heightmap-colors.txt bearbeite heightmap-colors.txt - + Draw a circle at the origin (0,0) on the map Zeichne ein Kreis am Mittelpunkt (0,0) auf der Karte - + Enable drawing transparency for some nodes (e.g. water) Zeichnet Transparenz z.B. für Wasser - + Draw circles at player positions on the map Zeichet kreise bei den Spielerpositionen - + Draw Players Zeichne Spielerpositionen - + Draw air nodes (read the warnings first!) Macht Luft sichtbar (bitte zuerst die Warnungen lesen) - + Disable shading that accentuates height diffences Deaktiviert die Schatten der Höhenunterschiede - + top Oben - + + The requested geometry will be extended so that the map does not contain partial map blocks (of 16x16 nodes each). +At least all pixels covered by the geometry will be in the map, but there may be up to 15 more in every direction. + + + + + Currently, shrinking is done with block granularity, and based on which blocks are in the database. +As the database always contains a row or and column of empty, or partially empty blocks at the map edges, there will still be empty pixels at the edges of the map. Use --blockcolor to visualize these empty blocks. + + + + + A map of exactly the requested size is generated +(after adjustments due to the 'shrink' flag, or possible adjustments required by the scale factor). + + + + + + Specify the upper height limit for the map + +Nodes higher than this level will not be drawn. This can be used to avoid floating islands or floating artefacts from obscuring the world below. + + + + + + Specify the minumum depth of nodes to be included + + + + + Specify the maximum height of nodes to be included + + + + + If enabled MinetestMapperGui always uses this file instead of searching one in the World directory + + + + + Allways use this static colors.txt file + + + + A chunk is the unit of map generation. Usually 5x5x5 blocks. - + chunk-aligned - + A block is 16x16x16 nodes - + block-aligned - + Arrange: - + at: - + world center (0,0) Zentrum der Welt (0,0) - + map origin (top-left) Kartenursprung (Oben links) - + + Draw figures + + + + + Properties + + + + + Geometry + + + + + Apply + Zuweisen + + + + red + + + + + Figure: + Figur: + + + + Use Image Coodinates + Verwende Bild Koordinaten + + + + Color: + Farbe: + + + + Text: + Text: + + + + Point + Punkt + + + + Information: + Information: + + + + qrc:/doc/drawfigure.html + + + + + Elements + Elemente + + + + + + + + + + - + + + + &Edit &Bearbeiten - + Main Toolbar Hauptwerkzeugleiste - + qrc:/doc/intro.html - + Whats this? Was ist das? - + Open World Öffne Welt - + Save map as Speichere karte als - + + Start colors.txt assistant + + + + left Links - + Draw Alpha Durchsichtiges Wasser - + Draw Air Zeichne Luft - + No Shading Keine Schatten - + Generate a height map instead of a regular map Erstellt eine Höhenkarte - + Generate a height map instead of a regular map Eine Höhenkarte anstatt einer normalen erstellen - + Heightmap nodes Höhenkarte Nodes - - - + + + browse Durchsuchen @@ -714,76 +970,76 @@ karte.png - + scalefactor Skalierfaktor - + geometry Geometrie - + Heightmap colors Höhenkarte Farben - - - - - - - - + + + + + + + + select color Farbe auswählen - + custom heightscale intervall Benuzerdefinierte Höhenskalaeinteilung - - + + Major: Hauptskalierung: - - + + Minor: Nebenskalierung: - + colors.txt file colors.txt Datei - + custom sidescale Interval Benutzerdefinierte Skaleneinteilung - + Tiles Raster - + Draw tiles Zeichne Raster - + tiles Raster - + size: Größe: @@ -792,27 +1048,27 @@ Kartengeneratorblock (5x5x5) - + tilesize+border Größe+Rahmen - + border: Rahmen: - + arrange Ausrichten - + tilecenter Zentrieren - + tileorigin Ursprung @@ -821,7 +1077,7 @@ Ausrichten an - + coordinates Koordinaten @@ -834,114 +1090,115 @@ Karte - + MinetestMapper Output Ausgabe des minetestmapper - + select all Alle markieren - + copy In Zwischenablage kopiern - + clear leeren - + Generate Erstellen - + + Cancel Abbrechen - + &File &Datei - + Choose profile: Profil auswählen: - - - + + + Help Hilfe - + Language Sprache - + Extras Extras - - + + About MinetestMapper Über MinetestMapper - + About QT Über QT - + generate Map Karte Erstellen - + starting Minetestmapper to generate the map startet den Minetestmapper um die Karte zu erstellen - + generate the Map erstellt die Karte - + Exit Beenden - - + + edit colors.txt with default program Bearbeite die colors.txt Datei mit dem Standard Programm - - + + edit heightmap-nodes.txt with default txt editor - - + + edit heightmap-colors.txt with default txt editor - - + + New Profile Neues Profil @@ -950,249 +1207,288 @@ Standart - - + + Expert Mode Expertenmodus - + In the Expert Mode it shows you the parameters, that you can modify it. Im Expertenmodus wird ein Fenster mit den Parametern geöfnet. Die Parameter können dann Manuell verändert werden. - + Expert Mode shows the parameters, that you can modify it. Im Expertenmodus werden die Parameter angezeigt, die du verändern kannst. - + Current Language changed to %1 Sprache wurde auf %1 geändert - - + + About MinetestMapper GUI Über MinetestMapperGUI - - + + Minetestmapper not found - + Minetestmapper nicht gefunden - + Minetestmapper not executable - + no input world selected Keine Minetestwelt ausgewählt - + ERROR: No MinetestWorld selected<br><br>please select a world FEHLER: Keine Minetestwelt ausgewählt<br><br>Bitte wähle eine Welt aus - + no output image selected Kein Ausgabebild ausgewählt - + ERROR: No output image selected<br><br>please select a output image FEHLER: Kein Ausgabebild Ausgewählt. <br><br>Bitte ein Bild Auswählen - + the Image File does already exist Das Bild existiert bereits - + The File <i>%1</i> does already exist. <br><br>Do you want to overwrite? Die Datei <i>%1</i> existiert bereits. <br><br>Soll die Datei Überschrieben werden? - + the directory does not exist Der Ordner existiert nicht - + The directory <i>%1</i> does not exist. <br><br>Should it be created? Der Ordner <i>%1</i> existiert nicht. <br><br>Möchten sie den Ordner erstellen? - + MinetestMapper will be executed using this arguments. The arguments can be removed, modified, or new arguments can be added. MinetestMapper wird mit den folgenden Parametern ausgeführt. Die einzelnen Parameter können entfernt, verändert, oder neue hinzugefügt werden. - + Finisched :) Fertig :-) - + minetestmapper terminated minetestmapper abgebrochen - - + + <b>Minetest Mapper failed</b> + + + + + Exit code: %1 + + + + + Minetest Mapper failed Minetestmapper hat ein Fehler festgestellt - + <h1>ERROR</h1> <h2>minetestmapper failed</h2>Exit code: <i>%1</i> <br>Status of MinetestMapper: <pre>%2</pre><br><br>Please fix the error and try again <h1>Fehler</h1> <h2>kartenerstellung fehlgeschlagen</h2>Exit code: <i>%1</i> <br>Ausgabe des Minetstmapper: <pre>%2</pre><br><br>Bitte den Fehler beheben und erneut versuchen - + <h1>ERROR</h1> <h2>minetestmapper failed</h2>Error code: <i>%1</i> <br>Error Message: <pre>%2</pre><br> <h1>FEHLER</h1> <h2>minetestmapper ist abgestürzt</h2>Fehlercode: <i>%1</i> <br>Fehlernachricht: <pre>%2</pre><br> - + Migrating settings - + <h1>WARNING</h1> <h2>Migrating settings: both old and new settings found</h2>old settings directory: <i>%1</i><br>new settings directory: <i>%2</i><br><h2>Migrate old settings anyway ?</h2>This overwrites the new settings, and some or all new profiles<br><br>Delete the old settings files (<i>%1/Minetestmapper*</i>) to avoid this message. - - - + + + Failed to migrate settings - + <h1>ERROR</h1> <h2>Failed to migrate settings</h2>Reason: failed to create new settings directory <i>%1</i> - + <h1>ERROR</h1> <h2>Failed to migrate settings</h2>Reason: failed to remove existing file <i>%1</i> - + <h1>ERROR</h1> <h2>Failed to migrate settings</h2>Reason: failed to move file <i>%1</i> to <i>%2</i> - + Failed to remove old settings - + <h1>WARNING</h1> <h2>Failed to remove old settings</h2>Reason: failed to remove file <i>%1</i> - + Failed to remove old settings directory - + <h1>WARNING</h1> <h2>Failed to remove old settings directory</h2>Reason: failed to remove directory <i>%1</i> - + Can not save settings - + Minetest Mapper GUI could not save the settings to %1. Please make shure Minetest Mapper Gui can access to the file/directory - + Can not save profile - + Minetest Mapper GUI could not save the current Profile '%1' to %2. Please make shure Minetest Mapper Gui can access to the file/directory - + Open Minetest World Minetest Welt-Ordner öffnen - + Save generated map to... Karte speichern nach... - + png image (*.png) png Grafik (*.png) - + Open HeightmapNodes File Öffne HeightmapNodes Datei - - - + + + TXT File (*.txt) TXT Datei (*.txt) - + Open HeightmapColors File Öffne Höhenkarte Farbdefinitionsdatei - + Open colors.txt File Öffne colors.txt Datei - + <h1>About MinetestMapperGUI</h1>The <b>MinetestMapper Gui</b> is written by addi.<br />It is licensed under a <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.<br>The current version is %1. <br>The sourcecode is aviable on <a href='https://bitbucket.org/adrido/minetestmappergui/'>Bitbucket</a>.<br>You may also want to read the <a href='https://forum.minetest.net/viewtopic.php?f=14&t=12139'>Minetest forum thread</a>.<br><br><b>Thanks to:</b><br>McKrustenkaese for his great icon - + map center - + map origin (top left) - + + Create a colors.txt + + + + + There is a nodes.txt but no colors.txt in the world directory +Do you want to generate one? +If you select 'No' the default colors.txt will be used. + + + + + No colors.txt file + + + + + ERROR: Still no colors.txt file found inside world directory. + +Do you want to cancel or proceed with default colors.txt file? + + + + + Proceed with default + + + + <h1>About MinetestMapper</h1>The <b>MinetestMapper</b> is written by:<br>Miroslav Bendík <miroslav.bendik@gmail.com><br>ShadowNinja <shadowninja@minetest.net><br>sfan5 <sfan5@live.de><br>Rogier <rogier777@gmail.com><br><br><u>License:</u>LGPLv2.1+ and BSD 2-clause.<br><u>Source Code:</u> <a href='https://github.com/Rogier-5/minetest-mapper-cpp'>Github</a><br> - + ERROR: No minetestmapper executable could not be found. Please configure one. (Edit->Preferences) @@ -1203,7 +1499,7 @@ Bitte Konfigurieren Sie eine. (Bearbeiten->Einstellungen) Möchten Sie die Einstellungen jetzt öffnen? - + ERROR: Configured minetestmapper executable (%1) could not be found Please configure one. (Edit->Preferences) @@ -1214,7 +1510,7 @@ Bitte erneut Konfigurieren. (Bearbeiten->Einstellungen) Möchten Sie die Einstellungen jetzt öffnen? - + ERROR: The configured minetestmapper (%1) is not executable. Please configure a valid minetestmapper executable. (Edit->Preferences) @@ -1225,12 +1521,12 @@ Bitte erneut eine gültige minetestmapper Anwendung auswählen. (Bearbeiten-> Möchten Sie die Einstellungen jetzt öffnen? - + preview: %1 Vorschau: %1 - + Name of the new Profile: Name des Neuen Profils: diff --git a/languages/gui_en.ts b/languages/gui_en.ts index e1b65b2..44d9a51 100644 --- a/languages/gui_en.ts +++ b/languages/gui_en.ts @@ -9,6 +9,113 @@ + + ColorsTxtAssistant + + + Dialog + + + + + Previous + + + + + Next + + + + + Finished + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">This Assistant will help you to generate a new colors.txt that fits to your mods and games.</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;"><br /></span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">To proceed click the Next button</span></p></body></html> + + + + + + browse + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> +<ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">First, you have to install and enable the mod &quot;dumpnodes&quot; You can download it here: </span><a href="https://bitbucket.org/adrido/dumpnodes/overview"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">https://bitbucket.org/adrido/dumpnodes/overview</span></a></li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">extract it like each other mod into your mods folder. </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Activate it in the world configuration </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Start the game normaly </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">if you are ingame type /dumpnodes </li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">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.</li> +<li style=" font-size:9pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Select the generated nodes.txt file down there</li></ol></body></html> + + + + + <html><head/><body><p>Now you have to specify one or more folders where the textures can be found.</p><p>Recomended is the minetest_game folder and the mods folder.</p></body></html> + + + + + add new + + + + + remove selected + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Optionaly you can specify a colors.txt here.</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">If you leave this field empty, a colors.txt file will created in the same place as the nodes.txt</span></p></body></html> + + + + + Finished! Click the button Generate now to generate the colors.txt file + + + + + Generate + + + + + Select Folder + + + + + + Open colors.txt File + + + + + + TXT File (*.txt) + + + ConfigDialog @@ -72,6 +179,39 @@ + + DrawMapFigureTableModel + + + Figure + + + + + Coordinates + + + + + Point + + + + + Geometry + + + + + Color + + + + + Text + + + GeometryWidget @@ -166,14 +306,14 @@ - - + + Invalid or unrecognised geometry - - + + <h1>WARNING</h1> <h2>Geometry string was not recognised</h2>The given geometry is either invalid, or only supported in <i>custom</i> mode. @@ -202,9 +342,9 @@ - - - + + + browse @@ -254,37 +394,37 @@ - + scalefactor - + geometry - + geometrymode - + pixel - + block - + fixed - + shrink @@ -294,53 +434,37 @@ - - Currently, shrinking is done with block granularity, and based on which blocks are in the database. As the database always contains a row or and column of empty, or partially empty blocks at the map edges, there will still be empty pixels at the edges of the map. Use --blockcolor to visualize these empty blocks. - - - - + Generate a map of at most the requested geometry. Shrink it to the smallest possible size that still includes the same information. - - The requested geometry will be extended so that the map does not contain partial map blocks (of 16x16 nodes each). At least all pixels covered by the geometry will be in the map, but there may be up to 15 more in every direction. - - - - + round the coodinates to a multiple of 16. - - A map of exactly the requested size is generated (after adjustments due to the 'shrink' flag, or possible adjustments required by the scale factor). - - - - + interpret the coordinates with pixel granularity. - + min-Y - - + Specify the upper height limit for the map - + max-Y - + Nodes higher than this level will not be drawn. This can be used to avoid floating islands or floating artefacts from abscuring the world below. @@ -355,341 +479,341 @@ - + NOTE: If this flag is used, and no actual geometry is specified, this would result in a maximum-size map (65536 x 65536), which is currently not possible, and will fail, due to a bug in the drawing library. - + don't reduce the map size. What ever is specified using a geometry option, is what will be draw, even if partly or fully empty. - + Heightmap - + Generate a height map instead of a regular map - + Generate a height map instead of a regular map - + Heightmap nodes - + Specify the nodes list for the height map - + Heightmap colors - + If a color is given, a monochrome map is generated in shades of that color, ranging from black at depth -128 to the given color at height 127. - + Color - + If no color is specified, minetestmapper will use a colors file to determine which colors to use at which height level. - + File - + a monochrome map is generated in shades of that color, ranging from black at depth -128 to the given color at height 127. - + e.g. grey,black, #00FF00 - - - - - - - - + + + + + + + + select color - - + + Specify the color definition file for the height map - + use color or select a heightmap-colors.txt file - + heightmap Skale - - + + Draw a height scale at the bottom of the map - + Draw Heightscale - + other - + Y-scale - + Height level 0 - + Colors - + tilebordercolor - + Specify the background color for the image - + bgcolor - + playercolor - + Specify the color for empty mapblocks - + blockcolor - + origincolor - + scalecolor - + colors.txt file - + Specify the color for drawing tile borders - + Specify the color for drawing player locations - + Specify the color for drawing the map origin (0,0) - + Specify the color for text in the scales on the side - + Map features - + Draw origin - + Open map after creation - + Open map after creation with the default png viewer - + &Preferences - + Draw a scale on the left and/or top edge - + drawscale - + A chunk is the unit of map generation. Usually 5x5x5 blocks. - + chunk-aligned - + A block is 16x16x16 nodes - + block-aligned - + Arrange: - + at: - + world center (0,0) - + map origin (top-left) - + edit colors.txt - + edit heightmap-nodes.txt - + edit heightmap-colors.txt - + Draw a circle at the origin (0,0) on the map - + Enable drawing transparency for some nodes (e.g. water) - + Draw circles at player positions on the map - + Draw Players - + Draw Alpha - + Draw air nodes (read the warnings first!) - + Draw Air - + Disable shading that accentuates height diffences - + No Shading - + left - + top @@ -706,462 +830,629 @@ - + + The requested geometry will be extended so that the map does not contain partial map blocks (of 16x16 nodes each). +At least all pixels covered by the geometry will be in the map, but there may be up to 15 more in every direction. + + + + + Currently, shrinking is done with block granularity, and based on which blocks are in the database. +As the database always contains a row or and column of empty, or partially empty blocks at the map edges, there will still be empty pixels at the edges of the map. Use --blockcolor to visualize these empty blocks. + + + + + A map of exactly the requested size is generated +(after adjustments due to the 'shrink' flag, or possible adjustments required by the scale factor). + + + + + + Specify the upper height limit for the map + +Nodes higher than this level will not be drawn. This can be used to avoid floating islands or floating artefacts from obscuring the world below. + + + + + + Specify the minumum depth of nodes to be included + + + + + Specify the maximum height of nodes to be included + + + + custom heightscale intervall - - + + Major: - - + + Minor: - + + If enabled MinetestMapperGui always uses this file instead of searching one in the World directory + + + + + Allways use this static colors.txt file + + + + custom sidescale Interval - + Tiles - + Draw tiles - + tiles - + size: - + tilesize+border - + border: - + arrange - + tilecenter - + tileorigin - + coordinates - - MinetestMapper Output + + Draw figures - - select all + + Properties - - copy + + Geometry - clear + Apply - - Generate + + red - - Cancel + + Figure: + + + + + Use Image Coodinates + + + + + Color: + + + + + Text: + Point + + + + + Information: + + + + + qrc:/doc/drawfigure.html + + + + + Elements + + + + + + + + + + + - + + + + + MinetestMapper Output + + + + + select all + + + + + copy + + + + + clear + + + + + Generate + + + + + + Cancel + + + + &File - + Choose profile: - + &Edit - - - + + + Help - + Language - + Extras - + Main Toolbar - + qrc:/doc/intro.html - - + + About MinetestMapper - + About QT - + generate Map - + starting Minetestmapper to generate the map - + generate the Map - + Exit - + Whats this? - + Open World - + Save map as - - + + About MinetestMapper GUI - - + + edit colors.txt with default program - - + + edit heightmap-nodes.txt with default txt editor - - + + edit heightmap-colors.txt with default txt editor - - + + New Profile - - + + Expert Mode - + In the Expert Mode it shows you the parameters, that you can modify it. - + Expert Mode shows the parameters, that you can modify it. - + + Start colors.txt assistant + + + + Current Language changed to %1 - - + + Minetestmapper not found - + Minetestmapper not executable - + no input world selected - + ERROR: No MinetestWorld selected<br><br>please select a world - + no output image selected - + ERROR: No output image selected<br><br>please select a output image - + the Image File does already exist - + The File <i>%1</i> does already exist. <br><br>Do you want to overwrite? - + the directory does not exist - + The directory <i>%1</i> does not exist. <br><br>Should it be created? - + MinetestMapper will be executed using this arguments. The arguments can be removed, modified, or new arguments can be added. - + Finisched :) - + minetestmapper terminated - - + + <b>Minetest Mapper failed</b> + + + + + Exit code: %1 + + + + + Minetest Mapper failed - + <h1>ERROR</h1> <h2>minetestmapper failed</h2>Exit code: <i>%1</i> <br>Status of MinetestMapper: <pre>%2</pre><br><br>Please fix the error and try again - + <h1>ERROR</h1> <h2>minetestmapper failed</h2>Error code: <i>%1</i> <br>Error Message: <pre>%2</pre><br> - + Migrating settings - + <h1>WARNING</h1> <h2>Migrating settings: both old and new settings found</h2>old settings directory: <i>%1</i><br>new settings directory: <i>%2</i><br><h2>Migrate old settings anyway ?</h2>This overwrites the new settings, and some or all new profiles<br><br>Delete the old settings files (<i>%1/Minetestmapper*</i>) to avoid this message. - - - + + + Failed to migrate settings - + <h1>ERROR</h1> <h2>Failed to migrate settings</h2>Reason: failed to create new settings directory <i>%1</i> - + <h1>ERROR</h1> <h2>Failed to migrate settings</h2>Reason: failed to remove existing file <i>%1</i> - + <h1>ERROR</h1> <h2>Failed to migrate settings</h2>Reason: failed to move file <i>%1</i> to <i>%2</i> - + Failed to remove old settings - + <h1>WARNING</h1> <h2>Failed to remove old settings</h2>Reason: failed to remove file <i>%1</i> - + Failed to remove old settings directory - + <h1>WARNING</h1> <h2>Failed to remove old settings directory</h2>Reason: failed to remove directory <i>%1</i> - + Can not save settings - + Minetest Mapper GUI could not save the settings to %1. Please make shure Minetest Mapper Gui can access to the file/directory - + Can not save profile - + Minetest Mapper GUI could not save the current Profile '%1' to %2. Please make shure Minetest Mapper Gui can access to the file/directory - + Open Minetest World - + Save generated map to... - + png image (*.png) - + Open HeightmapNodes File - - - + + + TXT File (*.txt) - + Open HeightmapColors File - + Open colors.txt File - + <h1>About MinetestMapperGUI</h1>The <b>MinetestMapper Gui</b> is written by addi.<br />It is licensed under a <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.<br>The current version is %1. <br>The sourcecode is aviable on <a href='https://bitbucket.org/adrido/minetestmappergui/'>Bitbucket</a>.<br>You may also want to read the <a href='https://forum.minetest.net/viewtopic.php?f=14&t=12139'>Minetest forum thread</a>.<br><br><b>Thanks to:</b><br>McKrustenkaese for his great icon - + map center - + map origin (top left) - + + Create a colors.txt + + + + + There is a nodes.txt but no colors.txt in the world directory +Do you want to generate one? +If you select 'No' the default colors.txt will be used. + + + + + No colors.txt file + + + + + ERROR: Still no colors.txt file found inside world directory. + +Do you want to cancel or proceed with default colors.txt file? + + + + + Proceed with default + + + + <h1>About MinetestMapper</h1>The <b>MinetestMapper</b> is written by:<br>Miroslav Bendík <miroslav.bendik@gmail.com><br>ShadowNinja <shadowninja@minetest.net><br>sfan5 <sfan5@live.de><br>Rogier <rogier777@gmail.com><br><br><u>License:</u>LGPLv2.1+ and BSD 2-clause.<br><u>Source Code:</u> <a href='https://github.com/Rogier-5/minetest-mapper-cpp'>Github</a><br> - + ERROR: No minetestmapper executable could not be found. Please configure one. (Edit->Preferences) @@ -1169,7 +1460,7 @@ Do you want to open Preferences now? - + ERROR: Configured minetestmapper executable (%1) could not be found Please configure one. (Edit->Preferences) @@ -1177,7 +1468,7 @@ Do you want to open Preferences now? - + ERROR: The configured minetestmapper (%1) is not executable. Please configure a valid minetestmapper executable. (Edit->Preferences) @@ -1185,12 +1476,12 @@ Do you want to open Preferences now? - + preview: %1 - + Name of the new Profile: diff --git a/mainwindow.ui b/mainwindow.ui index 5f07ad8..c298487 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -6,8 +6,8 @@ 0 0 - 800 - 600 + 972 + 605 @@ -28,7 +28,7 @@ - 0 + 6 @@ -894,7 +894,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati 0 0 - 524 + 653 427 @@ -1955,8 +1955,8 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati 0 0 - 513 - 369 + 663 + 374 @@ -2182,15 +2182,109 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati Draw figures - - - - - - 0 - 0 - + + + + + Properties + + + + + Geometry + + + + + + + + + Apply + + + + + + + + + + + + + red + + + + + + + Figure: + + + + + + + + + + Use Image Coodinates + + + + + + + Color: + + + + + + + + + + Text: + + + + + + + Point + + + + + + + + + + Information: + + + + + + false + + + + qrc:/doc/drawfigure.html + + + + + + + + + Elements @@ -2213,15 +2307,15 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati - 0 + 10 0 - - QAbstractItemView::DragDrop - - - Qt::MoveAction + + + 460 + 0 + QAbstractItemView::SingleSelection @@ -2240,110 +2334,6 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati - - - - - 0 - 0 - - - - Properties - - - - - - - - - Information: - - - - - - - - - - Figure: - - - - - - - red - - - - - - - Color: - - - - - - - Use Image Coodinates - - - - - - - - - - Text: - - - - - - - Geometry - - - - - - - - - Apply - - - - - - - - - - Point - - - - - - - false - - - - qrc:/doc/drawfigure.html - - - - - - - @@ -2445,7 +2435,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati 0 0 - 800 + 972 26