diff --git a/docsrc/manual/settings-and-options.rst b/docsrc/manual/settings-and-options.rst index df8cd0a9..09eb610f 100644 --- a/docsrc/manual/settings-and-options.rst +++ b/docsrc/manual/settings-and-options.rst @@ -30,7 +30,6 @@ determined by this file. ``show_player_view``, 0, global, yes, Display a rectangle for the GBA screen radius ``show_cursor_tile``, 0, global, yes, Display a rectangle around the hovered metatile(s) ``monitor_files``, 1, global, yes, Whether porymap will monitor changes to project files - ``region_map_dimensions``, 32x20, global, yes, The dimensions of the region map tilemap ``theme``, default, global, yes, The color theme for porymap windows and widgets ``text_editor_goto_line``, , global, yes, The command that will be executed when clicking the button next the ``Script`` combo-box. ``text_editor_open_directory``, , global, yes, The command that will be executed when clicking ``Open Project in Text Editor``. diff --git a/include/config.h b/include/config.h index af19bbf8..a75f57cb 100644 --- a/include/config.h +++ b/include/config.h @@ -54,7 +54,6 @@ public: this->showBorder = true; this->showGrid = false; this->monitorFiles = true; - this->regionMapDimensions = QSize(32, 20); this->theme = "default"; this->textEditorOpenFolder = ""; this->textEditorGotoLine = ""; @@ -74,7 +73,6 @@ public: void setShowBorder(bool enabled); void setShowGrid(bool enabled); void setMonitorFiles(bool monitor); - void setRegionMapDimensions(int width, int height); void setTheme(QString theme); void setTextEditorOpenFolder(const QString &command); void setTextEditorGotoLine(const QString &command); @@ -93,7 +91,6 @@ public: bool getShowBorder(); bool getShowGrid(); bool getMonitorFiles(); - QSize getRegionMapDimensions(); QString getTheme(); QString getTextEditorOpenFolder(); QString getTextEditorGotoLine(); @@ -128,7 +125,6 @@ private: bool showBorder; bool showGrid; bool monitorFiles; - QSize regionMapDimensions; QString theme; QString textEditorOpenFolder; QString textEditorGotoLine; diff --git a/src/config.cpp b/src/config.cpp index 3cd4b9a7..5890d5e7 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -174,17 +174,6 @@ void PorymapConfig::parseConfigKeyValue(QString key, QString value) { this->showGrid = getConfigBool(key, value); } else if (key == "monitor_files") { this->monitorFiles = getConfigBool(key, value); - } else if (key == "region_map_dimensions") { - bool ok1, ok2; - QStringList dims = value.split("x"); - int w = dims[0].toInt(&ok1); - int h = dims[1].toInt(&ok2); - if (!ok1 || !ok2) { - logWarn("Cannot parse region map dimensions. Using default values instead."); - this->regionMapDimensions = QSize(32, 20); - } else { - this->regionMapDimensions = QSize(w, h); - } } else if (key == "theme") { this->theme = value; } else if (key == "text_editor_open_directory") { @@ -219,8 +208,6 @@ QMap PorymapConfig::getKeyValueMap() { map.insert("show_border", this->showBorder ? "1" : "0"); map.insert("show_grid", this->showGrid ? "1" : "0"); map.insert("monitor_files", this->monitorFiles ? "1" : "0"); - map.insert("region_map_dimensions", QString("%1x%2").arg(this->regionMapDimensions.width()) - .arg(this->regionMapDimensions.height())); map.insert("theme", this->theme); map.insert("text_editor_open_directory", this->textEditorOpenFolder); map.insert("text_editor_goto_line", this->textEditorGotoLine); @@ -326,10 +313,6 @@ void PorymapConfig::setShowGrid(bool enabled) { this->save(); } -void PorymapConfig::setRegionMapDimensions(int width, int height) { - this->regionMapDimensions = QSize(width, height); -} - void PorymapConfig::setTheme(QString theme) { this->theme = theme; } @@ -426,10 +409,6 @@ bool PorymapConfig::getMonitorFiles() { return this->monitorFiles; } -QSize PorymapConfig::getRegionMapDimensions() { - return this->regionMapDimensions; -} - QString PorymapConfig::getTheme() { return this->theme; }