Diffstat (limited to 'libopie2/opiemm/oimagescrollview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiemm/oimagescrollview.h | 16 |
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 @@ -120,8 +120,21 @@ public: * return the current value of the show zoomer flag. */ virtual bool ShowZoomer()const; + /** + * set a display intensity + * @param value the intensity value, will calcuated to a percent value (value/100) + * @param reload should the real image recalculated complete or just work on current display. + * @return the new intensity + */ + virtual int setIntensity(int value,bool reload=false); + /** + * return the current display intensity + */ + virtual const int Intensity()const; + + public slots: /** * Displays a new image, calculations will made immediately. * @@ -156,8 +169,10 @@ protected: Opie::MM::OImageZoomer *_zoomer; QImage _image_data; QImage _original_data; QPixmap _pdata; + int _intensity; + bool _newImage; int _mouseStartPosX,_mouseStartPosY; QBitArray m_states; @@ -178,8 +193,9 @@ protected: virtual bool ImageScaledLoaded()const; virtual void setImageScaledLoaded(bool how); virtual bool FirstResizeDone()const; virtual void setFirstResizeDone(bool how); + virtual void apply_gamma(int aValue); protected slots: virtual void viewportMouseMoveEvent(QMouseEvent* e); virtual void contentsMousePressEvent ( QMouseEvent * e); |