plugins.cpp
00001 /***************************************************************** 00002 KWin - the KDE window manager 00003 This file is part of the KDE project. 00004 00005 Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org> 00006 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org> 00007 00008 You can Freely distribute this program under the GNU General Public 00009 License. See the file "COPYING" for the exact licensing terms. 00010 ******************************************************************/ 00011 00012 #include "plugins.h" 00013 00014 #include <tdeglobal.h> 00015 #include <tdelocale.h> 00016 #include <stdlib.h> 00017 #include <tqpixmap.h> 00018 00019 namespace KWinInternal 00020 { 00021 00022 PluginMgr::PluginMgr() 00023 : KDecorationPlugins( TDEGlobal::config()) 00024 { 00025 defaultPlugin = (TQPixmap::defaultDepth() > 8) ? 00026 "twin3_plastik" : "twin3_quartz"; 00027 loadPlugin( "" ); // load the plugin specified in cfg file 00028 } 00029 00030 void PluginMgr::error( const TQString &error_msg ) 00031 { 00032 tqWarning( "%s", (i18n("TWin: ") + error_msg + 00033 i18n("\nTWin will now exit...")).local8Bit().data() ); 00034 exit(1); 00035 } 00036 00037 bool PluginMgr::provides( Requirement ) 00038 { 00039 return false; 00040 } 00041 00042 } // namespace