• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kate

kate_kdatatool.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2002 Joseph Wenninger <jowenn@jowenn.at> and Daniel Naber <daniel.naber@t-online.de>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017  */
00018 
00019 #ifndef _KATE_KDATATOOL_
00020 #define _KATE_KDATATOOL_
00021 
00022 #include <ktexteditor/plugin.h>
00023 #include <QtCore/QVariantList>
00024 #include <kxmlguiclient.h>
00025 #include <QtCore/QPointer>
00026 
00027 class KActionMenu;
00028 class KDataToolInfo;
00029 
00030 namespace KTextEditor
00031 {
00032 
00033 class View;
00034 
00035 class KDataToolPlugin : public KTextEditor::Plugin
00036 {
00037     Q_OBJECT
00038 
00039 public:
00040     explicit KDataToolPlugin( QObject *parent = 0, const QVariantList &args = QVariantList() );
00041     virtual ~KDataToolPlugin();
00042     void addView (KTextEditor::View *view);
00043     void removeView (KTextEditor::View *view);
00044 
00045   private:
00046     QList<class KDataToolPluginView*> m_views;
00047 };
00048 
00049 
00050 class KDataToolPluginView : public QObject, public KXMLGUIClient
00051 {
00052     Q_OBJECT
00053 
00054 public:
00055     KDataToolPluginView( KTextEditor::View *view );
00056     virtual ~KDataToolPluginView();
00057     void setView( KTextEditor::View* ){;}
00058 private:
00059     View *m_view;
00060     bool m_singleWord;
00061     int m_singleWord_line, m_singleWord_start, m_singleWord_end;
00062     QString m_wordUnderCursor;
00063     QList<QAction*> m_actionList;
00064     QPointer<KActionMenu> m_menu;
00065     QAction *m_notAvailable;
00066 protected Q_SLOTS:
00067     void aboutToShow();
00068     void slotToolActivated( const KDataToolInfo &datatoolinfo, const QString &string );
00069     void slotNotAvailable();
00070 };
00071 
00072 }
00073 
00074 #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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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