def __init__(self, datadir, component_data=None, parent=None):
        LanguageSelectorBase.__init__(self, datadir)
        KCModule.__init__(self, component_data, parent)
        
        self.parentApp = KApplication.kApplication()
        self.ui = Ui_QtLanguageSelectorGUI()
        self.ui.setupUi(self)
        self.about = MakeAboutData()
        self.setAboutData(self.about)
        
        self.setWindowIcon(KIcon("preferences-desktop-locale"))
        
        self.imSwitch = ImSwitch()
        # remove dangling ImSwitch symlinks if present
        self.imSwitch.removeDanglingSymlinks()
        self.init()

        # connect the signals
        self.connect(self.ui.listViewLanguagesInst, SIGNAL("itemSelectionChanged()"), self.checkInstallableComponents)
        self.connect(self.ui.listViewLanguagesUninst, SIGNAL("itemSelectionChanged()"), self.onChanged)
        self.connect(self.ui.ktabwidget, SIGNAL("currentChanged(int)"), self.onTabChangeRevertApply)
        self.connect(self.ui.listBoxDefaultLanguage, SIGNAL("itemSelectionChanged()"), self.checkInputMethods)
        self.connect(self.ui.checkBoxTr, SIGNAL("stateChanged(int)"), self.onChanged)
        self.connect(self.ui.checkBoxIm, SIGNAL("stateChanged(int)"), self.onChanged)
        self.connect(self.ui.checkBoxSpell, SIGNAL("stateChanged(int)"), self.onChanged)
        self.connect(self.ui.checkBoxFonts, SIGNAL("stateChanged(int)"), self.onChanged)
Beispiel #2
0
        def __init__(self, component_data, parent):
            KCModule.__init__(self, component_data, parent)

            if not dbus.get_default_main_loop():
                from dbus.mainloop.qt import DBusQtMainLoop
                DBusQtMainLoop(set_as_default=True)

            MainWidget(self, embed=True)
Beispiel #3
0
        def __init__(self, component_data, parent):
            KCModule.__init__(self, component_data, parent)

            if not dbus.get_default_main_loop():
                from dbus.mainloop.qt import DBusQtMainLoop
                DBusQtMainLoop(set_as_default=True)

            MainWidget(self, embed=True)
Beispiel #4
0
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        KGlobal.locale().insertCatalog(catalog)

        if not dbus.get_default_main_loop():
            from dbus.mainloop.qt import DBusQtMainLoop
            DBusQtMainLoop(set_as_default = True)

        MainWidget(self, embed=True)
Beispiel #5
0
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        KGlobal.locale().insertCatalog(about.catalog)

        if not dbus.get_default_main_loop():
            from dbus.mainloop.qt import DBusQtMainLoop
            DBusQtMainLoop(set_as_default=True)

        MainWidget(self, embed=True)
Beispiel #6
0
 def __init__(self, component_data, parent=None):
     KCModule.__init__(self, component_data, parent)
     KGlobal.locale().insertCatalog('synaptiks')
     # keep a reference to the generated about data to prevent it from being
     # deleted by the GC
     self._about = make_about_data(
         ki18nc('kcmodule description', 'Touchpad configuration'))
     self.setAboutData(self._about)
     self.setQuickHelp(i18nc(
         '@info:tooltip synaptiks kcmodule',
         '<title>Touchpad configuration</title>'
         '<para>This module lets you configure your touchpad.</para>'))
Beispiel #7
0
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        # This is very important for translations when running as kcm_module
        KGlobal.locale().insertCatalog("network-manager")

        # DBUS MainLoop
        if not dbus.get_default_main_loop():
            from dbus.mainloop.qt import DBusQtMainLoop
            DBusQtMainLoop(set_as_default=True)

        MainManager(self, standAlone=False)
Beispiel #8
0
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        # This is very important for translations when running as kcm_module
        KGlobal.locale().insertCatalog("network-manager")

        # DBUS MainLoop
        if not dbus.get_default_main_loop():
            from dbus.mainloop.qt import DBusQtMainLoop
            DBusQtMainLoop(set_as_default = True)

        MainManager(self, standAlone = False)
Beispiel #9
0
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        KGlobal.locale().insertCatalog(catalog)
        self.setButtons(KCModule.Apply)

        if not dbus.get_default_main_loop():
            from dbus.mainloop.qt import DBusQtMainLoop
            DBusQtMainLoop(set_as_default=True)

        mw = MainWidget(self, embed=True)
        self.load = mw.load
        self.save = mw.save
        self.defaults = mw.defaults

        def configChanged():
            self.changed.emit(True)

        mw.configChanged.connect(configChanged)
Beispiel #10
0
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        KGlobal.locale().insertCatalog(catalog)
        self.setButtons(KCModule.Apply)

        if not dbus.get_default_main_loop():
            from dbus.mainloop.qt import DBusQtMainLoop
            DBusQtMainLoop(set_as_default=True)

        mw = MainWidget(self, embed=True)
        self.load = mw.load
        self.save = mw.save
        self.defaults = mw.defaults

        def configChanged():
            self.changed.emit(True)

        mw.configChanged.connect(configChanged)
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        self.vbox = QtGui.QVBoxLayout(self)
        self.view = UsersView(self)
        self.vbox.addWidget(self.view)
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        self.vbox = QtGui.QVBoxLayout(self)
        self.view = UsersView(self)
        self.vbox.addWidget(self.view)