summaryrefslogtreecommitdiffstats
path: root/parts/snippet/snippet_part.h
diff options
context:
space:
mode:
Diffstat (limited to 'parts/snippet/snippet_part.h')
-rw-r--r--parts/snippet/snippet_part.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/parts/snippet/snippet_part.h b/parts/snippet/snippet_part.h
new file mode 100644
index 00000000..98c3b252
--- /dev/null
+++ b/parts/snippet/snippet_part.h
@@ -0,0 +1,50 @@
+/*
+ * 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 <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