From fbd5fbf5d6e30f527703c027ad3c9e0804b14efd Mon Sep 17 00:00:00 2001 From: Harishankar Date: Thu, 20 May 2010 12:26:24 +0530 Subject: [PATCH 1/1] Initial commit for BiaGen project --- biagen | 41 +++ main_window.xml | 769 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 810 insertions(+) create mode 100755 biagen create mode 100644 main_window.xml diff --git a/biagen b/biagen new file mode 100755 index 0000000..1e22a93 --- /dev/null +++ b/biagen @@ -0,0 +1,41 @@ +#!/usr/bin/env python + +# BiaGen - front end to genisoimage +# Copyright 2010 V.Harishankar +# Licensed under the GNU GPL v3 or above + +import pygtk +pygtk.require20 () +import gtk + +class BiaGen: + def add_item (self, type): + if type == 1: + dlg = gtk.FileChooserDialog (title="Add files", action=gtk.FILE_CHOOSER_ACTION_OPEN, + buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) + else: + dlg = gtk.FileChooserDialog (title="Add folders", action=gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, + buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) + + dlg.set_property ("select-multiple", True) + dlg.run () + + dlg.destroy () + + def on_btn_add_clicked (self, *args): + self.add_item (type=1) + + def on_btn_exit_clicked (self, *args): + gtk.main_quit () + + def on_main_window_hide (self, *args): + gtk.main_quit () + + def __init__ (self): + ui = gtk.Builder () + ui.add_from_file ("main_window.xml") + ui.get_object ("main_window").show () + ui.connect_signals (self) + gtk.main () + +BiaGen () diff --git a/main_window.xml b/main_window.xml new file mode 100644 index 0000000..3a670f2 --- /dev/null +++ b/main_window.xml @@ -0,0 +1,769 @@ + + + + + + + + + + + + BiaGen - genisoimage frontend + center + + + + True + 10 + vertical + + + True + True + True + True + + + True + 5 + vertical + + + True + True + never + in + + + 180 + True + True + filelist + + + + + 0 + + + + + True + 10 + end + + + Add files... + True + True + True + True + + + + False + False + 0 + + + + + Add folders... + True + True + True + + + False + False + 1 + + + + + Remove + True + True + True + + + False + False + 2 + + + + + False + False + 10 + 1 + + + + + + + True + Add files/folders + + + False + + + + + True + 5 + 7 + 4 + + + True + ISO level + + + + + + + + + + + + Level 1 + True + True + False + True + level2 + + + 1 + 2 + + + + + + + Level 2 + True + True + False + True + True + + + 2 + 3 + + + + + + + Level 3 + True + True + False + True + level2 + + + 3 + 4 + + + 2 + + + + + Joliet extensions (Windows) + True + True + False + Joliet extensions for +Microsoft Windows + True + True + + + 2 + 4 + 5 + GTK_FILL + + + + + + Joliet long filenames + True + True + False + Allow 103 unicode +characters in Joliet +filesystem - use with +caution + True + + + 2 + 4 + 4 + 5 + GTK_FILL + + 2 + + + + + Allow ISO long file names (31 characters) + True + True + False + allow 31 character +ISO filenames - use +with caution + True + + + 2 + 2 + 3 + GTK_FILL + + + + + + Allow maximum ISO length (37 characters) + True + True + False + Allow 37 characters +in filenames in ISO +- use with caution + True + + + 2 + 4 + 2 + 3 + GTK_FILL + + 2 + + + + + Rock-ridge extensions + True + True + False + Generate rock-ridge +extensions + True + True + + + 2 + 5 + 6 + GTK_FILL + + + + + + UDF filesystem extensions + True + True + False + Generate UDF +directory structure + True + + + 2 + 4 + 5 + 6 + GTK_FILL + + + + + + DVD-video compliant filesystem + True + True + False + Use only if you are +generating an ISO for +a DVD-video structure + True + + + 2 + 6 + 7 + GTK_FILL + + + + + + Generate TRANS.TBL + True + True + False + For non-Rock Ridge +compliant systems, +allow file name +translation + True + + + 2 + 4 + 6 + 7 + GTK_FILL + + 2 + + + + + True + + + 4 + 1 + 2 + GTK_FILL + 5 + + + + + Allow leading dots in ISO filenames + True + True + False + Allow filenames in +ISO filesystem to +begin with a dot +- use with caution + True + + + 2 + 3 + 4 + GTK_FILL + + + + + + Allow lowercase ISO filenames + True + True + False + Allow file names to +be in lowercase - use +with caution + True + + + 2 + 4 + 3 + 4 + GTK_FILL + + 2 + + + + + 1 + + + + + True + ISO options + + + 1 + False + + + + + True + 5 + 7 + 4 + + + True + Volume ID + + + GTK_FILL + + + + + + True + True + Name/label of +the current +volume + 32 + + + + 1 + 4 + + 2 + 2 + + + + + True + Volume set ID + + + 2 + 3 + GTK_FILL + + + + + + True + True + Name of the +volume set + 128 + + + + 1 + 4 + 2 + 3 + + 2 + 2 + + + + + True + 3 + Publisher ID + + + 3 + 4 + GTK_FILL + + + + + + True + True + Name of the +publisher of +this image + 128 + + + + 1 + 4 + 3 + 4 + + 2 + 2 + + + + + True + Volume set size + + + 4 + 5 + GTK_FILL + + + + + + True + True + Total number of +volumes in this set + + volumesetsize + True + + + 1 + 2 + 4 + 5 + + 2 + + + + + True + 0.57999998331069946 + Current volume + + + 2 + 3 + 4 + 5 + GTK_FILL + + 2 + + + + + True + True + Current volume in +this set + + currentvolume + True + + + 3 + 4 + 4 + 5 + + 2 + 2 + + + + + True + Preparer ID + + + 5 + 6 + GTK_FILL + + + + + + True + True + The preparer of this +image (CD/DVD) + + BiaGen + + + 1 + 4 + 5 + 6 + GTK_FILL + + 2 + 2 + + + + + True + Copyright file + + + 6 + 7 + GTK_FILL + + + + + + True + True + Copyright file on +the image +filesystem + + + + 1 + 4 + 6 + 7 + GTK_FILL + + 2 + 2 + + + + + True + System ID + + + 1 + 2 + GTK_FILL + + + + + + True + True + System identifier + 32 + + + + 1 + 4 + 1 + 2 + GTK_FILL + + 2 + 2 + + + + + 2 + + + + + True + Info + + + 2 + False + + + + + 0 + + + + + True + + + True + 10 + True + end + + + _Create image... + True + True + True + True + + + False + False + 0 + + + + + gtk-quit + True + True + True + True + 0.52999997138977051 + + + + False + False + 1 + + + + + 10 + 0 + + + + + False + False + 10 + 1 + + + + + True + 0.47999998927116394 + <span foreground="darkblue">This requires the <tt>genisoimage</tt> program to be installed</span> + True + + + False + False + 5 + 2 + + + + + + + 100 + 1 + + + 100 + 1 + + -- 2.20.1