comparison base/Preferences.h @ 372:d31b4ccb7ddb

* Update remaining editable layers to support proper realignment on copy/paste * Permit pasting when no suitable layer is current: create a new layer on paste * Add preference for showing the splash screen or not * Rename spectrogram smoothing prefs (partly following Craig's suggestions)
author Chris Cannam
date Wed, 06 Feb 2008 14:15:09 +0000
parents 048b21bc9891
children 98077b21a9e1
comparison
equal deleted inserted replaced
371:d77e1fa49e26 372:d31b4ccb7ddb
67 DarkBackground, 67 DarkBackground,
68 LightBackground 68 LightBackground
69 }; 69 };
70 BackgroundMode getBackgroundMode() const { return m_backgroundMode; } 70 BackgroundMode getBackgroundMode() const { return m_backgroundMode; }
71 71
72 bool getShowSplash() const { return m_showSplash; }
73
72 public slots: 74 public slots:
73 virtual void setProperty(const PropertyName &, int); 75 virtual void setProperty(const PropertyName &, int);
74 76
75 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); 77 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing);
76 void setTuningFrequency(float freq); 78 void setTuningFrequency(float freq);
80 void setOmitTempsFromRecentFiles(bool omit); 82 void setOmitTempsFromRecentFiles(bool omit);
81 void setTemporaryDirectoryRoot(QString tempDirRoot); 83 void setTemporaryDirectoryRoot(QString tempDirRoot);
82 void setResampleOnLoad(bool); 84 void setResampleOnLoad(bool);
83 void setBackgroundMode(BackgroundMode mode); 85 void setBackgroundMode(BackgroundMode mode);
84 void setViewFontSize(int size); 86 void setViewFontSize(int size);
87 void setShowSplash(bool);
85 88
86 private: 89 private:
87 Preferences(); // may throw DirectoryCreationFailed 90 Preferences(); // may throw DirectoryCreationFailed
88 virtual ~Preferences(); 91 virtual ~Preferences();
89 92
97 bool m_omitRecentTemps; 100 bool m_omitRecentTemps;
98 QString m_tempDirRoot; 101 QString m_tempDirRoot;
99 bool m_resampleOnLoad; 102 bool m_resampleOnLoad;
100 int m_viewFontSize; 103 int m_viewFontSize;
101 BackgroundMode m_backgroundMode; 104 BackgroundMode m_backgroundMode;
105 bool m_showSplash;
102 }; 106 };
103 107
104 #endif 108 #endif