mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 00:00:05 +00:00
Add custom style URL and draw layer to settings UI
This commit is contained in:
parent
ec0e502516
commit
a683778624
2 changed files with 60 additions and 5 deletions
|
|
@ -117,6 +117,8 @@ public:
|
||||||
&theme_,
|
&theme_,
|
||||||
&defaultAlertAction_,
|
&defaultAlertAction_,
|
||||||
&clockFormat_,
|
&clockFormat_,
|
||||||
|
&customStyleDrawLayer_,
|
||||||
|
&customStyleUrl_,
|
||||||
&defaultTimeZone_,
|
&defaultTimeZone_,
|
||||||
&positioningPlugin_,
|
&positioningPlugin_,
|
||||||
&nmeaBaudRate_,
|
&nmeaBaudRate_,
|
||||||
|
|
@ -222,6 +224,8 @@ public:
|
||||||
settings::SettingsInterface<std::string> mapTilerApiKey_ {};
|
settings::SettingsInterface<std::string> mapTilerApiKey_ {};
|
||||||
settings::SettingsInterface<std::string> defaultAlertAction_ {};
|
settings::SettingsInterface<std::string> defaultAlertAction_ {};
|
||||||
settings::SettingsInterface<std::string> clockFormat_ {};
|
settings::SettingsInterface<std::string> clockFormat_ {};
|
||||||
|
settings::SettingsInterface<std::string> customStyleDrawLayer_ {};
|
||||||
|
settings::SettingsInterface<std::string> customStyleUrl_ {};
|
||||||
settings::SettingsInterface<std::string> defaultTimeZone_ {};
|
settings::SettingsInterface<std::string> defaultTimeZone_ {};
|
||||||
settings::SettingsInterface<std::string> positioningPlugin_ {};
|
settings::SettingsInterface<std::string> positioningPlugin_ {};
|
||||||
settings::SettingsInterface<std::int64_t> nmeaBaudRate_ {};
|
settings::SettingsInterface<std::int64_t> nmeaBaudRate_ {};
|
||||||
|
|
@ -566,6 +570,15 @@ void SettingsDialogImpl::SetupGeneralTab()
|
||||||
mapTilerApiKey_.SetEditWidget(self_->ui->mapTilerApiKeyLineEdit);
|
mapTilerApiKey_.SetEditWidget(self_->ui->mapTilerApiKeyLineEdit);
|
||||||
mapTilerApiKey_.SetResetButton(self_->ui->resetMapTilerApiKeyButton);
|
mapTilerApiKey_.SetResetButton(self_->ui->resetMapTilerApiKeyButton);
|
||||||
|
|
||||||
|
customStyleUrl_.SetSettingsVariable(generalSettings.custom_style_url());
|
||||||
|
customStyleUrl_.SetEditWidget(self_->ui->customMapUrlLineEdit);
|
||||||
|
customStyleUrl_.SetResetButton(self_->ui->resetCustomMapUrlButton);
|
||||||
|
|
||||||
|
customStyleDrawLayer_.SetSettingsVariable(
|
||||||
|
generalSettings.custom_style_draw_layer());
|
||||||
|
customStyleDrawLayer_.SetEditWidget(self_->ui->customMapLayerLineEdit);
|
||||||
|
customStyleDrawLayer_.SetResetButton(self_->ui->resetCustomMapLayerButton);
|
||||||
|
|
||||||
defaultAlertAction_.SetSettingsVariable(
|
defaultAlertAction_.SetSettingsVariable(
|
||||||
generalSettings.default_alert_action());
|
generalSettings.default_alert_action());
|
||||||
SCWX_SETTINGS_COMBO_BOX(defaultAlertAction_,
|
SCWX_SETTINGS_COMBO_BOX(defaultAlertAction_,
|
||||||
|
|
|
||||||
|
|
@ -135,9 +135,9 @@
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>-113</y>
|
||||||
<width>513</width>
|
<width>511</width>
|
||||||
<height>566</height>
|
<height>669</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
|
@ -482,6 +482,48 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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">
|
||||||
|
<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>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
@ -568,8 +610,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>63</width>
|
<width>98</width>
|
||||||
<height>18</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