aboutsummaryrefslogtreecommitdiff
blob: af09714af8c6530067ed637b36572c62638a97ee (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
# Copyright 1999-2005 Gentoo Foundation
# This source code is distributed under the terms of version 2 of the GNU
# General Public License as published by the Free Software Foundation, a copy
# of which can be found in the main directory of this project.

import gtk
from GLIScreen import *
from gettext import gettext as _

class Panel(GLIScreen):

	title = _("Welcome to the Gentoo Linux Installer")
	_helptext = """
<b><u>Install Mode</u></b>

Welcome to the GTK+ front-end for the Gentoo Linux Installer. It is highly \
recommended that you have gone through the manual install process a time or \
two, or at least read through the install guide.

There are 3 install modes you can choose from: Networkless, Standard, and \
Advanced. The "Networkless" mode is used for installs where you have no access \
to the internet, or you just want a fast install using what's available on the \
LiveCD.  The "Standard" mode is used for networked installs. It allows you \
some flexibility, but it makes safe assumptions on some advanced options. The \
"Advanced" mode is for people who want to play around with more settings. If \
you break your install in this mode, don't come crying to us.
"""

	def __init__(self, controller):
		GLIScreen.__init__(self, controller)
		vert = gtk.VBox(False, 10)
		vert.set_border_width(10)

		hbox = gtk.HBox(False)
		label = gtk.Label()
		label.set_markup('<b>Choose your install mode</b>')
		hbox.pack_start(label, expand=False, fill=False, padding=0)
		vert.pack_start(hbox, expand=False, fill=False, padding=15)

		hbox = gtk.HBox(False)
		self.install_type_standard = gtk.RadioButton(label=_("Standard"))
		hbox.pack_start(self.install_type_standard, expand=False, fill=False, padding=20)
		vert.pack_start(hbox, expand=False, fill=False, padding=5)
		hbox = gtk.HBox(False)
		self.install_type_networkless = gtk.RadioButton(group=self.install_type_standard, label=_("Networkless"))
		hbox.pack_start(self.install_type_networkless, expand=False, fill=False, padding=20)
		vert.pack_start(hbox, expand=False, fill=False, padding=5)
		hbox = gtk.HBox(False)
		self.install_type_advanced = gtk.RadioButton(group=self.install_type_networkless, label=_("Advanced"))
		hbox.pack_start(self.install_type_advanced, expand=False, fill=False, padding=20)
		vert.pack_start(hbox, expand=False, fill=False, padding=5)

		self.add_content(vert)

	def activate(self):
		self.controller.SHOW_BUTTON_BACK    = False
		self.controller.SHOW_BUTTON_FORWARD = True

	def next(self):
		if self.install_type_networkless.get_active():
			self.controller.install_type = "networkless"
		elif self.install_type_standard.get_active():
			self.controller.install_type = "standard"
		elif self.install_type_advanced.get_active():
			self.controller.install_type = "advanced"
		self.controller.load_screen("Partition")