summaryrefslogtreecommitdiffstats
path: root/parts/snippet/snippet_part.h
blob: f9266e7516083f9a0024df42e1343554d06bce21 (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 KAboutData;
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
{
  Q_OBJECT
  

public:

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

private:
  void setupActions();

  TQGuardedPtr<SnippetWidget> m_widget;

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


#endif