* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef PULSEVIEW_GLOBALSETTINGS_HPP
-#define PULSEVIEW_GLOBALSETTINGS_HPP
+#ifndef PULSEVIEW_PV_GLOBALSETTINGS_HPP
+#define PULSEVIEW_PV_GLOBALSETTINGS_HPP
#include <map>
#include <QString>
#include <QVariant>
+#include "util.hpp"
+
using std::map;
using std::pair;
using std::vector;
static const QString Key_General_Theme;
static const QString Key_General_Style;
static const QString Key_General_SaveWithSetup;
+ static const QString Key_General_StartAllSessions;
static const QString Key_View_ZoomToFitDuringAcq;
static const QString Key_View_ZoomToFitAfterAcq;
static const QString Key_View_TriggerIsZeroTime;
static const QString Key_View_ColoredBG;
static const QString Key_View_StickyScrolling;
+ static const QString Key_View_AllowVerticalDragging;
static const QString Key_View_ShowSamplingPoints;
static const QString Key_View_FillSignalHighAreas;
static const QString Key_View_FillSignalHighAreaColor;
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;
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<GlobalSettingsInterface*> callbacks_;
} // namespace pv
-#endif // PULSEVIEW_GLOBALSETTINGS_HPP
+#endif // PULSEVIEW_PV_GLOBALSETTINGS_HPP