• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • 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 // $Id: kate_kdatatool.h 465272 2005-09-29 09:47:40Z mueller $
00020 
00021 #ifndef _KATE_KDATATOOL_
00022 #define _KATE_KDATATOOL_
00023 
00024 #include <ktexteditor/plugin.h>
00025 #include <qstringlist.h>
00026 #include <kxmlguiclient.h>
00027 #include <qguardedptr.h>
00028 
00029 class KActionMenu;
00030 class KDataToolInfo;
00031 
00032 namespace KTextEditor
00033 {
00034 
00035 class View;
00036 
00037 class KDataToolPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
00038 {
00039     Q_OBJECT
00040 
00041 public:
00042     KDataToolPlugin( QObject *parent = 0, const char* name = 0, const QStringList &args = QStringList() );
00043     virtual ~KDataToolPlugin();
00044     void addView (KTextEditor::View *view);
00045     void removeView (KTextEditor::View *view);
00046 
00047   private:
00048     QPtrList<class KDataToolPluginView> m_views;
00049 };
00050 
00051 
00052 class KDataToolPluginView : public QObject, public KXMLGUIClient
00053 {
00054     Q_OBJECT
00055 
00056 public:
00057     KDataToolPluginView( KTextEditor::View *view );
00058     virtual ~KDataToolPluginView();
00059     void setView( KTextEditor::View* ){;}
00060 private:
00061     View *m_view;
00062     bool m_singleWord;
00063     int m_singleWord_line, m_singleWord_start, m_singleWord_end;
00064     QString m_wordUnderCursor;
00065     QPtrList<KAction> m_actionList;
00066     QGuardedPtr<KActionMenu> m_menu;
00067     KAction *m_notAvailable;
00068 protected slots:
00069     void aboutToShow();
00070     void slotToolActivated( const KDataToolInfo &datatoolinfo, const QString &string );
00071     void slotNotAvailable();
00072 };
00073 
00074 }
00075 
00076 #endif

Kate

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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