[latexila/wip/templates-revamp] Templates revamp (wip)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/templates-revamp] Templates revamp (wip)
- Date: Wed, 8 Apr 2015 16:06:41 +0000 (UTC)
commit ec1270ebbc21c6b2e4d0d7393b277a00313419ea
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Apr 8 17:41:00 2015 +0200
Templates revamp (wip)
src/liblatexila/Makefile.am | 2 +
src/liblatexila/latexila-templates.c | 79 ++++++++++++++++++++++++++++++++++
src/liblatexila/latexila-templates.h | 34 ++++++++++++++
3 files changed, 115 insertions(+), 0 deletions(-)
---
diff --git a/src/liblatexila/Makefile.am b/src/liblatexila/Makefile.am
index 7bd41ab..adb4c05 100644
--- a/src/liblatexila/Makefile.am
+++ b/src/liblatexila/Makefile.am
@@ -23,6 +23,7 @@ liblatexila_headers = \
latexila-post-processor-latex.h \
latexila-post-processor-latexmk.h \
latexila-synctex.h \
+ latexila-templates.h \
latexila-types.h \
latexila-utils.h
@@ -38,6 +39,7 @@ liblatexila_sources = \
latexila-post-processor-latex.c \
latexila-post-processor-latexmk.c \
latexila-synctex.c \
+ latexila-templates.c \
latexila-utils.c
liblatexila_built_sources = \
diff --git a/src/liblatexila/latexila-templates.c b/src/liblatexila/latexila-templates.c
new file mode 100644
index 0000000..f4b1d6a
--- /dev/null
+++ b/src/liblatexila/latexila-templates.c
@@ -0,0 +1,79 @@
+/*
+ * This file is part of LaTeXila.
+ *
+ * Copyright (C) 2015 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * LaTeXila 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.
+ *
+ * LaTeXila 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 LaTeXila. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "latexila-templates.h"
+
+typedef struct _LatexilaTemplatesPrivate LatexilaTemplatesPrivate;
+
+struct _LatexilaTemplates
+{
+ GObject parent;
+};
+
+struct _LatexilaTemplatesPrivate
+{
+ gint something;
+};
+
+#define GET_PRIV(self) (latexila_templates_get_instance_private (self))
+
+G_DEFINE_TYPE_WITH_PRIVATE (LatexilaTemplates, latexila_templates, G_TYPE_OBJECT)
+
+#if 0
+static void
+latexila_templates_dispose (GObject *object)
+{
+
+ G_OBJECT_CLASS (latexila_templates_parent_class)->dispose (object);
+}
+
+static void
+latexila_templates_finalize (GObject *object)
+{
+
+ G_OBJECT_CLASS (latexila_templates_parent_class)->finalize (object);
+}
+#endif
+
+static void
+latexila_templates_class_init (LatexilaTemplatesClass *klass)
+{
+#if 0
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->dispose = latexila_templates_dispose;
+ object_class->finalize = latexila_templates_finalize;
+#endif
+}
+
+static void
+latexila_templates_init (LatexilaTemplates *self)
+{
+}
+
+LatexilaTemplates *
+latexila_templates_get_instance (void)
+{
+ static LatexilaTemplates *instance = NULL;
+
+ if (instance == NULL)
+ instance = g_object_new (LATEXILA_TYPE_TEMPLATES, NULL);
+
+ return instance;
+}
diff --git a/src/liblatexila/latexila-templates.h b/src/liblatexila/latexila-templates.h
new file mode 100644
index 0000000..52c4f10
--- /dev/null
+++ b/src/liblatexila/latexila-templates.h
@@ -0,0 +1,34 @@
+/*
+ * This file is part of LaTeXila.
+ *
+ * Copyright (C) 2015 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * LaTeXila 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.
+ *
+ * LaTeXila 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 LaTeXila. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __LATEXILA_TEMPLATES_H__
+#define __LATEXILA_TEMPLATES_H__
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define LATEXILA_TYPE_TEMPLATES latexila_templates_get_type ()
+G_DECLARE_FINAL_TYPE (LatexilaTemplates, latexila_templates, LATEXILA, TEMPLATES, GObject)
+
+LatexilaTemplates * latexila_templates_get_instance (void);
+
+G_END_DECLS
+
+#endif /* __LATEXILA_TEMPLATES_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]