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>
|
|
|
|
#include <qpixmap.h>
|
2001-02-20 01:20:38 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
namespace KWinInternal
|
|
|
|
{
|
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) ?
|
2003-09-16 19:28:03 +00:00
|
|
|
"kwin3_keramik" : "kwin3_quartz";
|
|
|
|
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 +
|
2003-06-22 23:37:37 +00:00
|
|
|
i18n("\nKWin will now exit...")).local8Bit().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-09-16 19:28:03 +00:00
|
|
|
} // namespace
|