]> sigrok.org Git - pulseview.git/blobdiff - pv/globalsettings.hpp
Fix #1290 by allowing the cursor to show samples
[pulseview.git] / pv / globalsettings.hpp
index d8374a354ff432c3d2edbfff810e6fb909c3389c..adb9168a1fbc3be027db6f7ee16df0930b501de4 100644 (file)
@@ -51,8 +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;
@@ -67,8 +69,13 @@ 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_View_CursorShowInterval;
+       static const QString Key_View_CursorShowFrequency;
+       static const QString Key_View_CursorShowSamples;
        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;
 
@@ -81,11 +88,16 @@ public:
 public:
        GlobalSettings();
 
-       void set_defaults_where_needed();
        void save_internal_defaults();
+       void set_defaults_where_needed();
+       void set_bright_theme_default_colors();
+       void set_dark_theme_default_colors();
 
+       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);
 
@@ -125,6 +137,8 @@ private:
 
        static QString default_style_;
        static QPalette default_palette_;
+
+       static bool is_dark_theme_;
 };
 
 } // namespace pv