• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • plugins
  • kdatatool
kate_kdatatool.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002 Joseph Wenninger <jowenn@jowenn.at> and Daniel Naber <daniel.naber@t-online.de>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 // $Id$
20 
21 #ifndef _KATE_KDATATOOL_
22 #define _KATE_KDATATOOL_
23 
24 #include <ktexteditor/plugin.h>
25 #include <tqstringlist.h>
26 #include <kxmlguiclient.h>
27 #include <tqguardedptr.h>
28 
29 class KActionMenu;
30 class KDataToolInfo;
31 
32 namespace KTextEditor
33 {
34 
35 class View;
36 
37 class KDataToolPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
38 {
39  Q_OBJECT
40 
41 public:
42  KDataToolPlugin( TQObject *parent = 0, const char* name = 0, const TQStringList &args = TQStringList() );
43  virtual ~KDataToolPlugin();
44  void addView (KTextEditor::View *view);
45  void removeView (KTextEditor::View *view);
46 
47  private:
48  TQPtrList<class KDataToolPluginView> m_views;
49 };
50 
51 
52 class KDataToolPluginView : public TQObject, public KXMLGUIClient
53 {
54  Q_OBJECT
55 
56 public:
57  KDataToolPluginView( KTextEditor::View *view );
58  virtual ~KDataToolPluginView();
59  void setView( KTextEditor::View* ){;}
60 private:
61  View *m_view;
62  bool m_singleWord;
63  int m_singleWord_line, m_singleWord_start, m_singleWord_end;
64  TQString m_wordUnderCursor;
65  TQPtrList<KAction> m_actionList;
66  TQGuardedPtr<KActionMenu> m_menu;
67  KAction *m_notAvailable;
68 protected slots:
69  void aboutToShow();
70  void slotToolActivated( const KDataToolInfo &datatoolinfo, const TQString &string );
71  void slotNotAvailable();
72 };
73 
74 }
75 
76 #endif
KActionMenu
KAction
KXMLGUIClient

kate

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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kate by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |