summaryrefslogtreecommitdiffstats
path: root/build_tools/larch8/larch0/gui/layouts/page_larchify.uim
blob: 34c4e66fee9d9129ad14c160eaeb345756875b3c (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
# page_larchify.uim - The layout for the larchify 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.10.10

(lambda USERHEADERS:
[
    ['Page', ':page_larchify',
            {   'layout':
                    ['VBOX',
#                        ':larchify',
                        ':users',
                        'HLINE',
                        ['HBOX',
                            ['VBOX', ':overlay', ':locales', ':rcconf'],
                            'VLINE',
                            ['VBOX', ':kernelfile', '*', ':kernelpack'],
                            'VLINE',
                            ':larchify_advanced'
                        ],
                        'HLINE',
                        ['HBOX', ':oldsquash', '*', ':build']
                    ]
            }
    ],
    # - - - - The profile editing frame
    ['Button', ':locales',
            {   'text': _("Supported locales"),
                'tt': _("Edit the /etc/locale.gen file to select"
                        " supported glibc locales")
            },
        'clicked'
    ],
    ['Button', ':rcconf',
            {   'text': _("Edit /etc/rc.conf"),
                'tt': _("Edit the general system configuration file for the"
                        " live system")
            },
        'clicked'
    ],
    ['Button', ':overlay',
            {   'text': _("Edit overlay"),
                'tt': _("Open a file browser on the profile's 'rootoverlay'")
            },
        'clicked'
    ],

    # - - - - The kernel selection frame
    ['Frame', ':kernelfile',
            {   'text': _("Live kernel filename"),
                'tt': _("The name of the kernel binary file (in /boot)"),
                'layout':
                    ['HBOX', ':kernele', ':kernelb']
            }
    ],
    ['LineEdit', ':kernele',
            {   'width': 100,
                'ro': True,
            }
    ],
    ['Button', ':kernelb',
            {   'text': _("Change"),
                'tt': _("Change the name of the kernel binary file (in /boot)")
            },
        'clicked'
    ],
    ['Frame', ':kernelpack',
            {   'text': _("Live kernel package"),
                'tt': _("The name of the kernel for mkinitcpio (the preset file)"),
                'layout':
                    ['HBOX', ':kernelmkie', ':kernelmkib']
            }
    ],
    ['LineEdit', ':kernelmkie',
            {   'width': 100,
                'ro': True,
            }
    ],
    ['Button', ':kernelmkib',
            {   'text': _("Change"),
                'tt': _("Change the name of the kernel preset file (for mkinitcpio)")
            },
        'clicked'
    ],


    ['OptionalFrame', ':larchify_advanced',
            {   'text': _("Advanced Options"),
                'layout':
                    ['VBOX', ':initcpio', ':oldlocales', ':ssh'],
            }
    ],
    ['Button', ':initcpio',
            {   'text': _("Edit mkinitcpio.conf"),
                'tt': _("Edit the configuration file for generating"
                        " the initramfs via mkinitcpio")
            },
        'clicked'
    ],
    ['CheckBox', ':ssh',
            {   'text': _("Generate ssh keys"),
                'tt': _("The ssh host keys will be pre-generated")
            },
        'toggled'
    ],
    ['CheckBox', ':oldlocales',
            {   'text': _("Reuse existing locales"),
                'tt': _("To save time it may be possible to reuse glibc"
                        " locales from a previous run")
            },
#        'toggled'
    ],

    ['CheckBox', ':oldsquash',
            {   'text': _("Reuse existing system.sqf"),
                'tt': _("Reuse existing system.sqf, to save time if the"
                        " base system hasn't changed")
            },
#        'toggled'
    ],
    ['Button', ':build',
            {   'text': _("Larchify"),
                'tt': _("Build the main components of the larch system")
            },
        'clicked'
    ],

#Note that this should be disabled if installation directory is '/'
    ['Frame', ':users',
            {   'text': _("User accounts"),
                'layout':
                    ['VBOX',
                        ':utable',
                        ['HBOX', ':useradd', ':userdel', '*',
                            ':rootpwl', ':rootpwe', ':rootpwb'
                        ]
                    ]
            }
    ],
    ['List', ':utable',
            {   'selectionmode': 'Single',
                'headers': USERHEADERS,
                'compact': True,
                'tt': _("Click on a row to select, click on a selected"
                        " cell to edit")
            },
#        'select',
        'clicked'
    ],
    ['Button', ':useradd',
            {   'text': _("Add user"),
                'tt': _("Create a new user-name")
            },
        'clicked'
    ],
    ['Button', ':userdel',
            {   'text': _("Delete user"),
                'tt': _("Remove the selected user-name")
            },
        'clicked'
    ],
    ['Label', ':rootpwl',
            {   'text': _("Root password:")
            }
    ],
    ['LineEdit', ':rootpwe',
            {   'ro': True,
                'tt': _("The unencrypted root password for the live system")
            }
    ],
    ['Button', ':rootpwb',
            {   'text': _("Change"),
                'tt': _("Enter a new password for the 'root' user")
            },
        'clicked'
    ],


    ['DATA', 'larchify_page_data',
            {   'messages':
                    {   'uheaders': USERHEADERS,
                        'rn_error': _("Renaming failed, see log"),
                        'ud_error': _("Couldn't adjust user definition"),
                        'def_skel': _("Default (/etc/skel)"),
                        'skel_lbl': _("This folder will be copied\n"
                "to build the user's home folder:"),
                        'skel_ttl': _("Choose 'skel' Folder"),
                        'newlogin': _("Enter login-name for new user:"),
                        'newrootpw': _("Enter root password for live system:"),
                        'kernelf':  _("Name of kernel binary:"),
                        'kernelp':  _("Name of kernel mkinitcpio preset:"),
                    }
            },
    ],
]
)([_("User-Name"), _("Password"), _("Group"),
                        "UID", _("'skel' directory"),
                        _("Additional Groups"), _("Expert options")])