summaryrefslogtreecommitdiff
path: root/src/gui/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/Makefile.am1
-rw-r--r--src/gui/dialogs/plugins.c315
-rw-r--r--src/gui/dialogs/plugins.h40
3 files changed, 0 insertions, 356 deletions
diff --git a/src/gui/dialogs/Makefile.am b/src/gui/dialogs/Makefile.am
index 7d3518c..8dd3442 100644
--- a/src/gui/dialogs/Makefile.am
+++ b/src/gui/dialogs/Makefile.am
@@ -23,7 +23,6 @@ libguidialogs_la_SOURCES = \
gotox.h gotox.c \
identity.h identity.c \
loading.h loading.c \
- plugins.h plugins.c \
preferences.h preferences.c \
prefs_fgraph.h prefs_fgraph.c \
prefs_labels.h prefs_labels.c \
diff --git a/src/gui/dialogs/plugins.c b/src/gui/dialogs/plugins.c
deleted file mode 100644
index fa16b8e..0000000
--- a/src/gui/dialogs/plugins.c
+++ /dev/null
@@ -1,315 +0,0 @@
-
-/* Chrysalide - Outil d'analyse de fichiers binaires
- * plugins.c - boîte de dialogue permettant une sélection des greffons
- *
- * Copyright (C) 2015-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 "plugins.h"
-
-
-#include <i18n.h>
-
-
-#include "../../gtkext/easygtk.h"
-
-
-
-
-
-
-
-
-
-
-/******************************************************************************
-* *
-* Paramètres : binary = informations sur le binaire actuellement ouvert. *
-* parent = fenêtre parente à surpasser. *
-* *
-* Description : Construit la fenêtre de sélection des sections. *
-* *
-* Retour : Adresse de la fenêtre mise en place. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *parent)
-{
- GtkWidget *result; /* Fenêtre à renvoyer */
- GObject *ref; /* Espace de référencements */
-
-
-
-
- GtkWidget *vbox1;
- GtkWidget *hbox3;
- GtkWidget *scrolledwindow1;
- GtkWidget *treeview1;
- GtkWidget *vbox2;
- GtkWidget *vbuttonbox1;
- GtkWidget *button7;
- GtkWidget *image3;
- GtkWidget *button8;
- GtkWidget *image4;
- GtkWidget *hseparator1;
- GtkWidget *vbuttonbox2;
- GtkWidget *button9;
- GtkWidget *image5;
- GtkWidget *button10;
- GtkWidget *image6;
- GtkWidget *scrolledwindow2;
- GtkWidget *treeview2;
- GtkWidget *expander1;
- GtkWidget *hbox4;
- GtkWidget *vbox3;
- GtkWidget *label; /* Etiquette d'introduction */
- GtkWidget *label8;
- GtkWidget *label9;
- GtkWidget *label10;
- GtkWidget *frame1;
- GtkWidget *label12;
- GtkWidget *label11;
- GtkWidget *label3;
- GtkWidget *hseparator2;
- GtkWidget *hbuttonbox1;
- GtkWidget *button1;
- GtkWidget *hbox1;
- GtkWidget *image1;
- GtkWidget *label1;
- GtkWidget *button2;
- GtkWidget *hbox2;
- GtkWidget *image2;
- GtkWidget *label2;
-
- result = gtk_window_new(GTK_WINDOW_TOPLEVEL);
- gtk_window_set_title(GTK_WINDOW(result), _("Plugins selection"));
- gtk_widget_set_size_request(result, 600, 400);
- gtk_container_set_border_width(GTK_CONTAINER(result), 8);
- gtk_window_set_default_size(GTK_WINDOW(result), 600, 400);
- gtk_window_set_type_hint(GTK_WINDOW(result), GDK_WINDOW_TYPE_HINT_DIALOG);
-
- gtk_window_set_modal(GTK_WINDOW(result), TRUE);
- gtk_window_set_transient_for(GTK_WINDOW(result), parent);
-
- ref= G_OBJECT(result);
- g_object_set_data(ref, "binary", binary);
-
-
-
-
- vbox1 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8);
- gtk_widget_show(vbox1);
- gtk_container_add(GTK_CONTAINER(result), vbox1);
- gtk_container_set_border_width(GTK_CONTAINER(vbox1), 8);
-
- hbox3 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_widget_show(hbox3);
- gtk_box_pack_start(GTK_BOX(vbox1), hbox3, TRUE, TRUE, 0);
-
- scrolledwindow1 = gtk_scrolled_window_new(NULL, NULL);
- gtk_widget_show(scrolledwindow1);
- gtk_box_pack_start(GTK_BOX(hbox3), scrolledwindow1, TRUE, TRUE, 0);
- gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow1), GTK_SHADOW_IN);
-
- treeview1 = gtk_tree_view_new();
- gtk_widget_show(treeview1);
- gtk_container_add(GTK_CONTAINER(scrolledwindow1), treeview1);
-
- vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8);
- gtk_widget_show(vbox2);
- gtk_box_pack_start(GTK_BOX(hbox3), vbox2, FALSE, FALSE, 0);
-
- vbuttonbox1 = gtk_button_box_new(GTK_ORIENTATION_VERTICAL);
- gtk_widget_show(vbuttonbox1);
- gtk_box_pack_start(GTK_BOX(vbox2), vbuttonbox1, FALSE, FALSE, 0);
- gtk_container_set_border_width(GTK_CONTAINER(vbuttonbox1), 8);
- gtk_button_box_set_layout(GTK_BUTTON_BOX(vbuttonbox1), GTK_BUTTONBOX_END);
- gtk_box_set_spacing(GTK_BOX(vbuttonbox1), 8);
-
- button7 = gtk_button_new();
- gtk_widget_show(button7);
- gtk_container_add(GTK_CONTAINER(vbuttonbox1), button7);
-
- image3 = gtk_image_new_from_icon_name("gtk-add", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show(image3);
- gtk_container_add(GTK_CONTAINER(button7), image3);
-
- button8 = gtk_button_new();
- gtk_widget_show(button8);
- gtk_container_add(GTK_CONTAINER(vbuttonbox1), button8);
-
- image4 = gtk_image_new_from_icon_name("gtk-remove", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show(image4);
- gtk_container_add(GTK_CONTAINER(button8), image4);
-
- hseparator1 = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
- gtk_widget_show(hseparator1);
- gtk_box_pack_start(GTK_BOX(vbox2), hseparator1, FALSE, FALSE, 0);
-
- vbuttonbox2 = gtk_button_box_new(GTK_ORIENTATION_VERTICAL);
- gtk_widget_show(vbuttonbox2);
- gtk_box_pack_start(GTK_BOX(vbox2), vbuttonbox2, FALSE, FALSE, 0);
- gtk_container_set_border_width(GTK_CONTAINER(vbuttonbox2), 8);
- gtk_box_set_spacing(GTK_BOX(vbuttonbox2), 8);
-
- button9 = gtk_button_new();
- gtk_widget_show(button9);
- gtk_container_add(GTK_CONTAINER(vbuttonbox2), button9);
-
- image5 = gtk_image_new_from_icon_name("gtk-go-up", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show(image5);
- gtk_container_add(GTK_CONTAINER(button9), image5);
-
- button10 = gtk_button_new();
- gtk_widget_show(button10);
- gtk_container_add(GTK_CONTAINER(vbuttonbox2), button10);
-
- image6 = gtk_image_new_from_icon_name("gtk-go-down", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show(image6);
- gtk_container_add(GTK_CONTAINER(button10), image6);
-
- scrolledwindow2 = gtk_scrolled_window_new(NULL, NULL);
- gtk_widget_show(scrolledwindow2);
- gtk_box_pack_start(GTK_BOX(hbox3), scrolledwindow2, TRUE, TRUE, 0);
- gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow2), GTK_SHADOW_IN);
-
- treeview2 = gtk_tree_view_new();
- gtk_widget_show(treeview2);
- gtk_container_add(GTK_CONTAINER(scrolledwindow2), treeview2);
-
- expander1 = gtk_expander_new(NULL);
- gtk_widget_show(expander1);
- gtk_box_pack_start(GTK_BOX(vbox1), expander1, FALSE, FALSE, 0);
- gtk_expander_set_expanded(GTK_EXPANDER(expander1), TRUE);
-
- hbox4 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_widget_show(hbox4);
- gtk_container_add(GTK_CONTAINER(expander1), hbox4);
-
- vbox3 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8);
- gtk_widget_show(vbox3);
- gtk_box_pack_start(GTK_BOX(hbox4), vbox3, TRUE, TRUE, 0);
-
- label = qck_create_label(NULL, NULL, _("Author:"));
- gtk_widget_show(label);
- gtk_box_pack_start(GTK_BOX(vbox3), label, FALSE, FALSE, 0);
-
- label8 = gtk_label_new(_("label8"));
- gtk_widget_show(label8);
- gtk_box_pack_start(GTK_BOX(vbox3), label8, FALSE, FALSE, 0);
-
- label = qck_create_label(NULL, NULL, _("Version:"));
- gtk_widget_show(label);
- gtk_box_pack_start(GTK_BOX(vbox3), label, FALSE, FALSE, 0);
-
- label9 = gtk_label_new(_("label9"));
- gtk_widget_show(label9);
- gtk_box_pack_start(GTK_BOX(vbox3), label9, FALSE, FALSE, 0);
-
- label = qck_create_label(NULL, NULL, _("URL:"));
- gtk_widget_show(label);
- gtk_box_pack_start(GTK_BOX(vbox3), label, FALSE, FALSE, 0);
-
- label10 = gtk_label_new(_("label10"));
- gtk_widget_show(label10);
- gtk_box_pack_start(GTK_BOX(vbox3), label10, FALSE, FALSE, 0);
-
- frame1 = gtk_frame_new(NULL);
- gtk_widget_show(frame1);
- gtk_box_pack_start(GTK_BOX(hbox4), frame1, TRUE, TRUE, 0);
- gtk_frame_set_shadow_type(GTK_FRAME(frame1), GTK_SHADOW_NONE);
-
- label12 = gtk_label_new(_("label12"));
- qck_set_alignment(label12, GTK_ALIGN_CENTER, GTK_ALIGN_CENTER);
- qck_set_margins(label12, 0, 0, 12, 0);
- gtk_widget_show(label12);
- gtk_container_add(GTK_CONTAINER(frame1), label12);
-
- label11 = gtk_label_new(_("<b>Action</b>"));
- gtk_widget_show(label11);
- gtk_frame_set_label_widget(GTK_FRAME(frame1), label11);
- gtk_label_set_use_markup(GTK_LABEL(label11), TRUE);
-
- label3 = gtk_label_new(_("<b>Details:</b>"));
- gtk_widget_show(label3);
- gtk_expander_set_label_widget(GTK_EXPANDER(expander1), label3);
- gtk_label_set_use_markup(GTK_LABEL(label3), TRUE);
-
- hseparator2 = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
- gtk_widget_show(hseparator2);
- gtk_box_pack_start(GTK_BOX(vbox1), hseparator2, FALSE, FALSE, 0);
-
- hbuttonbox1 = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
- gtk_widget_show(hbuttonbox1);
- gtk_box_pack_start(GTK_BOX(vbox1), hbuttonbox1, FALSE, FALSE, 0);
- gtk_button_box_set_layout(GTK_BUTTON_BOX(hbuttonbox1), GTK_BUTTONBOX_END);
- gtk_box_set_spacing(GTK_BOX(hbuttonbox1), 8);
-
- button1 = gtk_button_new();
- gtk_widget_show(button1);
- gtk_container_add(GTK_CONTAINER(hbuttonbox1), button1);
-
- hbox1 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);
- qck_set_alignment(hbox1, GTK_ALIGN_CENTER, GTK_ALIGN_CENTER);
- gtk_widget_show(hbox1);
- gtk_container_add(GTK_CONTAINER(button1), hbox1);
-
- image1 = gtk_image_new_from_icon_name("gtk-apply", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show(image1);
- gtk_box_pack_start(GTK_BOX(hbox1), image1, FALSE, FALSE, 0);
-
- label1 = gtk_label_new_with_mnemonic(_("Apply"));
- gtk_widget_show(label1);
- gtk_box_pack_start(GTK_BOX(hbox1), label1, FALSE, FALSE, 0);
-
- button2 = gtk_button_new();
- gtk_widget_show(button2);
- gtk_container_add(GTK_CONTAINER(hbuttonbox1), button2);
-
- hbox2 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);
- qck_set_alignment(hbox2, GTK_ALIGN_CENTER, GTK_ALIGN_CENTER);
- gtk_widget_show(hbox2);
- gtk_container_add(GTK_CONTAINER(button2), hbox2);
-
- image2 = gtk_image_new_from_icon_name("gtk-cancel", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show(image2);
- gtk_box_pack_start(GTK_BOX(hbox2), image2, FALSE, FALSE, 0);
-
- label2 = gtk_label_new_with_mnemonic(_("Cancel"));
- gtk_widget_show(label2);
- gtk_box_pack_start(GTK_BOX(hbox2), label2, FALSE, FALSE, 0);
-
-
-
-
-
-
- return result;
-
-}
-
-
-
-
-
-
-
-
diff --git a/src/gui/dialogs/plugins.h b/src/gui/dialogs/plugins.h
deleted file mode 100644
index b5939b9..0000000
--- a/src/gui/dialogs/plugins.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-/* Chrysalide - Outil d'analyse de fichiers binaires
- * plugins.h - prototypes pour la boîte de dialogue permettant une sélection des greffons
- *
- * Copyright (C) 2015-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/>.
- */
-
-
-#ifndef _GUI_DIALOGS_PLUGINS_H
-#define _GUI_DIALOGS_PLUGINS_H
-
-
-#include <gtk/gtk.h>
-
-
-#include "../../analysis/binary.h"
-
-
-
-/* Construit la fenêtre de sélection des sections. */
-GtkWidget *create_plugins_selection_dialog(GLoadedBinary *, GtkWindow *);
-
-
-
-#endif /* _GUI_DIALOGS_PLUGINS_H */