diff base/Preferences.h @ 612:75f154085a4d

* Add time display format preference
author Chris Cannam
date Fri, 25 Sep 2009 12:02:22 +0000
parents 98077b21a9e1
children 2c4aca969c24 451f7f3ab6e7
line wrap: on
line diff
--- a/base/Preferences.h	Fri Sep 11 15:42:32 2009 +0000
+++ b/base/Preferences.h	Fri Sep 25 12:02:22 2009 +0000
@@ -75,6 +75,17 @@
     };
     BackgroundMode getBackgroundMode() const { return m_backgroundMode; }
 
+    enum TimeToTextMode {
+        TimeToTextMs,
+        TimeToTextUs,
+        TimeToText24Frame,
+        TimeToText25Frame,
+        TimeToText30Frame,
+        TimeToText50Frame,
+        TimeToText60Frame
+    };
+    TimeToTextMode getTimeToTextMode() const { return m_timeToTextMode; }
+
     bool getShowSplash() const { return m_showSplash; }
 
 public slots:
@@ -90,6 +101,7 @@
     void setTemporaryDirectoryRoot(QString tempDirRoot);
     void setResampleOnLoad(bool);
     void setBackgroundMode(BackgroundMode mode);
+    void setTimeToTextMode(TimeToTextMode mode);
     void setViewFontSize(int size);
     void setShowSplash(bool);
 
@@ -110,6 +122,7 @@
     bool m_resampleOnLoad;
     int m_viewFontSize;
     BackgroundMode m_backgroundMode;
+    TimeToTextMode m_timeToTextMode;
     bool m_showSplash;
 };