| # kate Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kate_kdatatool.h

    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., 59 Temple Place - Suite 330,
    00016    Boston, MA 02111-1307, USA.
    00017 */
    00018
    00019 // $Id: kate_kdatatool.h 269566 2003-11-25 20:31:43Z cullmann $
    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

This file is part of the documentation for kate Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:36:29 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003