2007-11-27 22:40:25 +03:00
|
|
|
/********************************************************************
|
2007-09-20 21:48:27 +04:00
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2007 Bernhard Loos <nhuh.put@web.de>
|
2007-11-13 19:20:52 +03:00
|
|
|
Copyright (C) 2007 Christian Nitschkowski <christian.nitschkowski@kdemail.net>
|
2007-09-20 21:48:27 +04:00
|
|
|
|
2007-11-27 22:40:25 +03:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*********************************************************************/
|
2007-09-20 21:48:27 +04:00
|
|
|
|
2007-12-17 17:14:53 +03:00
|
|
|
#include <kwinconfig.h>
|
2007-11-13 19:20:52 +03:00
|
|
|
|
2007-09-20 21:48:27 +04:00
|
|
|
#include "shadow_config.h"
|
|
|
|
#include "presentwindows_config.h"
|
2007-09-25 21:52:19 +04:00
|
|
|
#include "desktopgrid_config.h"
|
2007-10-22 17:34:26 +04:00
|
|
|
#include "maketransparent_config.h"
|
2007-11-13 19:20:52 +03:00
|
|
|
#include "diminactive_config.h"
|
|
|
|
#include "thumbnailaside_config.h"
|
2007-11-12 18:11:00 +03:00
|
|
|
#include "zoom_config.h"
|
2007-09-20 21:48:27 +04:00
|
|
|
|
2007-12-17 17:14:53 +03:00
|
|
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
2008-02-21 16:20:22 +03:00
|
|
|
#include "coverswitch_config.h"
|
2008-01-24 13:36:32 +03:00
|
|
|
#include "flipswitch_config.h"
|
2007-11-13 21:14:56 +03:00
|
|
|
#include "invert_config.h"
|
2007-11-13 20:37:53 +03:00
|
|
|
#include "lookingglass_config.h"
|
|
|
|
#include "mousemark_config.h"
|
|
|
|
#include "magnifier_config.h"
|
2007-11-13 21:21:49 +03:00
|
|
|
#include "sharpen_config.h"
|
2008-01-08 18:47:31 +03:00
|
|
|
#include "snow_config.h"
|
2007-11-14 00:50:00 +03:00
|
|
|
#include "trackmouse_config.h"
|
2008-02-28 16:46:41 +03:00
|
|
|
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
|
2008-02-05 20:20:08 +03:00
|
|
|
#include "showfps_config.h"
|
2007-11-13 20:37:53 +03:00
|
|
|
#endif
|
2008-02-28 16:46:41 +03:00
|
|
|
#endif
|
2007-11-13 20:37:53 +03:00
|
|
|
|
2007-09-20 21:48:27 +04:00
|
|
|
#include <kwineffects.h>
|
|
|
|
|
|
|
|
#include <KPluginLoader>
|
2007-10-04 00:18:56 +04:00
|
|
|
#ifndef KDE_USE_FINAL
|
2007-09-20 22:06:36 +04:00
|
|
|
KWIN_EFFECT_CONFIG_FACTORY
|
2007-10-04 00:18:56 +04:00
|
|
|
#endif
|
2007-11-23 02:28:34 +03:00
|
|
|
|
|
|
|
#define NON_GL_PLUGINS \
|
|
|
|
registerPlugin<KWin::DesktopGridEffectConfig>("desktopgrid"); \
|
|
|
|
registerPlugin<KWin::DimInactiveEffectConfig>("diminactive"); \
|
|
|
|
registerPlugin<KWin::MakeTransparentEffectConfig>("maketransparent"); \
|
|
|
|
registerPlugin<KWin::PresentWindowsEffectConfig>("presentwindows"); \
|
|
|
|
registerPlugin<KWin::ShadowEffectConfig>("shadow"); \
|
|
|
|
registerPlugin<KWin::ThumbnailAsideEffectConfig>("thumbnailaside"); \
|
2007-11-13 19:20:52 +03:00
|
|
|
registerPlugin<KWin::ZoomEffectConfig>("zoom");
|
2007-11-23 02:28:34 +03:00
|
|
|
|
|
|
|
#define GL_PLUGINS \
|
2008-02-21 16:20:22 +03:00
|
|
|
registerPlugin<KWin::CoverSwitchEffectConfig>("coverswitch"); \
|
2008-01-24 13:36:32 +03:00
|
|
|
registerPlugin<KWin::FlipSwitchEffectConfig>("flipswitch"); \
|
2007-11-23 02:28:34 +03:00
|
|
|
registerPlugin<KWin::InvertEffectConfig>("invert"); \
|
|
|
|
registerPlugin<KWin::LookingGlassEffectConfig>("lookingglass"); \
|
|
|
|
registerPlugin<KWin::MouseMarkEffectConfig>("mousemark"); \
|
|
|
|
registerPlugin<KWin::MagnifierEffectConfig>("magnifier"); \
|
|
|
|
registerPlugin<KWin::SharpenEffectConfig>("sharpen"); \
|
2008-01-08 18:47:31 +03:00
|
|
|
registerPlugin<KWin::SnowEffectConfig>("snow"); \
|
2007-11-23 02:28:34 +03:00
|
|
|
registerPlugin<KWin::TrackMouseEffectConfig>("trackmouse"); \
|
2008-03-26 03:55:39 +03:00
|
|
|
|
|
|
|
#define GL_RENDER_PLUGINS \
|
2008-02-05 20:20:08 +03:00
|
|
|
registerPlugin<KWin::ShowFpsEffectConfig> ("showfps"); \
|
2007-11-23 02:28:34 +03:00
|
|
|
|
2007-12-17 17:14:53 +03:00
|
|
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
2007-11-23 02:28:34 +03:00
|
|
|
K_PLUGIN_FACTORY_DEFINITION(EffectFactory,
|
|
|
|
NON_GL_PLUGINS
|
|
|
|
GL_PLUGINS
|
2008-03-26 03:55:39 +03:00
|
|
|
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
|
|
|
|
GL_RENDER_PLUGINS
|
|
|
|
#endif
|
2007-11-23 02:28:34 +03:00
|
|
|
)
|
|
|
|
#else
|
|
|
|
K_PLUGIN_FACTORY_DEFINITION(EffectFactory,
|
|
|
|
NON_GL_PLUGINS
|
2007-11-13 19:20:52 +03:00
|
|
|
)
|
2007-11-23 02:28:34 +03:00
|
|
|
#endif
|
2007-09-25 21:52:19 +04:00
|
|
|
K_EXPORT_PLUGIN(EffectFactory("kwin"))
|