• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Kate

iconinserterplugin.h

Go to the documentation of this file.
00001 /****************************************************************************
00002  *   This file is part of the KTextEditor-Icon-Inserter-Plugin              *
00003  *   Copyright 2009-2010 Jonathan Schmidt-Dominé <devel@the-user.org>       *
00004  *                                                                          *
00005  *   This program is free software; you can redistribute it and/or modify   *
00006  *   it under the terms of the GNU Library General Public License version   *
00007  *   3, or (at your option) any later version, as published by the Free     *
00008  *   Software Foundation.                                                   *
00009  *                                                                          *
00010  *   This library is distributed in the hope that it will be useful, but    *
00011  *   WITHOUT ANY WARRANTY; without even the implied warranty of             *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU      *
00013  *   Library General Public License for more details.                       *
00014  *                                                                          *
00015  *   You should have received a copy of the GNU Library General Public      *
00016  *   License along with the kdelibs library; see the file COPYING.LIB. If   *
00017  *   not, write to the Free Software Foundation, Inc., 51 Franklin Street,  *
00018  *   Fifth Floor, Boston, MA 02110-1301, USA. or see                        *
00019  *   <http://www.gnu.org/licenses/>.                                        *
00020  ****************************************************************************/
00021 
00022 #ifndef KDEVICONINSERTERPLUGIN_H
00023 #define KDEVICONINSERTERPLUGIN_H
00024 
00025 #include <ktexteditor/plugin.h>
00026 
00027 #include <kpluginfactory.h>
00028 
00029 #include <QVariantList>
00030 
00031 #include <kaction.h>
00032 #include <kxmlguiclient.h>
00033 
00034 using namespace KTextEditor;
00035 
00036 class IconInserterPlugin;
00037 
00038 class IconInserterPluginView: public QObject, public KXMLGUIClient
00039 {
00040     Q_OBJECT
00041     public:
00042         IconInserterPluginView(IconInserterPlugin *plugin, KTextEditor::View *view);
00043         virtual ~IconInserterPluginView();
00044     private slots:
00045         void insertIcon();
00046     private:
00047         QPointer<KTextEditor::View> m_view;
00048 };
00049 
00050 class IconInserterPlugin: public Plugin
00051 {
00052     Q_OBJECT
00053     public:
00054         IconInserterPlugin (QObject *parent, const QVariantList & = QVariantList());
00055         ~IconInserterPlugin();
00056         void addView (View *view);
00057         void removeView(View *view);
00058         virtual void readConfig (KConfig*) {}
00059         virtual void writeConfig (KConfig*) {}
00060     private:
00061     QMap<KTextEditor::View*,IconInserterPluginView*> m_views;
00062 };
00063 
00064 K_PLUGIN_FACTORY_DECLARATION(IconInserterPluginFactory)
00065 
00066 #endif

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal