SQLite compatibility and related fixes
[kworship.git] / kworship / media / KwMediaPreferencesVisual.h
blobe9144d6eb1c75a9a1040b3d72ceb6f1ff0a32d58
1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
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. *
9 * *
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. *
14 * *
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_
23 /**
24 * @file KwMediaPreferencesVisual.h
25 * @brief A media item's visual preferences.
26 * @author James Hogan <james@albanarts.com>
29 #include "KwAbstractMediaPreferences.h"
31 #include <QtGlobal>
33 /// A media item's visual preferences.
34 /**
35 * Basically this is visual based preferences such as brightness etc.
37 class KwMediaPreferencesVisual : public KwAbstractMediaPreferences
39 public:
42 * Types
45 /// The type for visual parameters.
46 typedef qreal Parameter;
48 /// Scaling modes.
49 enum ScaleMode
51 Unscaled,
52 FitInView,
53 Stretch,
54 ScaleAndCrop
58 * Constructors + destructors
61 /// Default constructor.
62 KwMediaPreferencesVisual();
64 /// Destructor.
65 virtual ~KwMediaPreferencesVisual();
68 * Accessors
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;
87 * Mutators
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);
105 private:
108 * Variables
111 /// Brightness value.
112 Parameter m_brightness;
114 /// Contrast value.
115 Parameter m_contrast;
117 /// Hue value.
118 Parameter m_hue;
120 /// Saturation value.
121 Parameter m_saturation;
123 /// Scale mode.
124 ScaleMode m_scaleMode;
127 #endif // _KwMediaPreferencesVisual_h_