]> sigrok.org Git - pulseview.git/blobdiff - pv/globalsettings.hpp
HexView: Don't send out an extra byte when exporting all data
[pulseview.git] / pv / globalsettings.hpp
index d23bf637153a093b277671aad684d506ec31a561..56ca9632e45a3bdcbb757018bd72a177f493791a 100644 (file)
@@ -51,7 +51,10 @@ class GlobalSettings : public QSettings
        Q_OBJECT
 
 public:
+       static const QString Key_General_Language;
        static const QString Key_General_Theme;
+       static const QString Key_General_Style;
+       static const QString Key_General_SaveWithSetup;
        static const QString Key_View_ZoomToFitDuringAcq;
        static const QString Key_View_ZoomToFitAfterAcq;
        static const QString Key_View_TriggerIsZeroTime;
@@ -66,8 +69,10 @@ public:
        static const QString Key_View_DefaultLogicHeight;
        static const QString Key_View_ShowHoverMarker;
        static const QString Key_View_SnapDistance;
+       static const QString Key_View_CursorFillColor;
        static const QString Key_Dec_InitialStateConfigurable;
        static const QString Key_Dec_ExportFormat;
+       static const QString Key_Dec_AlwaysShowAllRows;
        static const QString Key_Log_BufferSize;
        static const QString Key_Log_NotifyOfStacktrace;
 
@@ -80,11 +85,16 @@ public:
 public:
        GlobalSettings();
 
+       void save_internal_defaults();
        void set_defaults_where_needed();
+       void set_bright_theme_default_colors();
+       void set_dark_theme_default_colors();
 
-       void save_default_palette();
+       static bool current_theme_is_dark();
        void apply_theme();
 
+       void apply_language();
+
        static void add_change_handler(GlobalSettingsInterface *cb);
        static void remove_change_handler(GlobalSettingsInterface *cb);
 
@@ -122,7 +132,10 @@ private:
        static bool tracking_;
        static map<QString, QVariant> tracked_changes_;
 
+       static QString default_style_;
        static QPalette default_palette_;
+
+       static bool is_dark_theme_;
 };
 
 } // namespace pv