20 #ifndef PULSEVIEW_PV_GLOBALSETTINGS_HPP 21 #define PULSEVIEW_PV_GLOBALSETTINGS_HPP 26 #include <glibmm/variant.h> 41 extern const vector< pair<QString, QString> >
Themes;
88 ConvThrDispMode_None = 0,
96 void save_internal_defaults();
97 void set_defaults_where_needed();
98 void set_bright_theme_default_colors();
99 void set_dark_theme_default_colors();
101 static bool current_theme_is_dark();
104 void apply_language();
109 void setValue(
const QString& key,
const QVariant&
value);
116 void start_tracking();
121 void stop_tracking();
127 void undo_tracked_changes();
129 static void store_gvariant(
QSettings &settings, GVariant *v);
130 static GVariant* restore_gvariant(
QSettings &settings);
132 static void store_variantbase(
QSettings &settings, Glib::VariantBase v);
133 static Glib::VariantBase restore_variantbase(
QSettings &settings);
152 #endif // PULSEVIEW_PV_GLOBALSETTINGS_HPP static const QString Key_General_SaveWithSetup
const vector< pair< QString, QString > > Themes
static bool is_dark_theme_
static map< QString, QVariant > tracked_changes_
static const QString Key_View_KeepRulerItemSelected
static vector< GlobalSettingsInterface * > callbacks_
static QPalette default_palette_
static const QString Key_Log_BufferSize
static const QString Key_View_ShowAnalogMinorGrid
static const QString Key_View_FillSignalHighAreaColor
static const QString Key_View_DefaultDivHeight
T value(details::expression_node< T > *n)
static const QString Key_General_Style
static const QString Key_Log_NotifyOfStacktrace
static const QString Key_Dec_AlwaysShowAllRows
static const QString Key_View_SnapDistance
static const QString Key_View_TriggerIsZeroTime
static const QString Key_View_CursorShowSamples
static const QString Key_General_StartAllSessions
static const QString Key_General_Language
static const QString Key_View_DefaultLogicHeight
static const QString Key_View_CursorFillColor
static QString default_style_
static const QString Key_View_StickyScrolling
static const QString Key_General_Theme
static const QString Key_View_CursorShowFrequency
static const QString Key_View_ShowHoverMarker
static const QString Key_View_AllowVerticalDragging
static const QString Key_Dec_InitialStateConfigurable
static const QString Key_View_ConversionThresholdDispMode
static const QString Key_View_ZoomToFitAfterAcq
static const QString Key_View_ShowSamplingPoints
static const QString Key_View_ZoomToFitDuringAcq
static const QString Key_View_FillSignalHighAreas
static const QString Key_View_CursorShowInterval
virtual void on_setting_changed(const QString &key, const QVariant &value)=0
boost::multiprecision::number< boost::multiprecision::cpp_dec_float< 24 >, boost::multiprecision::et_off > Timestamp
Timestamp type providing yoctosecond resolution.
static const QString Key_Dec_ExportFormat
static const QString Key_View_ColoredBG