Adding alert colors to settings

This commit is contained in:
Dan Paulat 2022-12-25 00:57:57 -06:00
parent aa842c11b7
commit 2b55d0cd69
6 changed files with 161 additions and 20 deletions

View file

@ -2,6 +2,7 @@
#include <scwx/qt/settings/settings_category.hpp>
#include <scwx/qt/settings/settings_variable.hpp>
#include <scwx/awips/phenomenon.hpp>
#include <memory>
#include <string>
@ -28,6 +29,10 @@ public:
PaletteSettings& operator=(PaletteSettings&&) noexcept;
SettingsVariable<std::string>& palette(const std::string& name) const;
SettingsVariable<std::string>& alert_color(awips::Phenomenon phenomenon,
bool active) const;
static const std::vector<awips::Phenomenon>& alert_phenomena();
friend bool operator==(const PaletteSettings& lhs,
const PaletteSettings& rhs);