mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 17:40:05 +00:00 
			
		
		
		
	Added custom theme file selection dialog
This commit is contained in:
		
							parent
							
								
									8e114c555f
								
							
						
					
					
						commit
						ccf5f6a3d8
					
				
					 7 changed files with 311 additions and 222 deletions
				
			
		|  | @ -166,14 +166,20 @@ static void ConfigureTheme(const std::vector<std::string>& args) | ||||||
| 
 | 
 | ||||||
|    QGuiApplication::styleHints()->setColorScheme(qtColorScheme); |    QGuiApplication::styleHints()->setColorScheme(qtColorScheme); | ||||||
| 
 | 
 | ||||||
|    std::optional<std::string> paletteFile = |    std::optional<std::string> paletteFile; | ||||||
|       scwx::qt::types::GetQtPaletteFile(uiStyle); |    if (uiStyle == scwx::qt::types::UiStyle::FusionCustom) { | ||||||
|  |       paletteFile = generalSettings.theme_file().GetValue(); | ||||||
|  |    } | ||||||
|  |    else | ||||||
|  |    { | ||||||
|  |       paletteFile = scwx::qt::types::GetQtPaletteFile(uiStyle); | ||||||
|  |    } | ||||||
|  | 
 | ||||||
|    if (paletteFile) |    if (paletteFile) | ||||||
|    { |    { | ||||||
|       QPalette defaultPalette = QApplication::style()->standardPalette(); |       QPalette defaultPalette = QApplication::style()->standardPalette(); | ||||||
|       QPalette palette = |       QPalette palette        = Qt6CT::loadColorScheme( | ||||||
|          Qt6CT::loadColorScheme(QString::fromStdString(*paletteFile), |          QString::fromStdString(*paletteFile), defaultPalette); | ||||||
|                                 defaultPalette); |  | ||||||
| 
 | 
 | ||||||
|       if (defaultPalette == palette) |       if (defaultPalette == palette) | ||||||
|       { |       { | ||||||
|  |  | ||||||
|  | @ -73,6 +73,7 @@ public: | ||||||
|       showMapCenter_.SetDefault(false); |       showMapCenter_.SetDefault(false); | ||||||
|       showMapLogo_.SetDefault(true); |       showMapLogo_.SetDefault(true); | ||||||
|       theme_.SetDefault(defaultThemeValue); |       theme_.SetDefault(defaultThemeValue); | ||||||
|  |       themeFile_.SetDefault(""); | ||||||
|       trackLocation_.SetDefault(false); |       trackLocation_.SetDefault(false); | ||||||
|       updateNotificationsEnabled_.SetDefault(true); |       updateNotificationsEnabled_.SetDefault(true); | ||||||
|       warningsProvider_.SetDefault(defaultWarningsProviderValue); |       warningsProvider_.SetDefault(defaultWarningsProviderValue); | ||||||
|  | @ -161,6 +162,7 @@ public: | ||||||
|    SettingsVariable<bool>         showMapCenter_ {"show_map_center"}; |    SettingsVariable<bool>         showMapCenter_ {"show_map_center"}; | ||||||
|    SettingsVariable<bool>         showMapLogo_ {"show_map_logo"}; |    SettingsVariable<bool>         showMapLogo_ {"show_map_logo"}; | ||||||
|    SettingsVariable<std::string>  theme_ {"theme"}; |    SettingsVariable<std::string>  theme_ {"theme"}; | ||||||
|  |    SettingsVariable<std::string>  themeFile_ {"theme_file"}; | ||||||
|    SettingsVariable<bool>         trackLocation_ {"track_location"}; |    SettingsVariable<bool>         trackLocation_ {"track_location"}; | ||||||
|    SettingsVariable<bool> updateNotificationsEnabled_ {"update_notifications"}; |    SettingsVariable<bool> updateNotificationsEnabled_ {"update_notifications"}; | ||||||
|    SettingsVariable<std::string> warningsProvider_ {"warnings_provider"}; |    SettingsVariable<std::string> warningsProvider_ {"warnings_provider"}; | ||||||
|  | @ -193,6 +195,7 @@ GeneralSettings::GeneralSettings() : | ||||||
|                       &p->showMapCenter_, |                       &p->showMapCenter_, | ||||||
|                       &p->showMapLogo_, |                       &p->showMapLogo_, | ||||||
|                       &p->theme_, |                       &p->theme_, | ||||||
|  |                       &p->themeFile_, | ||||||
|                       &p->trackLocation_, |                       &p->trackLocation_, | ||||||
|                       &p->updateNotificationsEnabled_, |                       &p->updateNotificationsEnabled_, | ||||||
|                       &p->warningsProvider_}); |                       &p->warningsProvider_}); | ||||||
|  | @ -325,6 +328,11 @@ SettingsVariable<std::string>& GeneralSettings::theme() const | ||||||
|    return p->theme_; |    return p->theme_; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | SettingsVariable<std::string>& GeneralSettings::theme_file() const | ||||||
|  | { | ||||||
|  |    return p->themeFile_; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| SettingsVariable<bool>& GeneralSettings::track_location() const | SettingsVariable<bool>& GeneralSettings::track_location() const | ||||||
| { | { | ||||||
|    return p->trackLocation_; |    return p->trackLocation_; | ||||||
|  | @ -385,6 +393,7 @@ bool operator==(const GeneralSettings& lhs, const GeneralSettings& rhs) | ||||||
|            lhs.p->showMapCenter_ == rhs.p->showMapCenter_ && |            lhs.p->showMapCenter_ == rhs.p->showMapCenter_ && | ||||||
|            lhs.p->showMapLogo_ == rhs.p->showMapLogo_ && |            lhs.p->showMapLogo_ == rhs.p->showMapLogo_ && | ||||||
|            lhs.p->theme_ == rhs.p->theme_ && |            lhs.p->theme_ == rhs.p->theme_ && | ||||||
|  |            lhs.p->themeFile_ == rhs.p->themeFile_ && | ||||||
|            lhs.p->trackLocation_ == rhs.p->trackLocation_ && |            lhs.p->trackLocation_ == rhs.p->trackLocation_ && | ||||||
|            lhs.p->updateNotificationsEnabled_ == |            lhs.p->updateNotificationsEnabled_ == | ||||||
|               rhs.p->updateNotificationsEnabled_ && |               rhs.p->updateNotificationsEnabled_ && | ||||||
|  |  | ||||||
|  | @ -49,6 +49,7 @@ public: | ||||||
|    SettingsVariable<bool>&                       show_map_center() const; |    SettingsVariable<bool>&                       show_map_center() const; | ||||||
|    SettingsVariable<bool>&                       show_map_logo() const; |    SettingsVariable<bool>&                       show_map_logo() const; | ||||||
|    SettingsVariable<std::string>&                theme() const; |    SettingsVariable<std::string>&                theme() const; | ||||||
|  |    SettingsVariable<std::string>&                theme_file() const; | ||||||
|    SettingsVariable<bool>&                       track_location() const; |    SettingsVariable<bool>&                       track_location() const; | ||||||
|    SettingsVariable<bool>&        update_notifications_enabled() const; |    SettingsVariable<bool>&        update_notifications_enabled() const; | ||||||
|    SettingsVariable<std::string>& warnings_provider() const; |    SettingsVariable<std::string>& warnings_provider() const; | ||||||
|  |  | ||||||
|  | @ -21,6 +21,7 @@ static const std::unordered_map<UiStyle, std::string> qtStyleName_ { | ||||||
|    {UiStyle::FusionIaOra, "Fusion"}, |    {UiStyle::FusionIaOra, "Fusion"}, | ||||||
|    {UiStyle::FusionSand, "Fusion"}, |    {UiStyle::FusionSand, "Fusion"}, | ||||||
|    {UiStyle::FusionWaves, "Fusion"}, |    {UiStyle::FusionWaves, "Fusion"}, | ||||||
|  |    {UiStyle::FusionCustom, "Fusion"}, | ||||||
|    {UiStyle::Unknown, "?"}}; |    {UiStyle::Unknown, "?"}}; | ||||||
| 
 | 
 | ||||||
| static const std::unordered_map<UiStyle, std::string> uiStyleName_ { | static const std::unordered_map<UiStyle, std::string> uiStyleName_ { | ||||||
|  | @ -34,6 +35,7 @@ static const std::unordered_map<UiStyle, std::string> uiStyleName_ { | ||||||
|    {UiStyle::FusionIaOra, "Fusion IA Ora"}, |    {UiStyle::FusionIaOra, "Fusion IA Ora"}, | ||||||
|    {UiStyle::FusionSand, "Fusion Sand"}, |    {UiStyle::FusionSand, "Fusion Sand"}, | ||||||
|    {UiStyle::FusionWaves, "Fusion Waves"}, |    {UiStyle::FusionWaves, "Fusion Waves"}, | ||||||
|  |    {UiStyle::FusionCustom, "Fusion Custom"}, | ||||||
|    {UiStyle::Unknown, "?"}}; |    {UiStyle::Unknown, "?"}}; | ||||||
| 
 | 
 | ||||||
| static const std::unordered_map<UiStyle, Qt::ColorScheme> qtColorSchemeMap_ { | static const std::unordered_map<UiStyle, Qt::ColorScheme> qtColorSchemeMap_ { | ||||||
|  | @ -47,6 +49,7 @@ static const std::unordered_map<UiStyle, Qt::ColorScheme> qtColorSchemeMap_ { | ||||||
|    {UiStyle::FusionIaOra, Qt::ColorScheme::Unknown}, |    {UiStyle::FusionIaOra, Qt::ColorScheme::Unknown}, | ||||||
|    {UiStyle::FusionSand, Qt::ColorScheme::Unknown}, |    {UiStyle::FusionSand, Qt::ColorScheme::Unknown}, | ||||||
|    {UiStyle::FusionWaves, Qt::ColorScheme::Unknown}, |    {UiStyle::FusionWaves, Qt::ColorScheme::Unknown}, | ||||||
|  |    {UiStyle::FusionCustom, Qt::ColorScheme::Unknown}, | ||||||
|    {UiStyle::Unknown, Qt::ColorScheme::Unknown}}; |    {UiStyle::Unknown, Qt::ColorScheme::Unknown}}; | ||||||
| 
 | 
 | ||||||
| static const std::unordered_map<UiStyle, std::string> paletteFile_ { | static const std::unordered_map<UiStyle, std::string> paletteFile_ { | ||||||
|  |  | ||||||
|  | @ -33,9 +33,10 @@ enum class UiStyle | ||||||
|    FusionIaOra, |    FusionIaOra, | ||||||
|    FusionSand, |    FusionSand, | ||||||
|    FusionWaves, |    FusionWaves, | ||||||
|  |    FusionCustom, | ||||||
|    Unknown |    Unknown | ||||||
| }; | }; | ||||||
| typedef scwx::util::Iterator<UiStyle, UiStyle::Default, UiStyle::FusionWaves> | typedef scwx::util::Iterator<UiStyle, UiStyle::Default, UiStyle::FusionCustom> | ||||||
|    UiStyleIterator; |    UiStyleIterator; | ||||||
| 
 | 
 | ||||||
| Qt::ColorScheme            GetQtColorScheme(UiStyle uiStyle); | Qt::ColorScheme            GetQtColorScheme(UiStyle uiStyle); | ||||||
|  |  | ||||||
|  | @ -121,6 +121,7 @@ public: | ||||||
|           &mapboxApiKey_, |           &mapboxApiKey_, | ||||||
|           &mapTilerApiKey_, |           &mapTilerApiKey_, | ||||||
|           &theme_, |           &theme_, | ||||||
|  |           &themeFile_, | ||||||
|           &defaultAlertAction_, |           &defaultAlertAction_, | ||||||
|           &clockFormat_, |           &clockFormat_, | ||||||
|           &customStyleDrawLayer_, |           &customStyleDrawLayer_, | ||||||
|  | @ -242,6 +243,7 @@ public: | ||||||
|    settings::SettingsInterface<std::int64_t> nmeaBaudRate_ {}; |    settings::SettingsInterface<std::int64_t> nmeaBaudRate_ {}; | ||||||
|    settings::SettingsInterface<std::string>  nmeaSource_ {}; |    settings::SettingsInterface<std::string>  nmeaSource_ {}; | ||||||
|    settings::SettingsInterface<std::string>  theme_ {}; |    settings::SettingsInterface<std::string>  theme_ {}; | ||||||
|  |    settings::SettingsInterface<std::string>  themeFile_ {}; | ||||||
|    settings::SettingsInterface<std::string>  warningsProvider_ {}; |    settings::SettingsInterface<std::string>  warningsProvider_ {}; | ||||||
|    settings::SettingsInterface<bool>         antiAliasingEnabled_ {}; |    settings::SettingsInterface<bool>         antiAliasingEnabled_ {}; | ||||||
|    settings::SettingsInterface<bool>         showMapAttribution_ {}; |    settings::SettingsInterface<bool>         showMapAttribution_ {}; | ||||||
|  | @ -526,6 +528,45 @@ void SettingsDialogImpl::SetupGeneralTab() | ||||||
|                            types::GetUiStyleName); |                            types::GetUiStyleName); | ||||||
|    theme_.SetResetButton(self_->ui->resetThemeButton); |    theme_.SetResetButton(self_->ui->resetThemeButton); | ||||||
| 
 | 
 | ||||||
|  |    themeFile_.SetSettingsVariable(generalSettings.theme_file()); | ||||||
|  |    themeFile_.SetEditWidget(self_->ui->themeFileLineEdit); | ||||||
|  |    themeFile_.SetResetButton(self_->ui->resetThemeFileButton); | ||||||
|  |    //themeFile_.EnableTrimming();
 | ||||||
|  | 
 | ||||||
|  |    QObject::connect( | ||||||
|  |       self_->ui->themeFileSelectButton, | ||||||
|  |       &QAbstractButton::clicked, | ||||||
|  |       self_, | ||||||
|  |       [this]() | ||||||
|  |       { | ||||||
|  |          static const std::string themeFilter = "Qt6Ct Theme File (*.conf)"; | ||||||
|  |          static const std::string allFilter   = "All Files (*)"; | ||||||
|  | 
 | ||||||
|  |          QFileDialog* dialog = new QFileDialog(self_); | ||||||
|  | 
 | ||||||
|  |          dialog->setFileMode(QFileDialog::ExistingFile); | ||||||
|  | 
 | ||||||
|  |          dialog->setNameFilters( | ||||||
|  |             {QObject::tr(themeFilter.c_str()), QObject::tr(allFilter.c_str())}); | ||||||
|  |          dialog->setAttribute(Qt::WA_DeleteOnClose); | ||||||
|  | 
 | ||||||
|  |          QObject::connect( | ||||||
|  |             dialog, | ||||||
|  |             &QFileDialog::fileSelected, | ||||||
|  |             self_, | ||||||
|  |             [this](const QString& file) | ||||||
|  |             { | ||||||
|  |                QString path = QDir::toNativeSeparators(file); | ||||||
|  |                logger_->info("Selected theme file: {}", path.toStdString()); | ||||||
|  |                self_->ui->themeFileLineEdit->setText(path); | ||||||
|  | 
 | ||||||
|  |                // setText dows not emit the textEdited signal
 | ||||||
|  |                Q_EMIT self_->ui->themeFileLineEdit->textEdited(path); | ||||||
|  |             }); | ||||||
|  | 
 | ||||||
|  |          dialog->open(); | ||||||
|  |       }); | ||||||
|  | 
 | ||||||
|    auto radarSites = config::RadarSite::GetAll(); |    auto radarSites = config::RadarSite::GetAll(); | ||||||
| 
 | 
 | ||||||
|    // Sort radar sites by ID
 |    // Sort radar sites by ID
 | ||||||
|  |  | ||||||
|  | @ -135,9 +135,9 @@ | ||||||
|               <property name="geometry"> |               <property name="geometry"> | ||||||
|                <rect> |                <rect> | ||||||
|                 <x>0</x> |                 <x>0</x> | ||||||
|                 <y>0</y> |                 <y>-133</y> | ||||||
|                 <width>513</width> |                 <width>511</width> | ||||||
|                 <height>622</height> |                 <height>676</height> | ||||||
|                </rect> |                </rect> | ||||||
|               </property> |               </property> | ||||||
|               <layout class="QVBoxLayout" name="verticalLayout"> |               <layout class="QVBoxLayout" name="verticalLayout"> | ||||||
|  | @ -159,15 +159,39 @@ | ||||||
|                   <property name="bottomMargin"> |                   <property name="bottomMargin"> | ||||||
|                    <number>0</number> |                    <number>0</number> | ||||||
|                   </property> |                   </property> | ||||||
|                   <item row="13" column="0"> |                   <item row="3" column="3"> | ||||||
|                    <widget class="QLabel" name="label_6"> |                    <widget class="QToolButton" name="radarSiteSelectButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>MapTiler API Key</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="6" column="4"> |                   <item row="12" column="0"> | ||||||
|                    <widget class="QToolButton" name="resetGridHeightButton"> |                    <widget class="QLabel" name="label_4"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Mapbox API Key</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="15" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_27"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Custom Map Layer</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="3" column="2"> | ||||||
|  |                    <widget class="QComboBox" name="radarSiteComboBox"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="8" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_23"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>GPS Plugin</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="9" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetNmeaSourceButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>...</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|  | @ -180,15 +204,18 @@ | ||||||
|                   <item row="11" column="2"> |                   <item row="11" column="2"> | ||||||
|                    <widget class="QComboBox" name="mapProviderComboBox"/> |                    <widget class="QComboBox" name="mapProviderComboBox"/> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="4" column="0"> |                   <item row="14" column="2"> | ||||||
|                    <widget class="QLabel" name="label_21"> |                    <widget class="QLineEdit" name="customMapUrlLineEdit"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="9" column="3"> | ||||||
|  |                    <widget class="QToolButton" name="gpsSourceSelectButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>Default Time Zone</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="12" column="4"> |                   <item row="15" column="4"> | ||||||
|                    <widget class="QToolButton" name="resetMapboxApiKeyButton"> |                    <widget class="QToolButton" name="resetCustomMapLayerButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>...</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|  | @ -198,30 +225,34 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="6" column="2"> |  | ||||||
|                    <widget class="QSpinBox" name="gridHeightSpinBox"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="4" column="4"> |  | ||||||
|                    <widget class="QToolButton" name="resetDefaultTimeZoneButton"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>...</string> |  | ||||||
|                     </property> |  | ||||||
|                     <property name="icon"> |  | ||||||
|                      <iconset resource="../../../../scwx-qt.qrc"> |  | ||||||
|                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="11" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_7"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Map Provider</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="4" column="2"> |                   <item row="4" column="2"> | ||||||
|                    <widget class="QComboBox" name="defaultTimeZoneComboBox"/> |                    <widget class="QComboBox" name="defaultTimeZoneComboBox"/> | ||||||
|                   </item> |                   </item> | ||||||
|  |                   <item row="6" column="2"> | ||||||
|  |                    <widget class="QSpinBox" name="gridHeightSpinBox"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="11" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetMapProviderButton"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>...</string> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="icon"> | ||||||
|  |                      <iconset resource="../../../../scwx-qt.qrc"> | ||||||
|  |                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="14" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetCustomMapUrlButton"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>...</string> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="icon"> | ||||||
|  |                      <iconset resource="../../../../scwx-qt.qrc"> | ||||||
|  |                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|                   <item row="18" column="4"> |                   <item row="18" column="4"> | ||||||
|                    <widget class="QToolButton" name="resetThemeButton"> |                    <widget class="QToolButton" name="resetThemeButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|  | @ -233,77 +264,9 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="1" column="2"> |  | ||||||
|                    <widget class="QComboBox" name="clockFormatComboBox"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="3" column="2"> |  | ||||||
|                    <widget class="QComboBox" name="radarSiteComboBox"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="9" column="3"> |  | ||||||
|                    <widget class="QToolButton" name="gpsSourceSelectButton"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>...</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="12" column="2"> |  | ||||||
|                    <widget class="QLineEdit" name="mapboxApiKeyLineEdit"> |  | ||||||
|                     <property name="echoMode"> |  | ||||||
|                      <enum>QLineEdit::EchoMode::Password</enum> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="8" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_23"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>GPS Plugin</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="10" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_24"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>GPS Baud Rate</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="5" column="2"> |  | ||||||
|                    <widget class="QSpinBox" name="gridWidthSpinBox"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="3" column="3"> |  | ||||||
|                    <widget class="QToolButton" name="radarSiteSelectButton"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>...</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="21" column="4"> |  | ||||||
|                    <widget class="QToolButton" name="resetWarningsProviderButton"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>...</string> |  | ||||||
|                     </property> |  | ||||||
|                     <property name="icon"> |  | ||||||
|                      <iconset resource="../../../../scwx-qt.qrc"> |  | ||||||
|                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="5" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_2"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Grid Width</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="9" column="2"> |  | ||||||
|                    <widget class="QLineEdit" name="nmeaSourceLineEdit"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="18" column="2"> |                   <item row="18" column="2"> | ||||||
|                    <widget class="QComboBox" name="themeComboBox"/> |                    <widget class="QComboBox" name="themeComboBox"/> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="8" column="2"> |  | ||||||
|                    <widget class="QComboBox" name="positioningPluginComboBox"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="9" column="0"> |                   <item row="9" column="0"> | ||||||
|                    <widget class="QLabel" name="label_25"> |                    <widget class="QLabel" name="label_25"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|  | @ -311,9 +274,16 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="21" column="2"> |                   <item row="22" column="2"> | ||||||
|                    <widget class="QLineEdit" name="warningsProviderLineEdit"/> |                    <widget class="QLineEdit" name="warningsProviderLineEdit"/> | ||||||
|                   </item> |                   </item> | ||||||
|  |                   <item row="22" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_22"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Warnings Provider</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|                   <item row="3" column="0"> |                   <item row="3" column="0"> | ||||||
|                    <widget class="QLabel" name="label"> |                    <widget class="QLabel" name="label"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|  | @ -339,8 +309,8 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="2" column="4"> |                   <item row="13" column="4"> | ||||||
|                    <widget class="QToolButton" name="resetDefaultAlertActionButton"> |                    <widget class="QToolButton" name="resetMapTilerApiKeyButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>...</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|  | @ -350,45 +320,66 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="18" column="0"> |                   <item row="10" column="2"> | ||||||
|                    <widget class="QLabel" name="label_5"> |                    <widget class="QSpinBox" name="nmeaBaudRateSpinBox"> | ||||||
|                     <property name="text"> |                     <property name="minimum"> | ||||||
|                      <string>Theme</string> |                      <number>1</number> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="maximum"> | ||||||
|  |                      <number>999999999</number> | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="1" column="4"> |                   <item row="12" column="2"> | ||||||
|                    <widget class="QToolButton" name="resetClockFormatButton"> |                    <widget class="QLineEdit" name="mapboxApiKeyLineEdit"> | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>...</string> |  | ||||||
|                     </property> |  | ||||||
|                     <property name="icon"> |  | ||||||
|                      <iconset resource="../../../../scwx-qt.qrc"> |  | ||||||
|                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="12" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_4"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Mapbox API Key</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="1" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_20"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Clock Format</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="13" column="2"> |  | ||||||
|                    <widget class="QLineEdit" name="mapTilerApiKeyLineEdit"> |  | ||||||
|                     <property name="echoMode"> |                     <property name="echoMode"> | ||||||
|                      <enum>QLineEdit::EchoMode::Password</enum> |                      <enum>QLineEdit::EchoMode::Password</enum> | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|  |                   <item row="22" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetWarningsProviderButton"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>...</string> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="icon"> | ||||||
|  |                      <iconset resource="../../../../scwx-qt.qrc"> | ||||||
|  |                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="9" column="2"> | ||||||
|  |                    <widget class="QLineEdit" name="nmeaSourceLineEdit"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="10" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_24"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>GPS Baud Rate</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="6" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetGridHeightButton"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>...</string> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="icon"> | ||||||
|  |                      <iconset resource="../../../../scwx-qt.qrc"> | ||||||
|  |                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="12" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetMapboxApiKeyButton"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>...</string> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="icon"> | ||||||
|  |                      <iconset resource="../../../../scwx-qt.qrc"> | ||||||
|  |                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|                   <item row="5" column="4"> |                   <item row="5" column="4"> | ||||||
|                    <widget class="QToolButton" name="resetGridWidthButton"> |                    <widget class="QToolButton" name="resetGridWidthButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|  | @ -400,8 +391,8 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="13" column="4"> |                   <item row="4" column="4"> | ||||||
|                    <widget class="QToolButton" name="resetMapTilerApiKeyButton"> |                    <widget class="QToolButton" name="resetDefaultTimeZoneButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>...</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|  | @ -411,35 +402,56 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|  |                   <item row="11" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_7"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Map Provider</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="5" column="2"> | ||||||
|  |                    <widget class="QSpinBox" name="gridWidthSpinBox"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="18" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_5"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Theme</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="13" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_6"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>MapTiler API Key</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="1" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetClockFormatButton"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>...</string> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="icon"> | ||||||
|  |                      <iconset resource="../../../../scwx-qt.qrc"> | ||||||
|  |                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="15" column="2"> | ||||||
|  |                    <widget class="QLineEdit" name="customMapLayerLineEdit"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="14" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_26"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Custom Map URL</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|                   <item row="2" column="2"> |                   <item row="2" column="2"> | ||||||
|                    <widget class="QComboBox" name="defaultAlertActionComboBox"/> |                    <widget class="QComboBox" name="defaultAlertActionComboBox"/> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="21" column="0"> |                   <item row="10" column="4"> | ||||||
|                    <widget class="QLabel" name="label_22"> |                    <widget class="QToolButton" name="resetNmeaBaudRateButton"> | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Warnings Provider</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="10" column="2"> |  | ||||||
|                    <widget class="QSpinBox" name="nmeaBaudRateSpinBox"> |  | ||||||
|                     <property name="minimum"> |  | ||||||
|                      <number>1</number> |  | ||||||
|                     </property> |  | ||||||
|                     <property name="maximum"> |  | ||||||
|                      <number>999999999</number> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="2" column="0"> |  | ||||||
|                    <widget class="QLabel" name="defaultAlertActionLabel"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Default Alert Action</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="11" column="4"> |  | ||||||
|                    <widget class="QToolButton" name="resetMapProviderButton"> |  | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>...</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|  | @ -449,6 +461,38 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|  |                   <item row="1" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_20"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Clock Format</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="2" column="4"> | ||||||
|  |                    <widget class="QToolButton" name="resetDefaultAlertActionButton"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>...</string> | ||||||
|  |                     </property> | ||||||
|  |                     <property name="icon"> | ||||||
|  |                      <iconset resource="../../../../scwx-qt.qrc"> | ||||||
|  |                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="5" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_2"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Grid Width</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="13" column="2"> | ||||||
|  |                    <widget class="QLineEdit" name="mapTilerApiKeyLineEdit"> | ||||||
|  |                     <property name="echoMode"> | ||||||
|  |                      <enum>QLineEdit::EchoMode::Password</enum> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|                   <item row="8" column="4"> |                   <item row="8" column="4"> | ||||||
|                    <widget class="QToolButton" name="resetPositioningPluginButton"> |                    <widget class="QToolButton" name="resetPositioningPluginButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|  | @ -460,61 +504,45 @@ | ||||||
|                     </property> |                     </property> | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="9" column="4"> |                   <item row="4" column="0"> | ||||||
|                    <widget class="QToolButton" name="resetNmeaSourceButton"> |                    <widget class="QLabel" name="label_21"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Default Time Zone</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="2" column="0"> | ||||||
|  |                    <widget class="QLabel" name="defaultAlertActionLabel"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Default Alert Action</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="8" column="2"> | ||||||
|  |                    <widget class="QComboBox" name="positioningPluginComboBox"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="1" column="2"> | ||||||
|  |                    <widget class="QComboBox" name="clockFormatComboBox"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="19" column="0"> | ||||||
|  |                    <widget class="QLabel" name="label_30"> | ||||||
|  |                     <property name="text"> | ||||||
|  |                      <string>Theme File</string> | ||||||
|  |                     </property> | ||||||
|  |                    </widget> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="19" column="2"> | ||||||
|  |                    <widget class="QLineEdit" name="themeFileLineEdit"/> | ||||||
|  |                   </item> | ||||||
|  |                   <item row="19" column="3"> | ||||||
|  |                    <widget class="QToolButton" name="themeFileSelectButton"> | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>...</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|                     <property name="icon"> |  | ||||||
|                      <iconset resource="../../../../scwx-qt.qrc"> |  | ||||||
|                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |                    </widget> | ||||||
|                   </item> |                   </item> | ||||||
|                   <item row="10" column="4"> |                   <item row="19" column="4"> | ||||||
|                    <widget class="QToolButton" name="resetNmeaBaudRateButton"> |                    <widget class="QToolButton" name="resetThemeFileButton"> | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>...</string> |  | ||||||
|                     </property> |  | ||||||
|                     <property name="icon"> |  | ||||||
|                      <iconset resource="../../../../scwx-qt.qrc"> |  | ||||||
|                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="14" column="2"> |  | ||||||
|                    <widget class="QLineEdit" name="customMapUrlLineEdit"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="15" column="2"> |  | ||||||
|                    <widget class="QLineEdit" name="customMapLayerLineEdit"/> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="14" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_26"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Custom Map URL</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="15" column="0"> |  | ||||||
|                    <widget class="QLabel" name="label_27"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>Custom Map Layer</string> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="14" column="4"> |  | ||||||
|                    <widget class="QToolButton" name="resetCustomMapUrlButton"> |  | ||||||
|                     <property name="text"> |  | ||||||
|                      <string>...</string> |  | ||||||
|                     </property> |  | ||||||
|                     <property name="icon"> |  | ||||||
|                      <iconset resource="../../../../scwx-qt.qrc"> |  | ||||||
|                       <normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</normaloff>:/res/icons/font-awesome-6/rotate-left-solid.svg</iconset> |  | ||||||
|                     </property> |  | ||||||
|                    </widget> |  | ||||||
|                   </item> |  | ||||||
|                   <item row="15" column="4"> |  | ||||||
|                    <widget class="QToolButton" name="resetCustomMapLayerButton"> |  | ||||||
|                     <property name="text"> |                     <property name="text"> | ||||||
|                      <string>...</string> |                      <string>...</string> | ||||||
|                     </property> |                     </property> | ||||||
|  | @ -610,8 +638,8 @@ | ||||||
|                    <rect> |                    <rect> | ||||||
|                     <x>0</x> |                     <x>0</x> | ||||||
|                     <y>0</y> |                     <y>0</y> | ||||||
|                     <width>506</width> |                     <width>98</width> | ||||||
|                     <height>383</height> |                     <height>28</height> | ||||||
|                    </rect> |                    </rect> | ||||||
|                   </property> |                   </property> | ||||||
|                   <layout class="QGridLayout" name="gridLayout_3"> |                   <layout class="QGridLayout" name="gridLayout_3"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak