Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
611:dd97f7b3d120 | 612:75f154085a4d |
---|---|
73 DarkBackground, | 73 DarkBackground, |
74 LightBackground | 74 LightBackground |
75 }; | 75 }; |
76 BackgroundMode getBackgroundMode() const { return m_backgroundMode; } | 76 BackgroundMode getBackgroundMode() const { return m_backgroundMode; } |
77 | 77 |
78 enum TimeToTextMode { | |
79 TimeToTextMs, | |
80 TimeToTextUs, | |
81 TimeToText24Frame, | |
82 TimeToText25Frame, | |
83 TimeToText30Frame, | |
84 TimeToText50Frame, | |
85 TimeToText60Frame | |
86 }; | |
87 TimeToTextMode getTimeToTextMode() const { return m_timeToTextMode; } | |
88 | |
78 bool getShowSplash() const { return m_showSplash; } | 89 bool getShowSplash() const { return m_showSplash; } |
79 | 90 |
80 public slots: | 91 public slots: |
81 virtual void setProperty(const PropertyName &, int); | 92 virtual void setProperty(const PropertyName &, int); |
82 | 93 |
88 void setResampleQuality(int quality); | 99 void setResampleQuality(int quality); |
89 void setOmitTempsFromRecentFiles(bool omit); | 100 void setOmitTempsFromRecentFiles(bool omit); |
90 void setTemporaryDirectoryRoot(QString tempDirRoot); | 101 void setTemporaryDirectoryRoot(QString tempDirRoot); |
91 void setResampleOnLoad(bool); | 102 void setResampleOnLoad(bool); |
92 void setBackgroundMode(BackgroundMode mode); | 103 void setBackgroundMode(BackgroundMode mode); |
104 void setTimeToTextMode(TimeToTextMode mode); | |
93 void setViewFontSize(int size); | 105 void setViewFontSize(int size); |
94 void setShowSplash(bool); | 106 void setShowSplash(bool); |
95 | 107 |
96 private: | 108 private: |
97 Preferences(); // may throw DirectoryCreationFailed | 109 Preferences(); // may throw DirectoryCreationFailed |
108 bool m_omitRecentTemps; | 120 bool m_omitRecentTemps; |
109 QString m_tempDirRoot; | 121 QString m_tempDirRoot; |
110 bool m_resampleOnLoad; | 122 bool m_resampleOnLoad; |
111 int m_viewFontSize; | 123 int m_viewFontSize; |
112 BackgroundMode m_backgroundMode; | 124 BackgroundMode m_backgroundMode; |
125 TimeToTextMode m_timeToTextMode; | |
113 bool m_showSplash; | 126 bool m_showSplash; |
114 }; | 127 }; |
115 | 128 |
116 #endif | 129 #endif |