summaryrefslogtreecommitdiff
path: root/src/glibext/glinecursor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-11 14:18:06 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-11 14:18:06 (GMT)
commit4299c1d780a37ad242948fabab8675d74952c5f9 (patch)
treec8e591572d1b5958da06cbf1a5e4b3907bc3e0fc /src/glibext/glinecursor.c
parent7c2129872cecdc185843ea0af81d0858ed8e7b90 (diff)
Restored a minimal graph view system.
Diffstat (limited to 'src/glibext/glinecursor.c')
-rw-r--r--src/glibext/glinecursor.c126
1 files changed, 126 insertions, 0 deletions
diff --git a/src/glibext/glinecursor.c b/src/glibext/glinecursor.c
new file mode 100644
index 0000000..8ad24bd
--- /dev/null
+++ b/src/glibext/glinecursor.c
@@ -0,0 +1,126 @@
+
+/* Chrysalide - Outil d'analyse de fichiers binaires
+ * glinecursor.c - suivi de positions dans des panneaux de chargement
+ *
+ * Copyright (C) 2018 Cyrille Bagard
+ *
+ * This file is part of Chrysalide.
+ *
+ * Chrysalide 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.
+ *
+ * Chrysalide 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 Chrysalide. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#include "glinecursor.h"
+
+
+#include "glinecursor-int.h"
+
+
+
+/* Procède à l'initialisation d'une classe de suivi de position. */
+static void g_line_cursor_class_init(GLineCursorClass *);
+
+/* Procède à l'initialisation d'un suivi de positions. */
+static void g_line_cursor_init(GLineCursor *);
+
+/* Supprime toutes les références externes. */
+static void g_line_cursor_dispose(GLineCursor *);
+
+/* Procède à la libération totale de la mémoire. */
+static void g_line_cursor_finalize(GLineCursor *);
+
+
+
+/* Détermine le type du gestionnaire de largeurs associées aux lignes. */
+G_DEFINE_TYPE(GLineCursor, g_line_cursor, G_TYPE_OBJECT);
+
+
+/******************************************************************************
+* *
+* Paramètres : class = classe de composant GTK à initialiser. *
+* *
+* Description : Procède à l'initialisation d'une classe de suivi de position.*
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static void g_line_cursor_class_init(GLineCursorClass *class)
+{
+ GObjectClass *object; /* Autre version de la classe */
+
+ object = G_OBJECT_CLASS(class);
+
+ object->dispose = (GObjectFinalizeFunc/* ! */)g_line_cursor_dispose;
+ object->finalize = (GObjectFinalizeFunc)g_line_cursor_finalize;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : cursor = composant GLib à initialiser. *
+* *
+* Description : Procède à l'initialisation d'un suivi de positions. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static void g_line_cursor_init(GLineCursor *cursor)
+{
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : cursor = instance d'objet GLib à traiter. *
+* *
+* Description : Supprime toutes les références externes. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static void g_line_cursor_dispose(GLineCursor *cursor)
+{
+ G_OBJECT_CLASS(g_line_cursor_parent_class)->dispose(G_OBJECT(cursor));
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : cursor = instance d'objet GLib à traiter. *
+* *
+* Description : Procède à la libération totale de la mémoire. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static void g_line_cursor_finalize(GLineCursor *cursor)
+{
+ G_OBJECT_CLASS(g_line_cursor_parent_class)->finalize(G_OBJECT(cursor));
+
+}