summaryrefslogtreecommitdiffstats
path: root/kttsd/app-plugins/kate/katekttsd.h
blob: e137aee8527d504c12ba248a02c88b5f2eb5b38b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/***************************************************************************
  A KTextEditor (Kate Part) plugin for speaking text.

  Copyright:
  (C) 2003-2004 by Olaf Schmidt <ojschmidt@kde.org>
  (C) 2005 by Gary Cramblitt <garycramblitt@comcast.net>

  Original Author: Olaf Schmidt <ojschmidt@kde.org>
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef _KATEKTTSD_H_
#define _KATEKTTSD_H_

#include <tdetexteditor/plugin.h>
#include <tdetexteditor/view.h>
#include <kxmlguiclient.h>
#include <tqobject.h>

class KateKttsdPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
{
    Q_OBJECT
  

    public:
        KateKttsdPlugin( TQObject *parent = 0,
                         const char* name = 0,
                         const TQStringList &args = TQStringList() );
        virtual ~KateKttsdPlugin();

        void addView (KTextEditor::View *view);
        void removeView (KTextEditor::View *view);

    private:
        TQPtrList<class KateKttsdPluginView> m_views;
};

class KateKttsdPluginView : public TQObject, public KXMLGUIClient
{
    Q_OBJECT
  

    public:
        KateKttsdPluginView( KTextEditor::View *view, const char *name=0 );
        ~KateKttsdPluginView() {};

    public slots:
        void slotReadOut();
};

#endif      // _KATEKTTSD_H_