maps_settings

This commit is contained in:
huifan0114 2024-10-18 16:47:06 +08:00
parent 236074e3d5
commit 44a708f25a
3 changed files with 0 additions and 20 deletions

View File

@ -76,11 +76,6 @@ FrogPilotMapsPanel::FrogPilotMapsPanel(FrogPilotSettingsWindow *parent) : FrogPi
addItem(territoriesLabel = new LabelControl(tr("United States - Territories"), ""));
addItem(territoriesMaps = new MapSelectionControl(territoriesMap));
///////////////////////////////////
addItem(taiwanLabel = new LabelControl(tr("Taiwan"), ""));
addItem(taiwanMaps = new MapSelectionControl(taiwanMap, true));
///////////////////////////////////
addItem(africaLabel = new LabelControl(tr("Africa"), ""));
addItem(africaMaps = new MapSelectionControl(africaMap, true));
@ -319,9 +314,6 @@ void FrogPilotMapsPanel::displayMapButtons(bool visible) {
removeMapsButton->setVisible(!visible && QDir(mapsFolderPath).exists());
selectMapsButton->setVisible(!visible);
///////////////////////////////////
taiwanMaps->setVisible(visible && countriesOpen);
///////////////////////////////////
africaMaps->setVisible(visible && countriesOpen);
antarcticaMaps->setVisible(visible && countriesOpen);
asiaMaps->setVisible(visible && countriesOpen);

View File

@ -33,9 +33,6 @@ private:
FrogPilotButtonsControl *selectMapsButton;
///////////////////////////
LabelControl *taiwanLabel;
///////////////////////////
LabelControl *africaLabel;
LabelControl *antarcticaLabel;
LabelControl *asiaLabel;
@ -54,9 +51,6 @@ private:
LabelControl *territoriesLabel;
LabelControl *westLabel;
///////////////////////////
MapSelectionControl *taiwanMaps;
///////////////////////////
MapSelectionControl *africaMaps;
MapSelectionControl *antarcticaMaps;
MapSelectionControl *asiaMaps;

View File

@ -7,12 +7,6 @@
#include "selfdrive/frogpilot/ui/qt/widgets/frogpilot_controls.h"
///////////////////////////
inline QMap<QString, QString> taiwanMap = {
{"TW", "Taiwan"}
};
///////////////////////////
inline QMap<QString, QString> northeastMap = {
{"CT", "Connecticut"}, {"ME", "Maine"}, {"MA", "Massachusetts"},
{"NH", "New Hampshire"}, {"NJ", "New Jersey"}, {"NY", "New York"},