diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/DESCR | 53 | ||||
-rw-r--r-- | gui/Makefile | 11 | ||||
-rw-r--r-- | gui/g0xFFFF.glade | 279 | ||||
-rw-r--r-- | gui/main.c | 77 |
4 files changed, 0 insertions, 420 deletions
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 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> -<!--*- mode: xml -*--> -<glade-interface> - <widget class="GtkWindow" id="main_window"> - <property name="border_width">5</property> - <property name="title" translatable="yes" context="yes">g0xFFFF</property> - <property name="default_width">501</property> - <property name="default_height">329</property> - <property name="icon_name">gtk-connect</property> - <signal name="destroy_event" handler="gtk_main_quit" object="0"/> - <child> - <widget class="GtkVBox" id="vbox1"> - <property name="visible">True</property> - <property name="spacing">3</property> - <child> - <widget class="GtkHButtonBox" id="hbuttonbox2"> - <property name="visible">True</property> - <property name="layout_style">GTK_BUTTONBOX_START</property> - <child> - <widget class="GtkComboBox" id="combobox2"> - <property name="visible">True</property> - <property name="active">0</property> - <property name="items" translatable="yes" context="yes">n770/n800/n810 -HERMflasher</property> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - </packing> - </child> - <child> - <placeholder/> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - </packing> - </child> - <child> - <widget class="GtkHBox" id="hbox1"> - <property name="visible">True</property> - <property name="spacing">6</property> - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> - <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> - <child> - <widget class="GtkTreeView" id="tree"> - <property name="visible">True</property> - </widget> - </child> - </widget> - </child> - <child> - <widget class="GtkVBox" id="vbox2"> - <property name="visible">True</property> - <property name="border_width">3</property> - <property name="spacing">2</property> - <child> - <widget class="GtkFileChooserButton" id="file"> - </widget> - <packing> - <property name="expand">False</property> - </packing> - </child> - <child> - <widget class="GtkComboBox" id="piece"> - <property name="row_span_column">0</property> - <property name="column_span_column">0</property> - <property name="active">0</property> - <property name="tearoff_title">patata</property> - <property name="items" translatable="yes" context="yes">rootfs -initfs -kernel -secondary -xloader</property> - </widget> - <packing> - <property name="expand">False</property> - <property name="position">1</property> - </packing> - </child> - <child> - <widget class="GtkHBox" id="hbox4"> - <property name="visible">True</property> - <child> - <widget class="GtkButton" id="button2"> - <property name="visible">True</property> - <property name="label" context="yes">Remove</property> - <property name="response_id">0</property> - <signal name="clicked" handler="gui_remove"/> - <signal name="activate" handler="gui_remove"/> - </widget> - </child> - <child> - <widget class="GtkButton" id="add"> - <property name="visible">True</property> - <property name="label" context="yes">Add</property> - <property name="response_id">0</property> - <signal name="clicked" handler="gui_add"/> - <signal name="activate" handler="gui_add"/> - </widget> - <packing> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="position">2</property> - </packing> - </child> - <child> - <widget class="GtkCheckButton" id="usbhost"> - <property name="visible">True</property> - <property name="label" translatable="yes" context="yes">USB host mode</property> - <property name="response_id">0</property> - <property name="draw_indicator">True</property> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">3</property> - </packing> - </child> - <child> - <widget class="GtkCheckButton" id="rdmode"> - <property name="visible">True</property> - <property name="label" translatable="yes" context="yes">R&D mode</property> - <property name="response_id">0</property> - <property name="draw_indicator">True</property> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">4</property> - </packing> - </child> - <child> - <widget class="GtkCheckButton" id="reboot"> - <property name="visible">True</property> - <property name="label" translatable="yes" context="yes">Reboot</property> - <property name="response_id">0</property> - <property name="draw_indicator">True</property> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">5</property> - </packing> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="pack_type">GTK_PACK_END</property> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="padding">3</property> - <property name="position">1</property> - </packing> - </child> - <child> - <widget class="GtkHBox" id="hbox3"> - <property name="visible">True</property> - <property name="spacing">6</property> - <child> - <widget class="GtkProgressBar" id="pbar"> - <property name="visible">True</property> - <property name="show_text">True</property> - </widget> - </child> - <child> - <widget class="GtkHBox" id="hbox5"> - <property name="visible">True</property> - <child> - <widget class="GtkButton" id="info"> - <property name="visible">True</property> - <property name="label" translatable="yes" context="yes">gtk-dialog-info</property> - <property name="use_stock">True</property> - <property name="response_id">0</property> - <signal name="clicked" handler="gui_information" object="main_window"/> - <signal name="activate" handler="gui_information" object="main_window"/> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - </packing> - </child> - <child> - <widget class="GtkButton" id="but_commit"> - <property name="visible">True</property> - <property name="label" translatable="yes" context="yes">gtk-execute</property> - <property name="use_stock">True</property> - <property name="response_id">0</property> - <signal name="clicked" handler="gui_run"/> - <signal name="activate" handler="gui_run"/> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="pack_type">GTK_PACK_END</property> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">2</property> - </packing> - </child> - </widget> - </child> - </widget> - <widget class="GtkAboutDialog" id="information"> - <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="border_width">5</property> - <property name="title" translatable="yes" context="yes">About Glade</property> - <property name="resizable">False</property> - <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property> - <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> - <property name="has_separator">False</property> - <property name="program_name">Glade</property> - <child internal-child="vbox"> - <widget class="GtkVBox" id="dialog-vbox3"> - <property name="visible">True</property> - <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="spacing">2</property> - <child> - <widget class="GtkScrolledWindow" id="scrolledwindow2"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> - <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> - <child> - <widget class="GtkTextView" id="textview1"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="pixels_below_lines">2</property> - <property name="editable">False</property> - <property name="cursor_visible">False</property> - </widget> - </child> - </widget> - <packing> - <property name="position">2</property> - </packing> - </child> - <child internal-child="action_area"> - <widget class="GtkHButtonBox" id="dialog-action_area3"> - <property name="visible">True</property> - <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> - <property name="layout_style">GTK_BUTTONBOX_END</property> - </widget> - <packing> - <property name="expand">False</property> - <property name="pack_type">GTK_PACK_END</property> - </packing> - </child> - </widget> - </child> - </widget> -</glade-interface> 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 <pancake@youterm.com> - * - * 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 <http://www.gnu.org/licenses/>. - */ - -#include <glade/glade.h> -#include <gtk/gtk.h> - -#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); -} |