X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fglobalsettings.hpp;h=d23bf637153a093b277671aad684d506ec31a561;hb=bae42c1d8a6fbe65e412d56edecdd4b354908339;hp=6e027d782c97dd3e4a449e72282fa8c2ad55e646;hpb=4521022bf4ea07aff38bfa09fe0f7d5702b26475;p=pulseview.git diff --git a/pv/globalsettings.hpp b/pv/globalsettings.hpp index 6e027d7..d23bf63 100644 --- a/pv/globalsettings.hpp +++ b/pv/globalsettings.hpp @@ -25,15 +25,20 @@ #include #include +#include #include #include #include using std::map; +using std::pair; using std::vector; namespace pv { +extern const vector< pair > Themes; + + class GlobalSettingsInterface { public: @@ -46,6 +51,7 @@ class GlobalSettings : public QSettings Q_OBJECT public: + static const QString Key_General_Theme; static const QString Key_View_ZoomToFitDuringAcq; static const QString Key_View_ZoomToFitAfterAcq; static const QString Key_View_TriggerIsZeroTime; @@ -76,6 +82,9 @@ public: void set_defaults_where_needed(); + void save_default_palette(); + void apply_theme(); + static void add_change_handler(GlobalSettingsInterface *cb); static void remove_change_handler(GlobalSettingsInterface *cb); @@ -112,6 +121,8 @@ private: static bool tracking_; static map tracked_changes_; + + static QPalette default_palette_; }; } // namespace pv