From edac98d26ee29bbdc3e16be8ecec5cbfff80482f Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 7 Mar 2008 00:20:45 +0100 Subject: * Shift doc/faq to doc/faq2 * Add 'doc/faq' with most used commands * -e can be used with -u to specify the path to extract the files * Remove gui directory - GUI source is in src/gui - Incrusted inside the build and install targets (ignores build and install errors) --- gui/DESCR | 53 ----------- gui/Makefile | 11 --- gui/g0xFFFF.glade | 279 ------------------------------------------------------ gui/main.c | 77 --------------- 4 files changed, 420 deletions(-) delete mode 100644 gui/DESCR delete mode 100644 gui/Makefile delete mode 100644 gui/g0xFFFF.glade delete mode 100644 gui/main.c (limited to 'gui') diff --git a/gui/DESCR b/gui/DESCR deleted file mode 100644 index eb446e3..0000000 --- a/gui/DESCR +++ /dev/null @@ -1,53 +0,0 @@ -- preferences - - * choose flasher type. - - by default 0xFFFF is used - - * - -piece [file] - | - +-- radio - | - +-- nbh - -info - | - +-- -i - -reboot - | - +-- ??? - ----------- - -piece [file] - | - +-- xloader - | - +-- secondary - | - +-- kernel - | - +-- initfs - | - +-- rootfs - | - +-- autodetected - -info - | - +-- -i - -usb-host-mode - | - +-- -U [0|1] - -rd-mode - | - +-- -r 0|1 - -reboot - | - +-- -R diff --git a/gui/Makefile b/gui/Makefile deleted file mode 100644 index 7308a14..0000000 --- a/gui/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -OBJ=main.o -BIN=goxf - -CFLAGS=`pkg-config gladeui-1.0 libglade-2.0 gmodule-2.0 --cflags` -LDFLAGS=`pkg-config gladeui-1.0 libglade-2.0 gmodule-2.0 --libs` - -all: ${OBJ} - ${CC} ${LDFLAGS} ${OBJ} -o ${BIN} - -clean: - -rm -f ${BIN} ${OBJ} diff --git a/gui/g0xFFFF.glade b/gui/g0xFFFF.glade deleted file mode 100644 index d6ba2be..0000000 --- a/gui/g0xFFFF.glade +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - 5 - g0xFFFF - 501 - 329 - gtk-connect - - - - True - 3 - - - True - GTK_BUTTONBOX_START - - - True - 0 - n770/n800/n810 -HERMflasher - - - False - False - - - - - - - - False - False - - - - - True - 6 - - - True - False - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - - - True - - - - - - - True - 3 - 2 - - - - - False - - - - - 0 - 0 - 0 - patata - rootfs -initfs -kernel -secondary -xloader - - - False - 1 - - - - - True - - - True - Remove - 0 - - - - - - - True - Add - 0 - - - - - 1 - - - - - False - 2 - - - - - True - USB host mode - 0 - True - - - False - False - 3 - - - - - True - R&D mode - 0 - True - - - False - False - 4 - - - - - True - Reboot - 0 - True - - - False - False - 5 - - - - - False - GTK_PACK_END - 1 - - - - - 3 - 1 - - - - - True - 6 - - - True - True - - - - - True - - - True - gtk-dialog-info - True - 0 - - - - - False - False - - - - - True - gtk-execute - True - 0 - - - - - False - False - 1 - - - - - False - False - GTK_PACK_END - 1 - - - - - False - False - 2 - - - - - - - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - About Glade - False - GTK_WIN_POS_CENTER_ON_PARENT - GDK_WINDOW_TYPE_HINT_DIALOG - False - Glade - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 2 - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 2 - False - False - - - - - 2 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - GTK_BUTTONBOX_END - - - False - GTK_PACK_END - - - - - - diff --git a/gui/main.c b/gui/main.c deleted file mode 100644 index 08f379a..0000000 --- a/gui/main.c +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 0xFFFF - Open Free Fiasco Firmware Flasher - * Copyright (C) 2007 pancake - * - * This program 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. - * - * This program 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, see . - */ - -#include -#include - -#define U(x) printf("%d\n",x); fflush(stdout); - - GladeXML *xml; -int main(int argc, char **argv) -{ - GtkWidget *w; - - gtk_init(&argc, &argv); - - xml = glade_xml_new("g0xFFFF.glade", "main_window", ""); - //xml = glade_xml_new("test.glade", "window1", NULL); - if(!xml) { - g_warning("We could not load the interface!"); - return 1; - } - - glade_xml_signal_autoconnect(xml); - - w = glade_xml_get_widget(xml, "main_window"); - gtk_signal_connect(GTK_OBJECT(w), "destroy", - GTK_SIGNAL_FUNC(gtk_main_quit),NULL); -{ - GtkComboBox *piece = GTK_COMBO_BOX(glade_xml_get_widget(xml, "piece")); - gtk_combo_box_set_active(piece, 0); -} - - gtk_widget_show_all(w); - - gtk_object_unref(GTK_OBJECT(xml)); - - gtk_main(); - return 0; -} -extern void gui_run(); -extern void gui_run() -{ - printf("run\n"); -} - -extern void gui_add(); -extern void gui_add() -{ - GtkTreeView *tree = glade_xml_get_widget(xml, "tree"); - GtkFileChooser *file = GTK_FILE_CHOOSER(glade_xml_get_widget(xml, "file")); - GtkComboBox *piece = GTK_COMBO_BOX(glade_xml_get_widget(xml, "piece")); - - printf("ADD %s\n", gtk_file_chooser_get_filename(file)); - printf("ADD %d\n", gtk_combo_box_get_active(piece)); -} - -extern void gui_information(); -void gui_information() -{ - printf("FUCKMENOT!\n"); - fflush(stdout); -} -- cgit v1.2.3