summaryrefslogtreecommitdiff
path: root/libopie2/opiemm/oimagescrollview.h
Unidiff
Diffstat (limited to 'libopie2/opiemm/oimagescrollview.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiemm/oimagescrollview.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie2/opiemm/oimagescrollview.h b/libopie2/opiemm/oimagescrollview.h
index 01a2d56..11964fd 100644
--- a/libopie2/opiemm/oimagescrollview.h
+++ b/libopie2/opiemm/oimagescrollview.h
@@ -118,12 +118,25 @@ public:
118 virtual bool AutoScale()const; 118 virtual bool AutoScale()const;
119 /** 119 /**
120 * return the current value of the show zoomer flag. 120 * return the current value of the show zoomer flag.
121 */ 121 */
122 virtual bool ShowZoomer()const; 122 virtual bool ShowZoomer()const;
123 123
124 /**
125 * set a display intensity
126 * @param value the intensity value, will calcuated to a percent value (value/100)
127 * @param reload should the real image recalculated complete or just work on current display.
128 * @return the new intensity
129 */
130 virtual int setIntensity(int value,bool reload=false);
131 /**
132 * return the current display intensity
133 */
134 virtual const int Intensity()const;
135
136
124public slots: 137public slots:
125 /** 138 /**
126 * Displays a new image, calculations will made immediately. 139 * Displays a new image, calculations will made immediately.
127 * 140 *
128 * @param aImage the image to display 141 * @param aImage the image to display
129 */ 142 */
@@ -154,12 +167,14 @@ protected:
154 void init(); 167 void init();
155 168
156 Opie::MM::OImageZoomer *_zoomer; 169 Opie::MM::OImageZoomer *_zoomer;
157 QImage _image_data; 170 QImage _image_data;
158 QImage _original_data; 171 QImage _original_data;
159 QPixmap _pdata; 172 QPixmap _pdata;
173 int _intensity;
174 bool _newImage;
160 175
161 int _mouseStartPosX,_mouseStartPosY; 176 int _mouseStartPosX,_mouseStartPosY;
162 177
163 QBitArray m_states; 178 QBitArray m_states;
164 179
165 Rotation m_last_rot; 180 Rotation m_last_rot;
@@ -176,12 +191,13 @@ protected:
176 virtual bool ImageIsJpeg()const; 191 virtual bool ImageIsJpeg()const;
177 virtual void setImageIsJpeg(bool how); 192 virtual void setImageIsJpeg(bool how);
178 virtual bool ImageScaledLoaded()const; 193 virtual bool ImageScaledLoaded()const;
179 virtual void setImageScaledLoaded(bool how); 194 virtual void setImageScaledLoaded(bool how);
180 virtual bool FirstResizeDone()const; 195 virtual bool FirstResizeDone()const;
181 virtual void setFirstResizeDone(bool how); 196 virtual void setFirstResizeDone(bool how);
197 virtual void apply_gamma(int aValue);
182 198
183protected slots: 199protected slots:
184 virtual void viewportMouseMoveEvent(QMouseEvent* e); 200 virtual void viewportMouseMoveEvent(QMouseEvent* e);
185 virtual void contentsMousePressEvent ( QMouseEvent * e); 201 virtual void contentsMousePressEvent ( QMouseEvent * e);
186 virtual void resizeEvent(QResizeEvent * e); 202 virtual void resizeEvent(QResizeEvent * e);
187 virtual void keyPressEvent(QKeyEvent * e); 203 virtual void keyPressEvent(QKeyEvent * e);