21 #ifndef _KATE_KDATATOOL_
22 #define _KATE_KDATATOOL_
24 #include <tdetexteditor/plugin.h>
25 #include <tqstringlist.h>
26 #include <kxmlguiclient.h>
27 #include <tqguardedptr.h>
37 class KDataToolPlugin :
public KTextEditor::Plugin,
public KTextEditor::PluginViewInterface
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);
48 TQPtrList<class KDataToolPluginView> m_views;
52 class KDataToolPluginView :
public TQObject,
public KXMLGUIClient
57 KDataToolPluginView( KTextEditor::View *view );
58 virtual ~KDataToolPluginView();
59 void setView( KTextEditor::View* ){;}
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;
70 void slotToolActivated(
const KDataToolInfo &datatoolinfo,
const TQString &
string );
71 void slotNotAvailable();