|
|
|
@ -55,7 +55,7 @@ isroot = os.getuid()==0
|
|
|
|
|
if standalone:
|
|
|
|
|
programbase = KDialogBase
|
|
|
|
|
else:
|
|
|
|
|
programbase = KCModule
|
|
|
|
|
programbase = TDECModule
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
class WineConfigApp(programbase):
|
|
|
|
@ -73,12 +73,12 @@ class WineConfigApp(programbase):
|
|
|
|
|
if args.count() > 0:
|
|
|
|
|
application = args.arg(0)
|
|
|
|
|
else:
|
|
|
|
|
KCModule.__init__(self,parent,name)
|
|
|
|
|
self.setButtons(KCModule.Apply|KCModule.Reset)
|
|
|
|
|
TDECModule.__init__(self,parent,name)
|
|
|
|
|
self.setButtons(TDECModule.Apply|TDECModule.Reset)
|
|
|
|
|
self.aboutdata = MakeAboutData()
|
|
|
|
|
|
|
|
|
|
# Create a configuration object.
|
|
|
|
|
self.config = KConfig("wineconfigrc")
|
|
|
|
|
self.config = TDEConfig("wineconfigrc")
|
|
|
|
|
|
|
|
|
|
# Compact mode means that we have to make the GUI
|
|
|
|
|
# much smaller to fit on low resolution screens.
|
|
|
|
@ -356,7 +356,7 @@ class WineConfigApp(programbase):
|
|
|
|
|
else:
|
|
|
|
|
programbase.exec_loop(self)
|
|
|
|
|
|
|
|
|
|
def save(self): # KCModule
|
|
|
|
|
def save(self): # TDECModule
|
|
|
|
|
# Find out what's changed
|
|
|
|
|
generalchanged = self.generalpage.isChanged()
|
|
|
|
|
driveschanged = not application and self.drivespage.isChanged()
|
|
|
|
@ -390,7 +390,7 @@ class WineConfigApp(programbase):
|
|
|
|
|
def slotClose(self): # KDialogBase
|
|
|
|
|
KDialogBase.slotClose(self)
|
|
|
|
|
|
|
|
|
|
def load(self): # KCModule
|
|
|
|
|
def load(self): # TDECModule
|
|
|
|
|
self.__reset()
|
|
|
|
|
self._sendChangedSignal()
|
|
|
|
|
|
|
|
|
@ -1812,7 +1812,7 @@ class AppearancePage(QWidget):
|
|
|
|
|
appearance_tab_layout.addItem(bottomspacer)
|
|
|
|
|
|
|
|
|
|
self.selecteditem = None
|
|
|
|
|
self.config = KConfig("wineconfigrc",False,False)
|
|
|
|
|
self.config = TDEConfig("wineconfigrc",False,False)
|
|
|
|
|
self.reset()
|
|
|
|
|
|
|
|
|
|
self.clearWState(Qt.WState_Polished)
|
|
|
|
@ -2111,7 +2111,7 @@ class AppearancePage(QWidget):
|
|
|
|
|
def GetKdeColorScheme(self):
|
|
|
|
|
""" Sets the current color scheme settings to those currently set in KDE """
|
|
|
|
|
# Create a configuration object.
|
|
|
|
|
config = KConfig("kdesktoprc")
|
|
|
|
|
config = TDEConfig("kdesktoprc")
|
|
|
|
|
|
|
|
|
|
config.setGroup("General")
|
|
|
|
|
self.customizableitems["Application Workspace"][0]["AppWorkSpace"][1] =\
|
|
|
|
@ -3306,7 +3306,7 @@ class ApplicationsPage(QWidget):
|
|
|
|
|
def GetKdeDefaultBrowser(self):
|
|
|
|
|
""" Returns the default browser set in KDE """
|
|
|
|
|
# Create a configuration object.
|
|
|
|
|
config = KConfig("wineconfigrc")
|
|
|
|
|
config = TDEConfig("wineconfigrc")
|
|
|
|
|
return str(config.lookupData(KEntryKey("General","BrowserApplication")).mValue).strip('!')
|
|
|
|
|
|
|
|
|
|
def setMargin(self,margin):
|
|
|
|
|