texttoolspart.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2002 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _TEXTTOOLSPART_H_ 00013 #define _TEXTTOOLSPART_H_ 00014 00015 #include <qguardedptr.h> 00016 #include <kparts/part.h> 00017 #include "kdevplugin.h" 00018 00019 class TextToolsWidget; 00020 00021 00022 class TextToolsPart : public KDevPlugin 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 TextToolsPart( QObject *parent, const char *name, const QStringList & ); 00028 ~TextToolsPart(); 00029 00030 private slots: 00031 void activePartChanged(KParts::Part *part); 00032 00033 private: 00034 void createWidget(); 00035 00036 QGuardedPtr<TextToolsWidget> m_widget; 00037 }; 00038 00039 #endif