summaryrefslogtreecommitdiffstats
path: root/build_tools/larch7/larch0/gui/layouts/page_medium.uim
blob: 713a3c03aff67367d247deed35c16d2caf9c964d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
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 ..."),
                    }
            },
    ],
]