mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 05:30:06 +00:00
parent
d8eaee2f7f
commit
7694b0bf59
6 changed files with 60 additions and 30 deletions
|
|
@ -139,7 +139,8 @@ public:
|
|||
&alertAudioCounty_,
|
||||
&hoverTextWrap_,
|
||||
&tooltipMethod_,
|
||||
&placefileTextDropShadowEnabled_}}
|
||||
&placefileTextDropShadowEnabled_,
|
||||
&radarSiteHoverTextEnabled_}}
|
||||
{
|
||||
// Configure default alert phenomena colors
|
||||
auto& paletteSettings = settings::PaletteSettings::Instance();
|
||||
|
|
@ -252,6 +253,7 @@ public:
|
|||
settings::SettingsInterface<std::int64_t> hoverTextWrap_ {};
|
||||
settings::SettingsInterface<std::string> tooltipMethod_ {};
|
||||
settings::SettingsInterface<bool> placefileTextDropShadowEnabled_ {};
|
||||
settings::SettingsInterface<bool> radarSiteHoverTextEnabled_ {};
|
||||
|
||||
std::vector<settings::SettingsInterfaceBase*> settings_;
|
||||
};
|
||||
|
|
@ -1118,6 +1120,11 @@ void SettingsDialogImpl::SetupTextTab()
|
|||
textSettings.placefile_text_drop_shadow_enabled());
|
||||
placefileTextDropShadowEnabled_.SetEditWidget(
|
||||
self_->ui->placefileTextDropShadowCheckBox);
|
||||
|
||||
radarSiteHoverTextEnabled_.SetSettingsVariable(
|
||||
textSettings.radar_site_hover_text_enabled());
|
||||
radarSiteHoverTextEnabled_.SetEditWidget(
|
||||
self_->ui->radarSiteHoverTextCheckBox);
|
||||
}
|
||||
|
||||
QImage SettingsDialogImpl::GenerateColorTableImage(
|
||||
|
|
|
|||
|
|
@ -373,8 +373,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>508</width>
|
||||
<height>383</height>
|
||||
<width>514</width>
|
||||
<height>382</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
|
|
@ -873,27 +873,6 @@
|
|||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="hoverTextWrapSpinBox">
|
||||
<property name="maximum">
|
||||
<number>999</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="tooltipMethodComboBox"/>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QToolButton" name="resetHoverTextWrapButton">
|
||||
<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="0" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
|
|
@ -901,10 +880,10 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="radarSiteHoverTextCheckBox">
|
||||
<property name="text">
|
||||
<string>Hover text character wrap (0 to disable)</string>
|
||||
<string>Radar Site Hover Text Enabled</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
@ -919,7 +898,35 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="hoverTextWrapSpinBox">
|
||||
<property name="maximum">
|
||||
<number>999</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QToolButton" name="resetHoverTextWrapButton">
|
||||
<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="1" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Hover text character wrap (0 to disable)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="tooltipMethodComboBox"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="placefileTextDropShadowCheckBox">
|
||||
<property name="text">
|
||||
<string>Placefile Text Drop Shadow</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue