def __init__(self, device):
        glade_file = "ethernetconfig.glade"
        DeviceConfigDialog.__init__(self, glade_file, device)

        xml_signal_autoconnect(self.xml, { \
            "on_aliasSupportCB_toggled" : self.on_aliasSupportCB_toggled,
            "on_hwAddressCB_toggled" : self.on_hwAddressCB_toggled,
            "on_hwProbeButton_clicked" : self.on_hwProbeButton_clicked,
            })

        window = self.sharedtcpip_xml.get_widget('dhcpWindow')
        frame = self.sharedtcpip_xml.get_widget('dhcpFrame')
        vbox = self.xml.get_widget('generalVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device)

        window = self.sharedtcpip_xml.get_widget('routeWindow')
        frame = self.sharedtcpip_xml.get_widget('routeFrame')
        vbox = self.xml.get_widget('routeVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog)

        window = self.sharedtcpip_xml.get_widget('hardwareWindow')
        frame = self.sharedtcpip_xml.get_widget('hardwareFrame')
        vbox = self.xml.get_widget('hardwareVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.hardware_init(self.sharedtcpip_xml, self.device)
        self.hydrate()
Exemple #2
0
    def __init__(self, device):
        glade_file = "ADSLInterfaceDialog.glade"
        DeviceConfigDialog.__init__(self, glade_file, device)

        xml_signal_autoconnect(
            self.xml, {
                "on_tonlineButton_clicked": self.on_tonlineButton_clicked,
                "on_dialonDemandCB_clicked": self.on_dialonDemandCB_clicked,
            })
        window = self.sharedtcpip_xml.get_widget('dhcpWindow')
        frame = self.sharedtcpip_xml.get_widget('dhcpFrame')
        vbox = self.xml.get_widget('generalVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device)

        window = self.sharedtcpip_xml.get_widget('routeWindow')
        frame = self.sharedtcpip_xml.get_widget('routeFrame')
        vbox = self.xml.get_widget('routeVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog)

        window = self.sharedtcpip_xml.get_widget('hardwareWindow')
        frame = self.sharedtcpip_xml.get_widget('hardwareFrame')
        vbox = self.xml.get_widget('hardwareVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.dsl_hardware_init(self.sharedtcpip_xml, self.device)
        self.hydrate()
    def do_init(self):
        # pylint: disable-msg=W0201
        xml_signal_autoconnect(
            self.xml, {
                "on_essidAutoButton_toggled": self.on_essidAutoButton_toggled,
            })

        window = self.sharedtcpip_xml.get_widget('dhcpWindow')
        frame = self.sharedtcpip_xml.get_widget('dhcpFrame')
        vbox = self.xml.get_widget('generalVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device)

        window = self.sharedtcpip_xml.get_widget('routeWindow')
        frame = self.sharedtcpip_xml.get_widget('routeFrame')
        vbox = self.xml.get_widget('routeVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog)

        window = self.sharedtcpip_xml.get_widget('hardwareWindow')
        frame = self.sharedtcpip_xml.get_widget('hardwareFrame')
        vbox = self.xml.get_widget('hardwareVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.hardware_init(self.sharedtcpip_xml, self.device)

        self.modestore = gtk.ListStore(gobject.TYPE_STRING,
                                       gobject.TYPE_STRING)
        for i in modeList:
            self.modestore.append(i)

        combo = self.xml.get_widget("modeCombo")
        combo.set_model(self.modestore)
        cell = gtk.CellRendererText()
        combo.pack_start(cell, True)
        combo.add_attribute(cell, 'text', 0)

        self.xml.get_widget("rateCombo").set_popdown_strings(
            (_("Auto"), "11M", "5.5M", "2M", "1M"))

        combo.connect("changed", self.on_modeChanged)
        self.initialized = True
    def __init__(self, device):
        glade_file = "DialupInterfaceDialog.glade"
        DeviceConfigDialog.__init__(self, glade_file, device)
        self.edit = False

        xml_signal_autoconnect(self.xml,
            {
            "on_chooseButton_clicked" : self.on_chooseButton_clicked,
            "on_helpButton_clicked" : self.on_helpButton_clicked,
            "on_callbackCB_toggled" : self.on_callbackCB_toggled,
            "on_pppOptionEntry_changed" : self.on_pppOptionEntry_changed,
            "on_pppOptionAddButton_clicked" : \
            self.on_pppOptionAddButton_clicked,
            "on_pppOptionList_select_row" : self.on_pppOptionList_select_row,
            "on_ipppOptionList_unselect_row" : \
            self.on_ipppOptionList_unselect_row,
            "on_pppOptionDeleteButton_clicked" : \
            self.on_pppOptionDeleteButton_clicked,
            "on_tonlineButton_clicked" : self.on_tonlineButton_clicked,
            "on_showPassword_clicked" : self.on_showPassword_clicked,
            })

        self.noteBook = self.xml.get_widget("dialupNotebook")
        self.xml.get_widget("pppOptionList").column_titles_passive()

        window = self.sharedtcpip_xml.get_widget('dhcpWindow')
        frame = self.sharedtcpip_xml.get_widget('dhcpFrame')
        vbox = self.xml.get_widget('generalVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device)

        window = self.sharedtcpip_xml.get_widget('routeWindow')
        frame = self.sharedtcpip_xml.get_widget('routeFrame')
        vbox = self.xml.get_widget('routeVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog)
        self.hydrate()
Exemple #5
0
    def __init__(self, device):
        glade_file = "QethConfig.glade"
        DeviceConfigDialog.__init__(self, glade_file, device)

        xml_signal_autoconnect(self.xml, { \
            "on_aliasSupportCB_toggled" : self.on_aliasSupportCB_toggled,
            })

        window = self.sharedtcpip_xml.get_widget('dhcpWindow')
        frame = self.sharedtcpip_xml.get_widget('dhcpFrame')
        vbox = self.xml.get_widget('generalVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.dhcp_init(self.sharedtcpip_xml, self.device)

        window = self.sharedtcpip_xml.get_widget('routeWindow')
        frame = self.sharedtcpip_xml.get_widget('routeFrame')
        vbox = self.xml.get_widget('routeVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.route_init(self.sharedtcpip_xml, self.device, self.dialog)

        window = self.sharedtcpip_xml.get_widget('hardwareWindow')
        frame = self.sharedtcpip_xml.get_widget('hardwareFrame')
        vbox = self.xml.get_widget('hardwareVbox')
        window.remove(frame)
        vbox.pack_start(frame)
        sharedtcpip.hardware_init(self.sharedtcpip_xml, self.device)

        self.sharedtcpip_xml.get_widget("hardwareMACToggle").set_sensitive(
            false)
        self.sharedtcpip_xml.get_widget("hardwareMACEntry").set_sensitive(
            false)
        self.sharedtcpip_xml.get_widget("hardwareProbeButton").set_sensitive(
            false)

        self.hydrate()