summaryrefslogtreecommitdiffstats
path: root/build_tools/l7/larch0/gui/layouts/page_medium.uim
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/l7/larch0/gui/layouts/page_medium.uim')
-rw-r--r--build_tools/l7/larch0/gui/layouts/page_medium.uim271
1 files changed, 271 insertions, 0 deletions
diff --git a/build_tools/l7/larch0/gui/layouts/page_medium.uim b/build_tools/l7/larch0/gui/layouts/page_medium.uim
new file mode 100644
index 0000000..713a3c0
--- /dev/null
+++ b/build_tools/l7/larch0/gui/layouts/page_medium.uim
@@ -0,0 +1,271 @@
+# page_medium.uim - The layout for the medium building page
+#
+# (c) Copyright 2010 Michael Towers (larch42 at googlemail dot com)
+#
+# This file is part of the larch project.
+#
+# larch 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 2 of the License, or
+# (at your option) any later version.
+#
+# larch 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 larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2010.07.12
+
+[
+ ['Page', ':page_medium',
+ { 'layout':
+ ['VBOX',
+ ['HBOX', ':source', 'VLINE', ':bootloader'],
+ 'HLINE',
+ ['HBOX', ':destination','VLINE', ':detection'],
+ ['HBOX', '*', ':vlabell', ':vlabele',
+ ':vlabelb'],
+ 'HLINE',
+ ['HBOX', ':chroot', 'VLINE,10',
+ ':bootcd', '*', ':make_medium']
+ ]
+ }
+ ],
+# Select source:
+# larch installation (default, but may be invalid), iso, cd-drive, partition
+ ['Frame', ':source',
+ { 'text': _("Select larch source"),
+ 'layout':
+ ['VBOX',
+ ['HBOX', ':source_larch', ':source_dev',
+ ':source_iso', ':source_path'],
+ ['HBOX', ':source_show', ':source_select']
+ ]
+ }
+ ],
+ ['RadioButton', ':source_larch',
+ { 'text': _("larchified system"),
+ 'tt': _("Use the system prepared within the larch build"
+ " directory")
+ },
+ 'toggled'
+ ],
+ ['RadioButton', ':source_dev',
+ { 'text': _("Device"),
+ 'tt': _("Use a system on a mountable device")
+ },
+ 'toggled'
+ ],
+ ['RadioButton', ':source_iso',
+ { 'text': _("'iso' file"),
+ 'tt': _("Use a system on an 'iso' file")
+ },
+ 'toggled'
+ ],
+ ['RadioButton', ':source_path',
+ { 'text': _("Path"),
+ 'tt': _("Use a directory within the filesystem")
+ },
+ 'toggled'
+ ],
+ ['LineEdit', ':source_show',
+ { 'ro': True,
+ 'tt': _("The location from where the larch system will"
+ " be fetched")
+ }
+ ],
+ ['Button', ':source_select',
+ { 'text': _("Choose"),
+ 'tt': _("Select the source location")
+ },
+ 'clicked'
+ ],
+
+#++++
+ ['OptionalFrame', ':destination',
+ { 'text': _("Write to partition"),
+ 'tt': _("Don't create an 'iso' (CD/DVD), write the larch"
+ " system to a partition (e.g. USB-stick)"),
+ 'layout':
+ ['VBOX',
+ ['HBOX', ':lm2', ':larchpart', ':selectpart'],
+ ['GRID', ['+', ':noformat', ':nombr'],
+ ['+', ':nolarchboot', ':dosave']]
+ ]
+ },
+ 'toggled'
+ ],
+ ['Label', ':lm2',
+ { 'text': _("Partition:")
+ }
+ ],
+ ['LineEdit', ':larchpart',
+ { 'ro': True,
+ 'tt': _("The partition to which the larch system is to"
+ " be installed")
+ }
+ ],
+ ['Button', ':selectpart',
+ { 'text': _("Choose"),
+ 'tt': _("Select the partition to receive the larch system")
+ },
+ 'clicked'
+ ],
+ ['CheckBox', ':noformat',
+ { 'text': _("Don't format"),
+ 'tt': _("Copy the data to the partition without formatting"
+ " first\n(not the normal procedure, NOT RECOMMENDED!)")
+ },
+# 'toggled'
+ ],
+ ['CheckBox', ':nombr',
+ { 'text': _("Don't install the bootloader"),
+ 'tt': _("The bootloader will not be installed, leaving"
+ " the mbr untouched\n"
+ "(you'll need to provide some other means of booting)")
+ },
+# 'toggled'
+ ],
+ ['CheckBox', ':nolarchboot',
+ { 'text': _("Not bootable via search"),
+ 'tt': _("Don't create the file 'larch/larchboot':\n"
+ " the medium will only be bootable by uuid, label"
+ " or partition name")
+ },
+ 'toggled'
+ ],
+ ['CheckBox', ':dosave',
+ { 'text': _("Enable session-saving"),
+ 'tt': _("Can override profile's 'larch/nosave' file,"
+ " to make session-saving possible in that case too")
+ },
+# 'toggled'
+ ],
+#----
+
+#++++++++
+ ['Frame', ':detection',
+ { 'text': _("Medium Detection"),
+ 'tt': _("Choose how the boot scripts determine where to"
+ " look for the larch system (ONLY ON PARTITIONED MEDIA)"),
+ 'layout':
+ ['VBOX', ':device', ':uuid', ':label', ':search']
+ }
+ ],
+ ['RadioButton', ':uuid',
+ { 'text': _("UUID"),
+ 'tt': _("Use the partition's UUID to find it")
+ },
+# 'toggled'
+ ],
+ ['RadioButton', ':label',
+ { 'text': _("LABEL"),
+ 'tt': _("Use the partition's label to find it")
+ },
+# 'toggled'
+ ],
+ ['RadioButton', ':device',
+ { 'text': _("Partition"),
+ 'tt': _("Use the partition's name (/dev/sdb1, etc.) to find it")
+ },
+# 'toggled'
+ ],
+ ['RadioButton', ':search',
+ { 'text': _("Search (for larchboot)"),
+ 'tt': _("Test all CD/DVD devices and partitions until"
+ " the file 'larch/larchboot' is found")
+ },
+ 'toggled'
+ ],
+#--------
+
+#+
+ # Defaults to that of the source
+ ['Label', ':vlabell',
+ { 'text': _("Volume Label:")
+ }
+ ],
+ ['LineEdit', ':vlabele',
+ { 'ro': True,
+ 'tt': _("The length may not exceed 16 bytes,"
+ " 11 for vfat(syslinux)")
+ }
+ ],
+ ['Button', ':vlabelb',
+ { 'text': _("Change"),
+ 'tt': _("Enter a new label for the volume, empty to use default")
+ },
+ 'clicked'
+ ],
+#-
+
+#++++
+ ['Frame', ':bootloader',
+ { 'text': _("Bootloader"),
+ 'tt': _("You can choose between GRUB and"
+ " syslinux/isolinux as bootloader"),
+ 'layout':
+ ['VBOX', ':grub', ':syslinux']
+ }
+ ],
+ ['RadioButton', ':grub',
+ { 'text': "GRUB",
+ 'tt': _("Use GRUB as bootloader")
+ },
+ 'toggled'
+ ],
+ ['RadioButton', ':syslinux',
+ { 'text': "syslinux/isolinux",
+ 'tt': _("Use syslinux (partition) or isolinux (CD/DVD)"
+ " as bootloader")
+ },
+ 'toggled'
+ ],
+#----
+
+ ['CheckBox', ':chroot',
+ { 'text': _("Use chroot"),
+ 'tt': _("Use the larch installation for the build process\n"
+ " - the default should be alright in most cases")
+ },
+# 'toggled'
+ ],
+
+ ['Button', ':bootcd',
+ { 'text': _("Create boot iso"),
+ 'tt': _("Create a small boot iso for this device (for"
+ " machines that can't boot from USB)")
+ },
+ 'clicked'
+ ],
+ ['Button', ':make_medium',
+ { 'text': _("Write the larch medium"),
+ 'tt': _("The larch image will be written to the 'iso' file"
+ " or to the partition, as selected")
+ },
+ 'clicked'
+ ],
+
+ ['DATA', 'medium_page_data',
+ { 'messages':
+ { 'medium_src': _("Select source medium folder"),
+ 'iso_src': _("Select source iso file"),
+ 'iso_type': _("larch iso images"),
+ 'parts_t': _("Select unmounted partition"),
+ 'parts_src': _("larch system source:"),
+ 'parts_dst': _("Device to receive larch system.\n"
+ "WARNING: Be very careful in choosing here,\n"
+ "if you choose the wrong one you might\n"
+ "seriously damage your system!"),
+ 'msg_med': _("Invalid larch medium folder: %s"),
+ 'prompt_label': _("Volume label (clear to use default):"),
+ 'isopath': _("Save 'iso' to ..."),
+ }
+ },
+ ],
+]