X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fglobalsettings.hpp;h=e41c2ea9ed6a8b8d88b537f7bbae33bcc07f418d;hb=69e950969e45ddbf516069c28f72f5696c53af5d;hp=f526285a13d322f364d34d069459e839a7eb4780;hpb=79a37ed84b4021736ee7cac75fa3a255b5453dda;p=pulseview.git diff --git a/pv/globalsettings.hpp b/pv/globalsettings.hpp index f526285a..e41c2ea9 100644 --- a/pv/globalsettings.hpp +++ b/pv/globalsettings.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_GLOBALSETTINGS_HPP -#define PULSEVIEW_GLOBALSETTINGS_HPP +#ifndef PULSEVIEW_PV_GLOBALSETTINGS_HPP +#define PULSEVIEW_PV_GLOBALSETTINGS_HPP #include @@ -30,6 +30,8 @@ #include #include +#include "util.hpp" + using std::map; using std::pair; using std::vector; @@ -72,6 +74,7 @@ public: 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; @@ -121,13 +124,14 @@ public: void undo_tracked_changes(); static void store_gvariant(QSettings &settings, GVariant *v); - static GVariant* restore_gvariant(QSettings &settings); static void store_variantbase(QSettings &settings, Glib::VariantBase v); - static Glib::VariantBase restore_variantbase(QSettings &settings); + static void store_timestamp(QSettings &settings, const char *name, const pv::util::Timestamp &ts); + static pv::util::Timestamp restore_timestamp(QSettings &settings, const char *name); + private: static vector callbacks_; @@ -142,4 +146,4 @@ private: } // namespace pv -#endif // PULSEVIEW_GLOBALSETTINGS_HPP +#endif // PULSEVIEW_PV_GLOBALSETTINGS_HPP