diff options
author | Erik Troan <ewt@redhat.com> | 1999-08-28 16:55:58 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-08-28 16:55:58 +0000 |
commit | 58e0377076aa0e88e293c0c63e0ed2ad1f31cb45 (patch) | |
tree | 5db85725528a33e23fee703d9d7ad62b8002de11 /iw/installpath.py | |
parent | 6c7db092fc82acac7a793bce94e0791e0c60b22d (diff) | |
download | anaconda-58e0377076aa0e88e293c0c63e0ed2ad1f31cb45.tar.gz anaconda-58e0377076aa0e88e293c0c63e0ed2ad1f31cb45.tar.xz anaconda-58e0377076aa0e88e293c0c63e0ed2ad1f31cb45.zip |
merged installtype stuff into here
Diffstat (limited to 'iw/installpath.py')
-rw-r--r-- | iw/installpath.py | 110 |
1 files changed, 69 insertions, 41 deletions
diff --git a/iw/installpath.py b/iw/installpath.py index d4307b6bc..5baa5ee3b 100644 --- a/iw/installpath.py +++ b/iw/installpath.py @@ -13,7 +13,6 @@ from keyboard import * from format import * from congrats import * from autopartition import * -from installtype import * from dependencies import * from lilo import * from examine import * @@ -24,61 +23,90 @@ from gui import _ UPGRADE = 0 INSTALL = 1 +CUSTOM = 0 +WORKSTATION_GNOME = 1 +WORKSTATION_KDE = 2 +SERVER = 3 + class InstallPathWindow (InstallWindow): + installTypes = ((CUSTOM, _("Custom")), + (WORKSTATION_GNOME, _("GNOME Workstation")), + (WORKSTATION_KDE, _("KDE Workstation")), + (SERVER, _("Server"))) + + installSteps = [ PartitionWindow, + LiloWindow, + TimezoneWindow, + NetworkWindow, + PartitionWindow, + FormatWindow, + PackageSelectionWindow, + UnresolvedDependenciesWindow, + LiloWindow, + AuthWindow, + AccountWindow, + InstallProgressWindow, + BootdiskWindow, + CongratulationWindow + ] + + upgradeSteps = [ UpgradeExamineWindow, + UnresolvedDependenciesWindow, + InstallProgressWindow, + CongratulationWindow + ] + def __init__ (self, ics): InstallWindow.__init__ (self, ics) - ics.setTitle (_("Install Path")) - ics.setNextEnabled (1) + self.commonSteps = [ LanguageWindow, + KeyboardWindow, + MouseWindow, + WelcomeWindow, + InstallPathWindow + ] - self.commonSteps = [ LanguageWindow, - KeyboardWindow, - MouseWindow, - WelcomeWindow, - InstallPathWindow - ] - - self.installSteps = [ PartitionWindow, - LiloWindow, - InstallTypeWindow, - TimezoneWindow, - NetworkWindow, - PartitionWindow, - FormatWindow, - PackageSelectionWindow, - UnresolvedDependenciesWindow, - LiloWindow, - AuthWindow, - AccountWindow, - InstallProgressWindow, - BootdiskWindow, - CongratulationWindow - ] - - self.upgradeSteps = [ UpgradeExamineWindow, - UnresolvedDependenciesWindow, - InstallProgressWindow, - CongratulationWindow - ] + ics.setTitle (_("Install Type")) + ics.setNextEnabled (1) def toggled (self, widget, type): if not widget.get_active (): return if type == INSTALL: - self.ics.getICW ().setStateList (self.commonSteps + self.installSteps, len (self.commonSteps)-1) + self.ics.getICW ().setStateList (self.commonSteps + + self.installSteps, len (self.commonSteps)-1) self.todo.upgrade = 0 + self.installBox.set_sensitive(1) else: - self.ics.getICW ().setStateList (self.commonSteps + self.upgradeSteps, len (self.commonSteps)-1) + self.ics.getICW ().setStateList (self.commonSteps + + self.upgradeSteps, len (self.commonSteps)-1) self.todo.upgrade = 1 + self.installBox.set_sensitive(0) def getScreen (self): box = GtkVBox (FALSE, 5) - group = GtkRadioButton (None, _("Install")) - group.connect ("toggled", self.toggled, INSTALL) - self.toggled (group, INSTALL) - box.pack_start (group, FALSE) - group = GtkRadioButton (group, _("Upgrade")) - group.connect ("toggled", self.toggled, UPGRADE) - box.pack_start (group, FALSE) + installButton = GtkRadioButton (None, _("Install")) + installButton.connect ("toggled", self.toggled, INSTALL) + upgradeButton = GtkRadioButton (installButton, _("Upgrade")) + upgradeButton.connect ("toggled", self.toggled, UPGRADE) + + self.installBox = GtkVBox (FALSE) + group = None + for i in range (len (self.installTypes)): + group = GtkRadioButton (group, self.installTypes[i][1]) + self.installBox.pack_start (group, FALSE) + + spacer = GtkLabel("") + spacer.set_usize(15, 1) + + table = GtkTable(2, 3) + table.attach(installButton, 0, 2, 0, 1) + table.attach(spacer, 0, 1, 1, 2, xoptions = FALSE) + table.attach(self.installBox, 1, 2, 1, 2, xoptions = FILL | EXPAND) + table.attach(upgradeButton, 0, 2, 2, 3) + + box.pack_start(table, FALSE) + + self.toggled (installButton, INSTALL) return box |