diff options
Diffstat (limited to 'src/gui/panels/welcome.c')
-rw-r--r-- | src/gui/panels/welcome.c | 173 |
1 files changed, 0 insertions, 173 deletions
diff --git a/src/gui/panels/welcome.c b/src/gui/panels/welcome.c deleted file mode 100644 index fa55fd7..0000000 --- a/src/gui/panels/welcome.c +++ /dev/null @@ -1,173 +0,0 @@ - -/* Chrysalide - Outil d'analyse de fichiers binaires - * welcome.c - panneau d'affichage d'accueil - * - * Copyright (C) 2012-2014 Cyrille Bagard - * - * This file is part of Chrysalide. - * - * 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 this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - - -#include "welcome.h" - - -#include <string.h> -#include <gtk/gtk.h> - - -#include "panel-int.h" -#include "../../gtkext/easygtk.h" -#include "../../gtkext/support.h" - - - -/* -------------------------- PARTIE PRINCIPALE DU PANNEAU -------------------------- */ - - -/* Panneau d'accueil (instance) */ -struct _GWelcomePanel -{ - GPanelItem parent; /* A laisser en premier */ - -}; - - -/* Panneau d'accueil (classe) */ -struct _GWelcomePanelClass -{ - GPanelItemClass parent; /* A laisser en premier */ - -}; - - -/* Initialise la classe des panneaux d'accueil. */ -static void g_welcome_panel_class_init(GWelcomePanelClass *); - -/* Initialise une instance de panneau d'accueil. */ -static void g_welcome_panel_init(GWelcomePanel *); - - - -/* ---------------------------------------------------------------------------------- */ -/* PARTIE PRINCIPALE DU PANNEAU */ -/* ---------------------------------------------------------------------------------- */ - - -/* Indique le type définit pour un panneau d'accueil. */ -G_DEFINE_TYPE(GWelcomePanel, g_welcome_panel, G_TYPE_PANEL_ITEM); - - -/****************************************************************************** -* * -* Paramètres : klass = classe à initialiser. * -* * -* Description : Initialise la classe des panneaux d'accueil. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -static void g_welcome_panel_class_init(GWelcomePanelClass *klass) -{ - -} - - -/****************************************************************************** -* * -* Paramètres : panel = instance à initialiser. * -* * -* Description : Initialise une instance de panneau d'accueil. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -static void g_welcome_panel_init(GWelcomePanel *panel) -{ - GtkWidget *align; /* Alignement centré */ - gchar *filename; /* Chemin d'accès au fichier */ - GtkWidget *image; /* Image chargée */ - GEditorItem *base; /* Version basique d'instance */ - - align = gtk_alignment_new(0.5f, 0.5f, 0.0f, 0.0f); - gtk_widget_show(align); - - filename = find_pixmap_file("welcome.png"); - image = qck_create_image(NULL, NULL, filename); - gtk_container_add(GTK_CONTAINER(align), image); - - base = G_EDITOR_ITEM(panel); - base->widget = align; - -} - - -/****************************************************************************** -* * -* Paramètres : ref = espace de référencement global. * -* * -* Description : Crée un panneau d'accueil. * -* * -* Retour : Adresse de la structure mise en place. * -* * -* Remarques : - * -* * -******************************************************************************/ - -GEditorItem *g_welcome_panel_new(GObject *ref) -{ - GEditorItem *result; /* Structure à retourner */ - - result = g_object_new(G_TYPE_WELCOME_PANEL, NULL); - - g_panel_item_init_ext(G_PANEL_ITEM(result), ref, PANEL_WELCOME_ID, - _("Welcome"), G_EDITOR_ITEM(result)->widget, "M"); - - return result; - -} - - -/****************************************************************************** -* * -* Paramètres : ref = espace de référencement global. * -* * -* Description : Construit et intègre un panneau d'accueil. * -* * -* Retour : Adresse du panneau mis en place. * -* * -* Remarques : - * -* * -******************************************************************************/ - -GPanelItem *create_welcome_panel(GObject *ref) -{ - GEditorItem *result; /* Elément réactif à renvoyer */ - - result = g_welcome_panel_new(ref); - - /* Enregistre correctement le tout */ - register_editor_item(result); - - return G_PANEL_ITEM(result); - -} |