--- pyanaconda/ui/gui/spokes/network.py | 73 +++++++++++++++++++++++++++++++++++ pyanaconda/ui/gui/spokes/network.ui | 53 +++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 0 deletions(-) create mode 100644 pyanaconda/ui/gui/spokes/network.py create mode 100644 pyanaconda/ui/gui/spokes/network.ui diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py new file mode 100644 index 0000000..73d7afe --- /dev/null +++ b/pyanaconda/ui/gui/spokes/network.py @@ -0,0 +1,73 @@ +# Network configuration spoke classes +# +# Copyright (C) 2011 Red Hat, Inc. +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions of +# the GNU General Public License v.2, or (at your option) any later version. +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY expressed or implied, including the implied warranties 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, write to the +# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. Any Red Hat trademarks that are incorporated in the +# source code or documentation are not subject to the GNU General Public +# License and may only be used or replicated with the express permission of +# Red Hat, Inc. +# +# Red Hat Author(s): Radek Vykydal <rvykydal@xxxxxxxxxx> +# + +# TODO: +# - which type of spoke or category? + +from gi.repository import Gtk, AnacondaWidgets + +from pyanaconda.ui.gui import UIObject +from pyanaconda.ui.gui.spokes import NormalSpoke +from pyanaconda.ui.gui.categories.software import SoftwareCategory + +__all__ = ["NetworkSpoke"] + +class NetworkSpoke(NormalSpoke): + builderObjects = ["networkWindow"] + mainWidgetName = "networkWindow" + uiFile = "spokes/network.ui" + + category = SoftwareCategory + + def __init__(self, *args, **kwargs): + NormalSpoke.__init__(self, *args, **kwargs) + + def apply(self): + pass + + @property + def completed(self): + # enabled? + pass + + @property + def status(self): + # active connections? + pass + + def _grabObjects(self): + pass + + def populate(self): + NormalSpoke.populate(self) + + self._grabObjects() + + def setup(self): + NormalSpoke.setup(self) + + # Signal handlers. + def on_configure_clicked(self, button): + pass + + def on_back_clicked(self, window): + self.window.hide() + Gtk.main_quit() diff --git a/pyanaconda/ui/gui/spokes/network.ui b/pyanaconda/ui/gui/spokes/network.ui new file mode 100644 index 0000000..37835ca --- /dev/null +++ b/pyanaconda/ui/gui/spokes/network.ui @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <!-- interface-requires AnacondaWidgets 1.0 --> + <object class="AnacondaSpokeWindow" id="networkWindow"> + <property name="startup_id">filler</property> + <property name="can_focus">False</property> + <property name="startup_id">filler</property> + <property name="window_name">NETWORK CONFIGURATION</property> + <signal name="back-clicked" handler="on_back_clicked" swapped="no"/> + <child internal-child="main_box"> + <object class="GtkBox" id="AnacondaSpokeWindow-main_box1"> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <child internal-child="nav_area"> + <object class="GtkGrid" id="AnacondaSpokeWindow-nav_area1"> + <property name="can_focus">False</property> + <property name="n_rows">2</property> + <property name="n_columns">2</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child internal-child="alignment"> + <object class="GtkAlignment" id="AnacondaSpokeWindow-alignment1"> + <property name="can_focus">False</property> + <property name="yalign">0</property> + <property name="xscale">0</property> + <property name="yscale">0.5</property> + <child internal-child="action_area"> + <object class="GtkBox" id="networkWindow-actionArea"> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <placeholder/> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> +</interface> -- 1.7.7.5 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list