1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef _KwMediaPreferencesVisual_h_
21 #define _KwMediaPreferencesVisual_h_
24 * @file KwMediaPreferencesVisual.h
25 * @brief A media item's visual preferences.
26 * @author James Hogan <james@albanarts.com>
29 #include "KwAbstractMediaPreferences.h"
33 /// A media item's visual preferences.
35 * Basically this is visual based preferences such as brightness etc.
37 class KwMediaPreferencesVisual
: public KwAbstractMediaPreferences
45 /// The type for visual parameters.
46 typedef qreal Parameter
;
58 * Constructors + destructors
61 /// Default constructor.
62 KwMediaPreferencesVisual();
65 virtual ~KwMediaPreferencesVisual();
71 /// Get the brightness value.
72 Parameter
getBrightness() const;
74 /// Get the contrast value.
75 Parameter
getContrast() const;
77 /// Get the hue value.
78 Parameter
getHue() const;
80 /// Get the saturation value.
81 Parameter
getSaturation() const;
83 /// Get the scale mode.
84 ScaleMode
getScaleMode() const;
90 /// Set the brightness value.
91 void setBrightness(Parameter brightness
);
93 /// Set the contrast value.
94 void setContrast(Parameter contrast
);
96 /// Set the hue value.
97 void setHue(Parameter hue
);
99 /// Set the saturation value.
100 void setSaturation(Parameter saturation
);
102 /// Set the scale mode.
103 void setScaleMode(ScaleMode scaleMode
);
111 /// Brightness value.
112 Parameter m_brightness
;
115 Parameter m_contrast
;
120 /// Saturation value.
121 Parameter m_saturation
;
124 ScaleMode m_scaleMode
;
127 #endif // _KwMediaPreferencesVisual_h_