]> sigrok.org Git - pulseview.git/blobdiff - pv/globalsettings.hpp
TraceView: Add context menu to the cursor
[pulseview.git] / pv / globalsettings.hpp
index e890a800e306b302f0b5939c28d7c78bcfe537d0..f526285a13d322f364d34d069459e839a7eb4780 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;
@@ -68,8 +70,11 @@ public:
        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_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;
 
@@ -87,9 +92,11 @@ public:
        void set_bright_theme_default_colors();
        void set_dark_theme_default_colors();
 
-       bool current_theme_is_dark();
+       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);
 
@@ -130,7 +137,7 @@ private:
        static QString default_style_;
        static QPalette default_palette_;
 
-       bool is_dark_theme_;
+       static bool is_dark_theme_;
 };
 
 } // namespace pv