2000-03-24 22:23:02 +00:00
|
|
|
/*****************************************************************
|
2003-09-16 19:28:03 +00:00
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
2000-07-29 01:55:29 +00:00
|
|
|
|
2000-03-24 22:23:02 +00:00
|
|
|
Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org>
|
2003-09-16 19:28:03 +00:00
|
|
|
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
|
2000-04-20 17:37:33 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
1999-12-24 01:36:47 +00:00
|
|
|
|
|
|
|
#include "plugins.h"
|
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
#include <kglobal.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
#include <stdlib.h>
|
2006-05-13 16:33:18 +00:00
|
|
|
#include <QPixmap>
|
2001-02-20 01:20:38 +00:00
|
|
|
|
2007-04-05 12:07:35 +00:00
|
|
|
namespace KWin
|
2003-09-16 19:28:03 +00:00
|
|
|
{
|
1999-12-24 01:36:47 +00:00
|
|
|
|
|
|
|
PluginMgr::PluginMgr()
|
2003-09-16 19:28:03 +00:00
|
|
|
: KDecorationPlugins( KGlobal::config())
|
|
|
|
{
|
2002-10-28 22:54:25 +00:00
|
|
|
defaultPlugin = (QPixmap::defaultDepth() > 8) ?
|
2004-09-17 21:09:28 +00:00
|
|
|
"kwin3_plastik" : "kwin3_quartz";
|
2003-09-16 19:28:03 +00:00
|
|
|
loadPlugin( "" ); // load the plugin specified in cfg file
|
2001-06-07 11:35:06 +00:00
|
|
|
}
|
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
void PluginMgr::error( const QString &error_msg )
|
|
|
|
{
|
2003-01-12 13:00:03 +00:00
|
|
|
qWarning( "%s", (i18n("KWin: ") + error_msg +
|
2005-09-24 12:26:22 +00:00
|
|
|
i18n("\nKWin will now exit...")).toLocal8Bit().data() );
|
2001-06-07 11:35:06 +00:00
|
|
|
exit(1);
|
2003-09-16 19:28:03 +00:00
|
|
|
}
|
1999-12-24 01:36:47 +00:00
|
|
|
|
2003-11-24 14:22:04 +00:00
|
|
|
bool PluginMgr::provides( Requirement )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
} // namespace
|