summaryrefslogtreecommitdiffstats
path: root/parts/snippet/snippet_part.h
blob: 98c3b2521260dff3d60d67ac92ce83908319316e (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
/*
 *  File : snippet_part.h
 *
 *  Author: Robert Gruber <[email protected]>
 *
 *  Copyright: See COPYING file that comes with this distribution
 */


#ifndef __KDEVPART_SNIPPET_H__
#define __KDEVPART_SNIPPET_H__


#include <qguardedptr.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(QObject *parent, const char *name, const QStringList &);
  ~SnippetPart();
  KAboutData * aboutData();
    QStringList getAllLanguages();
    QStringList getProjectLanguages();

private:
  void setupActions();

  QGuardedPtr<SnippetWidget> m_widget;

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


#endif