kwin/libkwineffects
Martin Gräßlin 0fb27fd12e Defines to create the boilerplate code for KWin's singleton classes
The define KWIN_SINGLETON adds to a class definition:

public:
    static Foo *create(QObject *parent = 0);
    static Foo *self() { return s_self; }
protected:
    explicit Foo(QObject *parent = 0);
private:
    static Foo *s_self;

There is an additional define KWIN_SINGLETON_VARIABLE to set a different
name than s_self.

The define KWIN_SINGLETON_FACTORY can be used to generate the create
method. It expands to:

Foo *Foo::s_self = 0;
Foo *Foo::create(QObject *parent)
{
    Q_ASSERT(!s_self);
    s_self = new Foo(parent);
    return s_self;
}

In addition there are defines to again set a different variable name and
to create an object of another inheriting class.

All the classes currently using this pattern are adjusted to use these
new defines. In a few places the name was adjusted. E.g. in Compositor
the factory method was called createCompositor instead of create.

REVIEW: 109865
2013-04-15 09:57:25 +02:00
..
CMakeLists.txt More fine grained linking than X11_LIBRARIES 2013-03-06 10:14:21 +01:00
Mainpage.dox Move kwineffects library into own directory 2011-02-19 10:01:31 +01:00
Messages.sh Improve message extraction 2011-02-20 16:02:33 +01:00
anidata.cpp add effect debug interface and dbus export 2013-03-28 20:31:02 +01:00
anidata_p.h add effect debug interface and dbus export 2013-03-28 20:31:02 +01:00
kwinanimationeffect.cpp add effect debug interface and dbus export 2013-03-28 20:31:02 +01:00
kwinanimationeffect.h add effect debug interface and dbus export 2013-03-28 20:31:02 +01:00
kwinconfig.h.cmake Provide OpenGL over Egl 2012-10-04 17:17:01 +02:00
kwineffects.cpp add effect debug interface and dbus export 2013-03-28 20:31:02 +01:00
kwineffects.h add effect debug interface and dbus export 2013-03-28 20:31:02 +01:00
kwinglcolorcorrection.cpp Fix premultiplied alpha issue with color correction 2013-01-13 19:10:54 +02:00
kwinglcolorcorrection.h Remove not needed includes from kwineffect header files 2013-03-06 10:23:09 +01:00
kwinglcolorcorrection_p.h Remove not needed includes from kwineffect header files 2013-03-06 10:23:09 +01:00
kwinglobals.cpp Use XCB to resolve the X11 Extensions 2013-01-22 07:50:03 +01:00
kwinglobals.h Defines to create the boilerplate code for KWin's singleton classes 2013-04-15 09:57:25 +02:00
kwinglplatform.cpp Implement color correction (per output) 2012-11-13 22:47:09 +02:00
kwinglplatform.h Add some missing includes with Qt5/KF5 2013-03-07 13:59:16 +01:00
kwingltexture.cpp Adding support for GL_EXT_texture_format_BGRA8888 in GLES 2013-03-11 11:21:14 +01:00
kwingltexture.h OpenGLPaintRedirector updates textures directly 2013-03-11 11:21:11 +01:00
kwingltexture_p.h Adding support for GL_EXT_texture_format_BGRA8888 in GLES 2013-03-11 11:21:14 +01:00
kwinglutils.cpp Implement color correction (per output) 2012-11-13 22:47:09 +02:00
kwinglutils.h Use mgraesslin@kde.org for my mail address in Copyright and AboutData 2013-03-12 13:17:53 +01:00
kwinglutils_funcs.cpp Fix buffer swap prototypes 2012-11-18 12:50:31 +01:00
kwinglutils_funcs.h Define GL_UNPACK_* for gles if not defined 2013-03-11 12:36:40 +01:00
kwinxrenderutils.cpp Remove not needed includes from kwineffect header files 2013-03-06 10:23:09 +01:00
kwinxrenderutils.h Remove not needed includes from kwineffect header files 2013-03-06 10:23:09 +01:00