def getScreen(self, anaconda): self.anaconda = anaconda self.intf = anaconda.intf vbox = gtk.VBox() label = gtk.Label(_("What type of devices will your installation " "involve?")) label.set_alignment(0.0, 0.0) vbox.pack_start(label, expand=False, fill=False) self.buttonGroup = pixmapRadioButtonGroup() self.buttonGroup.addEntry("simple", _("Basic Storage Devices"), descr=_("Installs or upgrades to typical types " "of storage devices. If you're not sure " "which option is right for you, this is " "probably it.")) self.buttonGroup.addEntry("complex", _("Specialized Storage Devices"), descr=_("Installs or upgrades to enterprise devices " "such as Storage Area Networks (SANs). This " "option will allow you to add FCoE / iSCSI " "/ zFCP disks and to filter out devices " "the installer should ignore.")) widget = self.buttonGroup.render() vbox.pack_start(widget, expand=True, fill=True) if self.anaconda.id.simpleFilter == True: self.buttonGroup.setCurrent("simple") else: self.buttonGroup.setCurrent("complex") return vbox
def getScreen(self, anaconda): self.anaconda = anaconda self.intf = anaconda.intf vbox = gtk.VBox() label = gtk.Label(_("What type of devices will your installation " "involve?")) label.set_alignment(0.0, 0.0) vbox.pack_start(label, expand=False, fill=False) self.buttonGroup = pixmapRadioButtonGroup() self.buttonGroup.addEntry("simple", _("Basic Storage Devices"), descr=_("Installs or upgrades to typical types " "of storage devices. If you're not sure " "which option is right for you, this is " "probably it.")) self.buttonGroup.addEntry("complex", _("Specialized Storage Devices"), descr=_("Installs or upgrades to enterprise devices " "such as Storage Area Networks (SANs). This " "option will allow you to add FCoE / iSCSI " "/ zFCP disks and to filter out devices " "the installer should ignore.")) widget = self.buttonGroup.render() vbox.pack_start(widget, expand=True, fill=True) if self.anaconda.simpleFilter == True: self.buttonGroup.setCurrent("simple") else: self.buttonGroup.setCurrent("complex") return vbox
def getScreen(self, anaconda): self.anaconda = anaconda self.intf = anaconda.intf vbox = gtk.VBox() label = gtk.Label(_("What type of devices will your installation " "involve?")) label.set_alignment(0.0, 0.0) vbox.pack_start(label, expand=False, fill=False) self.buttonGroup = pixmapRadioButtonGroup() self.buttonGroup.addEntry("simple", _("Basic Storage Devices"), descr=_("Installs or upgrades to typical types " "of storage devices. If you're not sure " "which option is right for you, this is " "probably it.")) self.buttonGroup.addEntry("complex", _("Specialized Storage Devices"), descr=_("Installs or upgrades to devices such as " "Storage Area Networks (SANs) or mainframe " "attached disks (DASD), usually in an " "enterprise environment")) widget = self.buttonGroup.render() vbox.pack_start(widget, expand=True, fill=True) if self.anaconda.simpleFilter == True: self.buttonGroup.setCurrent("simple") else: self.buttonGroup.setCurrent("complex") return vbox
def createInstallTypeOption(self): r = pixmapRadioButtonGroup() for (name, object, pixmap) in self.installTypes: descr = object.description r.addEntry(name, _(name), pixmap=self.ics.readPixmap(pixmap), descr=_(descr)) return r
def createUpgradeOption(self): r = pixmapRadioButtonGroup() r.addEntry(UPGRADE_STR, _("_Upgrade an existing installation"), pixmap=self.ics.readPixmap("upgrade.png"), descr=_("Choose this option if you would like " "to upgrade your existing %s system. " "This option will preserve the " "existing data on your drives.") %(productName,)) r.addEntry(REINSTALL_STR, _("_Install %s") %(productName,), pixmap=self.ics.readPixmap("install.png"), descr=_("Choose this option to freshly install your system. " "Existing software and data may be overwritten " "depending on your configuration choices.")) return r
def createUpgradeOption(self): r = pixmapRadioButtonGroup() r.addEntry(REINSTALL_STR, _("Fresh Installation"), pixmap=gui.readImageFromFile("install.png"), descr=_("Choose this option to install a fresh copy of %s " "on your system. Existing software and data may " "be overwritten depending on your configuration " "choices.") % productName) r.addEntry(UPGRADE_STR, _("Upgrade an Existing Installation"), pixmap=gui.readImageFromFile("upgrade.png"), descr=_("Choose this option if you would like to upgrade " "your existing %s system. This option will " "preserve the existing data on your storage " "device(s).") % productName) return r
def createUpgradeOption(self): r = pixmapRadioButtonGroup() r.addEntry(REINSTALL_STR, _("_Install %s") %(productName,), pixmap=gui.readImageFromFile("install.png"), descr=_("Choose this option to freshly install your system. " "Existing software and data may be overwritten " "depending on your configuration choices.")) r.addEntry(UPGRADE_STR, _("_Upgrade an existing installation"), pixmap=gui.readImageFromFile("upgrade.png"), descr=_("Choose this option if you would like " "to upgrade your existing %s system. " "This option will preserve the " "existing data on your drives.") %(productName,)) return r
def getScreen(self, anaconda): self.anaconda = anaconda self.storage = anaconda.id.storage self.intf = anaconda.intf self.dispatch = anaconda.dispatch if self.anaconda.dir == DISPATCH_FORWARD: # Save system's partition type setting and restore user's self.anaconda.clearPartTypeSystem = self.storage.clearPartType if self.anaconda.clearPartTypeSelection is not None: self.storage.clearPartType = self.anaconda.clearPartTypeSelection (self.xml, vbox) = gui.getGladeWidget("autopart.glade", "parttypeTable") self.encryptButton = self.xml.get_widget("encryptButton") self.reviewButton = self.xml.get_widget("reviewButton") self.table = self.xml.get_widget("parttypeTable") self.prevrev = None self.reviewButton.set_active(not self.dispatch.stepInSkipList("partition")) self.encryptButton.set_active(self.storage.encryptedAutoPart) self.buttonGroup = pixmapRadioButtonGroup() self.buttonGroup.addEntry("all", _("Use All Space"), pixmap=gui.readImageFromFile("partscheme-all.png"), descr=_("Removes all partitions on the selected " "device(s). This includes partitions " "created by other operating systems.\n\n" "<b>Tip:</b> This option will remove " "data from the selected device(s). Make " "sure you have backups.")) self.buttonGroup.addEntry("replace", _("Replace Existing Linux System(s)"), pixmap=gui.readImageFromFile("partscheme-replace.png"), descr=_("Removes only Linux partitions (created from " "a previous Linux installation). This does " "not remove other partitions you may have " "on your storage device(s) (such as VFAT or " "FAT32).\n\n" "<b>Tip:</b> This option will remove " "data from the selected device(s). Make " "sure you have backups.")) self.buttonGroup.addEntry("shrink", _("Shrink Current System"), pixmap=gui.readImageFromFile("partscheme-shrink.png"), descr=_("Shrinks existing partitions to create free " "space for the default layout.")) self.buttonGroup.addEntry("freespace", _("Use Free Space"), pixmap=gui.readImageFromFile("partscheme-freespace.png"), descr=_("Retains your current data and partitions and " "uses only the unpartitioned space on the " "selected device(s), assuming you have enough " "free space available.")) self.buttonGroup.addEntry("custom", _("Create Custom Layout"), pixmap=gui.readImageFromFile("partscheme-custom.png"), descr=_("Manually create your own custom layout on " "the selected device(s) using our partitioning " "tool.")) self.buttonGroup.setToggleCallback(self.typeChanged) widget = self.buttonGroup.render() self.table.attach(widget, 0, 1, 1, 2) # if not set in ks, use UI default if self.storage.clearPartChoice: self.buttonGroup.setCurrent(self.storage.clearPartChoice) else: if self.storage.clearPartType is None or self.storage.clearPartType == CLEARPART_TYPE_LINUX: self.buttonGroup.setCurrent("replace") elif self.storage.clearPartType == CLEARPART_TYPE_NONE: self.buttonGroup.setCurrent("freespace") elif self.storage.clearPartType == CLEARPART_TYPE_ALL: self.buttonGroup.setCurrent("all") if self.buttonGroup.getCurrent() == "custom": # make sure reviewButton is active and not sensitive if self.prevrev == None: self.prevrev = self.reviewButton.get_active() self.reviewButton.set_active(True) self.reviewButton.set_sensitive(False) self.encryptButton.set_sensitive(False) return vbox
def getScreen(self, anaconda): self.anaconda = anaconda self.storage = anaconda.id.storage self.intf = anaconda.intf self.dispatch = anaconda.dispatch if self.anaconda.dir == DISPATCH_FORWARD: # Save system's partition type setting and restore user's self.anaconda.clearPartTypeSystem = self.storage.clearPartType if self.anaconda.clearPartTypeSelection is not None: self.storage.clearPartType = self.anaconda.clearPartTypeSelection (self.xml, vbox) = gui.getGladeWidget("autopart.glade", "parttypeTable") self.encryptButton = self.xml.get_widget("encryptButton") self.reviewButton = self.xml.get_widget("reviewButton") self.table = self.xml.get_widget("parttypeTable") self.prevrev = None self.reviewButton.set_active( not self.dispatch.stepInSkipList("partition")) self.encryptButton.set_active(self.storage.encryptedAutoPart) self.buttonGroup = pixmapRadioButtonGroup() self.buttonGroup.addEntry( "all", _("Use All Space"), pixmap=gui.readImageFromFile("partscheme-all.png"), descr=_("Removes all partitions on the selected " "device(s). This includes partitions " "created by other operating systems.\n\n" "<b>Tip:</b> This option will remove " "data from the selected device(s). Make " "sure you have backups.")) self.buttonGroup.addEntry( "replace", _("Replace Existing Linux System(s)"), pixmap=gui.readImageFromFile("partscheme-replace.png"), descr=_("Removes only Linux partitions (created from " "a previous Linux installation). This does " "not remove other partitions you may have " "on your storage device(s) (such as VFAT or " "FAT32).\n\n" "<b>Tip:</b> This option will remove " "data from the selected device(s). Make " "sure you have backups.")) self.buttonGroup.addEntry( "shrink", _("Shrink Current System"), pixmap=gui.readImageFromFile("partscheme-shrink.png"), descr=_("Shrinks existing partitions to create free " "space for the default layout.")) self.buttonGroup.addEntry( "freespace", _("Use Free Space"), pixmap=gui.readImageFromFile("partscheme-freespace.png"), descr=_("Retains your current data and partitions and " "uses only the unpartitioned space on the " "selected device(s), assuming you have enough " "free space available.")) self.buttonGroup.addEntry( "custom", _("Create Custom Layout"), pixmap=gui.readImageFromFile("partscheme-custom.png"), descr=_("Manually create your own custom layout on " "the selected device(s) using our partitioning " "tool.")) self.buttonGroup.setToggleCallback(self.typeChanged) widget = self.buttonGroup.render() self.table.attach(widget, 0, 1, 1, 2) # if not set in ks, use UI default if self.storage.clearPartChoice: self.buttonGroup.setCurrent(self.storage.clearPartChoice) else: if self.storage.clearPartType is None or self.storage.clearPartType == CLEARPART_TYPE_LINUX: self.buttonGroup.setCurrent("replace") elif self.storage.clearPartType == CLEARPART_TYPE_NONE: self.buttonGroup.setCurrent("freespace") elif self.storage.clearPartType == CLEARPART_TYPE_ALL: self.buttonGroup.setCurrent("all") if self.buttonGroup.getCurrent() == "custom": # make sure reviewButton is active and not sensitive if self.prevrev == None: self.prevrev = self.reviewButton.get_active() self.reviewButton.set_active(True) self.reviewButton.set_sensitive(False) self.encryptButton.set_sensitive(False) return vbox