summaryrefslogtreecommitdiffstats
path: root/parts/snippet/snippet_part.h
blob: 90052c2eded901a0f62185a60ea2b5f877278617 (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
/*
 *  File : snippet_part.h
 *
 *  Author: Robert Gruber <rgruber@users.sourceforge.net>
 *
 *  Copyright: See COPYING file that comes with this distribution
 */


#ifndef __KDEVPART_SNIPPET_H__
#define __KDEVPART_SNIPPET_H__


#include <tqguardedptr.h>
#include <kdevplugin.h>


class SnippetWidget;
class TDEAboutData;
class KDialogBase;

/*
This is the KDevPlugin for the CodeSnippet feature
For more info read the README.dox file
@author Robert Gruber
*/
class SnippetPart : public KDevPlugin
{
  TQ_OBJECT
  

public:

  SnippetPart(TQObject *parent, const char *name, const TQStringList &);
  ~SnippetPart();
  TDEAboutData * aboutData();
    TQStringList getAllLanguages();
    TQStringList getProjectLanguages();

private:
  void setupActions();

  TQGuardedPtr<SnippetWidget> m_widget;

public slots:
  void slotConfigWidget( KDialogBase *dlg );
  void slotShowView();
};


#endif