/* OpenIDA - Outil d'analyse de fichiers binaires * gtkdockitem.h - prototypes pour la mémorisation des propriétés d'un panneau dockable * * Copyright (C) 2009 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 . */ #ifndef _GTKEXT_GTKDOCKITEM_H #define _GTKEXT_GTKDOCKITEM_H #include G_BEGIN_DECLS #define G_TYPE_DOCK_ITEM g_dock_item_get_type() #define G_DOCK_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_dock_item_get_type(), GDockItem)) #define G_IS_DOCK_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_dock_item_get_type())) #define G_DOCK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_DOCK_ITEM, GDockItemClass)) #define G_IS_DOCK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_DOCK_ITEM)) #define G_DOCK_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_DOCK_ITEM, GDockItemClass)) typedef struct _GDockItem GDockItem; typedef struct _GDockItemClass GDockItemClass; struct _GDockItem { GObject parent; /* A laisser en premier */ gchar *name; /* Nom court pour titre */ gchar *desc; /* Nom long pour onglet */ GtkWidget *panel; /* Pnneau construit associé */ }; struct _GDockItemClass { GObjectClass parent; /* A laisser en premier */ /* Signaux */ void (* content_changed) (GDockItem *, GtkWidget *, GtkWidget *); }; /* Détermine le type d'un panneau dockable. */ GtkType g_dock_item_get_type(void); /* Crée une nouvelle mémorisation de panneau dockable. */ GDockItem *g_dock_item_new(const gchar *, GtkWidget *); /* Change le nom du panneau dockable pour son onglet. */ void g_dock_item_set_name(GDockItem *, const gchar *); /* Fournit le nom du panneau dockable pour son onglet. */ const gchar *g_dock_item_get_name(GDockItem *); /* Change la description du panneau dockable pour son titre. */ void g_dock_item_set_desc(GDockItem *, const gchar *); /* Fournit la description du panneau dockable pour son titre. */ const gchar *g_dock_item_get_desc(GDockItem *); /* Change le panneau dockable associé à l'élément. */ void g_dock_item_set_panel(GDockItem *, GtkWidget *); /* Fournit le panneau dockable associé à l'élément. */ GtkWidget *g_dock_item_get_panel(GDockItem *); G_END_DECLS #endif /* _GTKEXT_GTKDOCKITEM_H */