summaryrefslogtreecommitdiffstats
path: root/plugins/sigen_canvas_standard/SigenCanvases.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-04-09 16:03:28 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-04-09 16:03:28 -0400
commitcb839e58e268c125fd3e6dd704370b4d0bde3cf8 (patch)
tree83bf15737450bf2c5a00ae392092d77c347321db /plugins/sigen_canvas_standard/SigenCanvases.h
parentce9e1a24c5ae67abbee16d02a43e42903ad644af (diff)
downloadsigen-cb839e58e268c125fd3e6dd704370b4d0bde3cf8.tar.gz
sigen-cb839e58e268c125fd3e6dd704370b4d0bde3cf8.tar.xz
sigen-cb839e58e268c125fd3e6dd704370b4d0bde3cf8.zip
Move the plugins out of sigencore
Diffstat (limited to 'plugins/sigen_canvas_standard/SigenCanvases.h')
-rw-r--r--plugins/sigen_canvas_standard/SigenCanvases.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/sigen_canvas_standard/SigenCanvases.h b/plugins/sigen_canvas_standard/SigenCanvases.h
new file mode 100644
index 00000000..6e0eaf22
--- /dev/null
+++ b/plugins/sigen_canvas_standard/SigenCanvases.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2009 Ben Boeckel <MathStuf@gmail.com>
+ *
+ * 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef SIGENCANVASES_SIGENCANVASES
+#define SIGENCANVASES_SIGENCANVASES
+
+// Sigencore plugin includes
+#include <sigencore/plugins/CanvasPlugin.h>
+
+class SigenCanvases : public Sigencore::Plugins::CanvasPlugin
+{
+ Q_OBJECT
+
+ public:
+ SigenCanvases(QObject* parent, const QVariantList& args);
+ ~SigenCanvases();
+
+ QStringList classList() const;
+ QString description(const QString& name) const;
+ QIcon icon(const QString& name);
+ protected:
+ Sigencore::Canvas* createCanvas(const QString& name, Sigscript::GameWrapper* game, Sigscript::Config* parent);
+ protected slots:
+ void cleanupCanvas(Sigencore::Canvas* canvas);
+};
+
+#endif