File: kvieweffects.h

package info (click to toggle)
kdegraphics 4%3A3.5.5-3etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 42,448 kB
  • ctags: 42,411
  • sloc: cpp: 372,033; sh: 10,035; ansic: 8,355; perl: 3,040; makefile: 1,794; xml: 1,128; php: 311; lisp: 60
file content (46 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* This file is in the public domain */

// $Id: kvieweffects.h 213095 2003-03-11 15:21:44Z mkretz $

#ifndef KVIEWEFFECTS_H
#define KVIEWEFFECTS_H

#include <kparts/plugin.h>
#include <qcolor.h>

namespace KImageViewer { class Viewer; }

class KViewEffects : public KParts::Plugin
{
	Q_OBJECT
public:
	KViewEffects( QObject* parent, const char* name, const QStringList & );
	virtual ~KViewEffects();

private slots:
	void intensity();
	void setIntensity( int );
	void applyIntensity();

	void blend();
	void setOpacity( int );
	void setColor( const QColor & );
	void applyBlend();

	void gamma();
	void setGammaValue( double );
	void applyGammaCorrection();

private:
	QImage * workImage();

	KImageViewer::Viewer * m_pViewer;
	double m_gamma, m_lastgamma;
	int m_opacity, m_lastopacity;
	int m_intensity, m_lastintensity;
	QColor m_color;
	QImage * m_image;
};

// vim:sw=4:ts=4:cindent
#endif // KVIEWEFFECTS_H