summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkdockitem.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-02-16 22:05:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-02-16 22:05:28 (GMT)
commitd7765c0e6d2685b57625f607325f4a80eb28dbe5 (patch)
treeb590e3b4b28b28584fdade28d17059db1ad2bcac /src/gtkext/gtkdockitem.h
parent14abff97c2ba0940c2dcf2e37eb080ebdb923c6f (diff)
Begun to add a real support of DragAndDropping for panels.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@48 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkdockitem.h')
-rw-r--r--src/gtkext/gtkdockitem.h92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/gtkext/gtkdockitem.h b/src/gtkext/gtkdockitem.h
new file mode 100644
index 0000000..21ca360
--- /dev/null
+++ b/src/gtkext/gtkdockitem.h
@@ -0,0 +1,92 @@
+
+/* OpenIDA - Outil d'analyse de fichiers binaires
+ * gtkdockitem.h - prototypes pour la mémorisation des propriétés d'un panneau dockable
+ *
+ * Copyright (C) 2008 Cyrille Bagard
+ *
+ * This file is part of OpenIDA.
+ *
+ * OpenIDA 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.
+ *
+ * OpenIDA 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 Foobar. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef _GTKEXT_GTKDOCKITEM_H
+#define _GTKEXT_GTKDOCKITEM_H
+
+
+#include <gtk/gtk.h>
+
+
+G_BEGIN_DECLS
+
+
+#define GTK_TYPE_DOCK_ITEM (gtk_dock_item_get_type())
+#define GTK_DOCK_ITEM(obj) GTK_CHECK_CAST(obj, gtk_dock_item_get_type (), GtkDockItem)
+#define GTK_DOCK_ITEM_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, gtk_dock_item_get_type(), GtkDockItemClass)
+#define GTK_IS_DOCK_ITEM(obj) GTK_CHECK_TYPE(obj, gtk_dock_item_get_type())
+
+
+typedef struct _GtkDockItem GtkDockItem;
+typedef struct _GtkDockItemClass GtkDockItemClass;
+
+
+
+
+struct _GtkDockItem
+{
+ GtkObject object; /* Présence obligatoire en 1er */
+
+ gchar *name; /* Nom court pour onglet */
+ GtkWidget *panel; /* Pnneau construit associé */
+
+};
+
+struct _GtkDockItemClass
+{
+ GtkVBoxClass parent_class; /* Présence obligatoire en 1er */
+
+};
+
+
+/* Détermine le type d'un panneau dockable. */
+GtkType gtk_dock_item_get_type(void);
+
+/* Crée une nouvelle mémorisation de panneau dockable. */
+GtkDockItem *gtk_dock_item_new(const gchar *, GtkWidget *);
+
+/* Change le nom du panneau dockable pour son onglet. */
+void gtk_dock_item_set_name(GtkDockItem *, const gchar *);
+
+/* Fournit le nom du panneau dockable pour son onglet. */
+const gchar *gtk_dock_item_get_name(GtkDockItem *);
+
+/* Change la description du panneau dockable pour son titre. */
+void gtk_dock_item_set_desc(GtkDockItem *, const gchar *);
+
+/* Fournit la description du panneau dockable pour son titre. */
+const gchar *gtk_dock_item_get_desc(GtkDockItem *);
+
+/* Change le panneau dockable associé à l'élément. */
+void gtk_dock_item_set_panel(GtkDockItem *, GtkWidget *);
+
+/* Fournit le panneau dockable associé à l'élément. */
+GtkWidget *gtk_dock_item_get_panel(GtkDockItem *);
+
+
+
+G_END_DECLS
+
+
+
+#endif /* _GTKEXT_GTKDOCKITEM_H */