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