diff base/Preferences.h @ 297:c022976d18e8

* Merge from sv-match-alignment branch (excluding alignment-specific document). - add aggregate wave model (not yet complete enough to be added as a true model in a layer, but there's potential) - add play solo mode - add alignment model -- unused in plain SV - fix two plugin leaks - add m3u playlist support (opens all files at once, potentially hazardous) - fix retrieval of pre-encoded URLs - add ability to resample audio files on import, so as to match rates with other files previously loaded; add preference for same - add preliminary support in transform code for range and rate of transform input - reorganise preferences dialog, move dark-background option to preferences, add option for temporary directory location
author Chris Cannam
date Fri, 28 Sep 2007 13:56:38 +0000
parents 3b8008d09541
children 048b21bc9891 94fc0591ea43
line wrap: on
line diff
--- a/base/Preferences.h	Fri Sep 21 09:13:11 2007 +0000
+++ b/base/Preferences.h	Fri Sep 28 13:56:38 2007 +0000
@@ -56,6 +56,17 @@
 
     bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; }
 
+    QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; }
+
+    bool getResampleOnLoad() const { return m_resampleOnLoad; }    
+    
+    enum BackgroundMode {
+        BackgroundFromTheme,
+        DarkBackground,
+        LightBackground 
+    };
+    BackgroundMode getBackgroundMode() const { return m_backgroundMode; }
+
 public slots:
     virtual void setProperty(const PropertyName &, int);
 
@@ -65,6 +76,9 @@
     void setWindowType(WindowType type);
     void setResampleQuality(int quality);
     void setOmitTempsFromRecentFiles(bool omit);
+    void setTemporaryDirectoryRoot(QString tempDirRoot);
+    void setResampleOnLoad(bool);
+    void setBackgroundMode(BackgroundMode mode);
 
 private:
     Preferences(); // may throw DirectoryCreationFailed
@@ -78,6 +92,9 @@
     WindowType m_windowType;
     int m_resampleQuality;
     bool m_omitRecentTemps;
+    QString m_tempDirRoot;
+    bool m_resampleOnLoad;
+    BackgroundMode m_backgroundMode;
 };
 
 #endif