2007-11-27 19:40:25 +00:00
|
|
|
/********************************************************************
|
2007-09-20 17:48:27 +00: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 16:20:52 +00:00
|
|
|
Copyright (C) 2007 Christian Nitschkowski <christian.nitschkowski@kdemail.net>
|
2007-09-20 17:48:27 +00:00
|
|
|
|
2007-11-27 19:40:25 +00: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 17:48:27 +00:00
|
|
|
|
2007-12-17 14:14:53 +00:00
|
|
|
#include <kwinconfig.h>
|
2007-11-13 16:20:52 +00:00
|
|
|
|
2007-09-25 17:52:19 +00:00
|
|
|
#include "desktopgrid_config.h"
|
2007-11-13 16:20:52 +00:00
|
|
|
#include "diminactive_config.h"
|
2008-06-06 11:07:15 +00:00
|
|
|
#include "maketransparent_config.h"
|
|
|
|
#include "presentwindows_config.h"
|
|
|
|
#include "shadow_config.h"
|
|
|
|
#include "showfps_config.h"
|
2007-11-13 16:20:52 +00:00
|
|
|
#include "thumbnailaside_config.h"
|
2007-11-12 15:11:00 +00:00
|
|
|
#include "zoom_config.h"
|
2007-09-20 17:48:27 +00:00
|
|
|
|
2008-06-06 11:07:15 +00:00
|
|
|
|
2007-12-17 14:14:53 +00:00
|
|
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
2008-02-21 13:20:22 +00:00
|
|
|
#include "coverswitch_config.h"
|
2008-01-24 10:36:32 +00:00
|
|
|
#include "flipswitch_config.h"
|
2007-11-13 18:14:56 +00:00
|
|
|
#include "invert_config.h"
|
2007-11-13 17:37:53 +00:00
|
|
|
#include "lookingglass_config.h"
|
|
|
|
#include "mousemark_config.h"
|
|
|
|
#include "magnifier_config.h"
|
2007-11-13 18:21:49 +00:00
|
|
|
#include "sharpen_config.h"
|
2008-01-08 15:47:31 +00:00
|
|
|
#include "snow_config.h"
|
2007-11-13 21:50:00 +00:00
|
|
|
#include "trackmouse_config.h"
|
2008-04-18 12:01:47 +00:00
|
|
|
#include "wobblywindows_config.h"
|
2008-06-06 11:07:15 +00:00
|
|
|
#endif
|
2008-02-28 13:46:41 +00:00
|
|
|
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
|
2008-06-06 11:07:15 +00:00
|
|
|
// xrender-only here if any
|
2007-11-13 17:37:53 +00:00
|
|
|
#endif
|
2008-06-06 11:07:15 +00:00
|
|
|
#ifdef HAVE_CAPTURY
|
|
|
|
#include "videorecord_config.h"
|
2008-02-28 13:46:41 +00:00
|
|
|
#endif
|
2007-11-13 17:37:53 +00:00
|
|
|
|
2007-09-20 17:48:27 +00:00
|
|
|
#include <kwineffects.h>
|
|
|
|
|
|
|
|
#include <KPluginLoader>
|
2007-10-03 20:18:56 +00:00
|
|
|
#ifndef KDE_USE_FINAL
|
2007-09-20 18:06:36 +00:00
|
|
|
KWIN_EFFECT_CONFIG_FACTORY
|
2007-10-03 20:18:56 +00:00
|
|
|
#endif
|
2007-11-22 23:28:34 +00:00
|
|
|
|
2008-06-06 11:07:15 +00:00
|
|
|
#define COMMON_PLUGINS \
|
2007-11-22 23:28:34 +00:00
|
|
|
registerPlugin<KWin::DesktopGridEffectConfig>("desktopgrid"); \
|
|
|
|
registerPlugin<KWin::DimInactiveEffectConfig>("diminactive"); \
|
|
|
|
registerPlugin<KWin::MakeTransparentEffectConfig>("maketransparent"); \
|
|
|
|
registerPlugin<KWin::PresentWindowsEffectConfig>("presentwindows"); \
|
|
|
|
registerPlugin<KWin::ShadowEffectConfig>("shadow"); \
|
2008-06-06 11:07:15 +00:00
|
|
|
registerPlugin<KWin::ShowFpsEffectConfig> ("showfps"); \
|
2007-11-22 23:28:34 +00:00
|
|
|
registerPlugin<KWin::ThumbnailAsideEffectConfig>("thumbnailaside"); \
|
2007-11-13 16:20:52 +00:00
|
|
|
registerPlugin<KWin::ZoomEffectConfig>("zoom");
|
2007-11-22 23:28:34 +00:00
|
|
|
|
2008-06-06 11:07:15 +00:00
|
|
|
#define OPENGL_PLUGINS \
|
2008-02-21 13:20:22 +00:00
|
|
|
registerPlugin<KWin::CoverSwitchEffectConfig>("coverswitch"); \
|
2008-01-24 10:36:32 +00:00
|
|
|
registerPlugin<KWin::FlipSwitchEffectConfig>("flipswitch"); \
|
2007-11-22 23:28:34 +00:00
|
|
|
registerPlugin<KWin::InvertEffectConfig>("invert"); \
|
|
|
|
registerPlugin<KWin::LookingGlassEffectConfig>("lookingglass"); \
|
|
|
|
registerPlugin<KWin::MouseMarkEffectConfig>("mousemark"); \
|
|
|
|
registerPlugin<KWin::MagnifierEffectConfig>("magnifier"); \
|
|
|
|
registerPlugin<KWin::SharpenEffectConfig>("sharpen"); \
|
2008-01-08 15:47:31 +00:00
|
|
|
registerPlugin<KWin::SnowEffectConfig>("snow"); \
|
2007-11-22 23:28:34 +00:00
|
|
|
registerPlugin<KWin::TrackMouseEffectConfig>("trackmouse"); \
|
2008-06-06 11:07:15 +00:00
|
|
|
registerPlugin<KWin::WobblyWindowsEffectConfig> ("wobblywindows");
|
2008-03-26 00:55:39 +00:00
|
|
|
|
2008-06-06 11:07:15 +00:00
|
|
|
#define XRENDER_PLUGINS
|
|
|
|
#define CAPTURY_PLUGINS \
|
|
|
|
registerPlugin<KWin::VideoRecordEffectConfig> ("videorecord");
|
2007-11-22 23:28:34 +00:00
|
|
|
|
|
|
|
K_PLUGIN_FACTORY_DEFINITION(EffectFactory,
|
2008-06-06 11:07:15 +00:00
|
|
|
COMMON_PLUGINS
|
|
|
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
|
|
|
OPENGL_PLUGINS
|
|
|
|
#endif
|
2008-03-26 00:55:39 +00:00
|
|
|
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
|
2008-06-06 11:07:15 +00:00
|
|
|
XRENDER_PLUGINS
|
2008-03-26 00:55:39 +00:00
|
|
|
#endif
|
2008-06-06 11:07:15 +00:00
|
|
|
#ifdef HAVE_CAPTURY
|
|
|
|
CAPTURY_PLUGINS
|
2007-11-22 23:28:34 +00:00
|
|
|
#endif
|
2008-06-06 11:07:15 +00:00
|
|
|
)
|
2007-09-25 17:52:19 +00:00
|
|
|
K_EXPORT_PLUGIN(EffectFactory("kwin"))
|
2008-06-06 11:07:15 +00:00
|
|
|
|
|
|
|
#undef COMMON_PLUGINS
|
|
|
|
#undef OPENGL_PLUGINS
|
|
|
|
#undef XRENDER_PLUGINS
|
|
|
|
#undef CAPTURY_PLUGINS
|