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-11-13 16:20:52 +00:00
|
|
|
#include <config-X11.h>
|
|
|
|
|
2007-09-20 17:48:27 +00:00
|
|
|
#include "shadow_config.h"
|
|
|
|
#include "presentwindows_config.h"
|
2007-09-25 17:52:19 +00:00
|
|
|
#include "desktopgrid_config.h"
|
2007-10-22 13:34:26 +00:00
|
|
|
#include "maketransparent_config.h"
|
2007-11-13 16:20:52 +00:00
|
|
|
#include "diminactive_config.h"
|
|
|
|
#include "thumbnailaside_config.h"
|
2007-11-12 15:11:00 +00:00
|
|
|
#include "zoom_config.h"
|
2007-09-20 17:48:27 +00:00
|
|
|
|
2007-11-13 17:37:53 +00:00
|
|
|
#ifdef HAVE_OPENGL
|
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"
|
2007-11-13 21:50:00 +00:00
|
|
|
#include "trackmouse_config.h"
|
2007-11-13 17:37:53 +00:00
|
|
|
#endif
|
|
|
|
|
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
|
|
|
|
|
|
|
#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 16:20:52 +00:00
|
|
|
registerPlugin<KWin::ZoomEffectConfig>("zoom");
|
2007-11-22 23:28:34 +00:00
|
|
|
|
|
|
|
#define GL_PLUGINS \
|
|
|
|
registerPlugin<KWin::InvertEffectConfig>("invert"); \
|
|
|
|
registerPlugin<KWin::LookingGlassEffectConfig>("lookingglass"); \
|
|
|
|
registerPlugin<KWin::MouseMarkEffectConfig>("mousemark"); \
|
|
|
|
registerPlugin<KWin::MagnifierEffectConfig>("magnifier"); \
|
|
|
|
registerPlugin<KWin::SharpenEffectConfig>("sharpen"); \
|
|
|
|
registerPlugin<KWin::TrackMouseEffectConfig>("trackmouse"); \
|
|
|
|
|
2007-11-13 16:20:52 +00:00
|
|
|
#ifdef HAVE_OPENGL
|
2007-11-22 23:28:34 +00:00
|
|
|
K_PLUGIN_FACTORY_DEFINITION(EffectFactory,
|
|
|
|
NON_GL_PLUGINS
|
|
|
|
GL_PLUGINS
|
|
|
|
)
|
|
|
|
#else
|
|
|
|
K_PLUGIN_FACTORY_DEFINITION(EffectFactory,
|
|
|
|
NON_GL_PLUGINS
|
2007-11-13 16:20:52 +00:00
|
|
|
)
|
2007-11-22 23:28:34 +00:00
|
|
|
#endif
|
2007-09-25 17:52:19 +00:00
|
|
|
K_EXPORT_PLUGIN(EffectFactory("kwin"))
|