aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-08-09 10:56:38 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-08-09 10:56:38 +0000
commitf769ab0b254a64c9813425a6132fd4644eec989a (patch)
tree19e97b6d2882b35a38d8fb0a2b54a2ba154143b4
parent:GUI fixes (diff)
downloadanaconda-f769ab0b254a64c9813425a6132fd4644eec989a.tar.gz
anaconda-f769ab0b254a64c9813425a6132fd4644eec989a.tar.bz2
anaconda-f769ab0b254a64c9813425a6132fd4644eec989a.zip
kernel selection
-rw-r--r--'13
-rw-r--r--iw/kernel_gui.py46
-rw-r--r--ui/custom_kernel.glade65
-rw-r--r--ui/kernel.glade102
4 files changed, 226 insertions, 0 deletions
diff --git a/' b/'
new file mode 100644
index 0000000..9d32282
--- /dev/null
+++ b/'
@@ -0,0 +1,13 @@
+ui/anaconda.glade: make more space on the screen
+# Please enter the commit message for your changes. Lines starting
+# with '#' will be ignored, and an empty message aborts the commit.
+# On branch master
+# Changes to be committed:
+# (use "git reset HEAD <file>..." to unstage)
+#
+# modified: ui/anaconda.glade
+#
+# Untracked files:
+# (use "git add <file>..." to include in what will be committed)
+#
+# .gitignore
diff --git a/iw/kernel_gui.py b/iw/kernel_gui.py
new file mode 100644
index 0000000..e09bc3b
--- /dev/null
+++ b/iw/kernel_gui.py
@@ -0,0 +1,46 @@
+#
+# kernel_gui.py: gui kernel selector (genkernel/custom)s.
+#
+# Copyright (C) 2011 wiktor w brodlo
+# Copyright (C) 2011 Gentoo Foundation
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+import string
+import gtk
+import gtk.glade
+import gtk.gdk
+import gobject
+import pango
+import sys
+import gui
+
+from iw_gui import *
+
+from constants import *
+import gettext
+_ = lambda x: gettext.ldgettext("anaconda", x)
+
+class KernelWindow(InstallWindow):
+ def getNext(self):
+ return None
+
+ def getScreen(self, anaconda):
+ self.anaconda = anaconda
+ self.intf = anaconda.intf
+ (self.xml, self.align) = gui.getGladeWidget("kernel.glade", "kernel_align")
+
+ return self.align
+
diff --git a/ui/custom_kernel.glade b/ui/custom_kernel.glade
new file mode 100644
index 0000000..ac316ae
--- /dev/null
+++ b/ui/custom_kernel.glade
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glade-interface>
+ <!-- interface-requires gtk+ 2.6 -->
+ <!-- interface-naming-policy toplevel-contextual -->
+ <widget class="GtkWindow" id="profile_window">
+ <property name="can_focus">False</property>
+ <property name="border_width">18</property>
+ <child>
+ <widget class="GtkAlignment" id="profile_align">
+ <property name="width_request">400</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <child>
+ <widget class="GtkVBox" id="profile_box">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="spacing">10</property>
+ <child>
+ <widget class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="label" translatable="yes">You have selected a custom kernel. Use the menu below (nconfig) to create your configuration.
+The basic settings have been selected for you, but no drivers are enabled.</property>
+ <property name="justify">center</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkScrolledWindow" id="scrolledwindow1">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <child>
+ <widget class="GtkViewport" id="kernel_viewport">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="resize_mode">queue</property>
+ <child>
+ <placeholder/>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+</glade-interface>
diff --git a/ui/kernel.glade b/ui/kernel.glade
new file mode 100644
index 0000000..01b4ebd
--- /dev/null
+++ b/ui/kernel.glade
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glade-interface>
+ <!-- interface-requires gtk+ 2.6 -->
+ <!-- interface-naming-policy toplevel-contextual -->
+ <widget class="GtkWindow" id="profile_window">
+ <property name="can_focus">False</property>
+ <property name="border_width">18</property>
+ <child>
+ <widget class="GtkAlignment" id="profile_align">
+ <property name="width_request">400</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <child>
+ <widget class="GtkVBox" id="profile_box">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="spacing">10</property>
+ <child>
+ <widget class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="label" translatable="yes">The Linux kernel is the heart of your system.
+You can either use the kernel provided on the LiveDVD (genkernel) or create a custom configuration file.
+The advantage of using genkernel lies in the installation speed - the installer will simpy copy the kernel from the DVD.
+However, a custom kernel can be smaller, faster and tailored to your system.</property>
+ <property name="justify">center</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkScrolledWindow" id="scrolledwindow1">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <child>
+ <widget class="GtkViewport" id="viewport1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="resize_mode">queue</property>
+ <child>
+ <widget class="GtkVBox" id="kernel_box">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="homogeneous">True</property>
+ <child>
+ <widget class="GtkRadioButton" id="genkernel">
+ <property name="label" translatable="yes">Use genkernel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="draw_indicator">True</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkRadioButton" id="custom_kernel">
+ <property name="label" translatable="yes">Create a custom kernel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">genkernel</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+</glade-interface>