• 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 <tdetexteditor/plugin.h>
25#include <tqstringlist.h>
26#include <kxmlguiclient.h>
27#include <tqguardedptr.h>
28
29class TDEActionMenu;
30class KDataToolInfo;
31
32namespace KTextEditor
33{
34
35class View;
36
37class KDataToolPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
38{
39 TQ_OBJECT
40
41public:
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
52class KDataToolPluginView : public TQObject, public KXMLGUIClient
53{
54 TQ_OBJECT
55
56public:
57 KDataToolPluginView( KTextEditor::View *view );
58 virtual ~KDataToolPluginView();
59 void setView( KTextEditor::View* ){;}
60private:
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<TDEAction> m_actionList;
66 TQGuardedPtr<TDEActionMenu> m_menu;
67 TDEAction *m_notAvailable;
68protected slots:
69 void aboutToShow();
70 void slotToolActivated( const KDataToolInfo &datatoolinfo, const TQString &string );
71 void slotNotAvailable();
72};
73
74}
75
76#endif
KXMLGUIClient
TDEActionMenu
TDEAction

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
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.