summaryrefslogtreecommitdiffstats
path: root/wineconfig/wineconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'wineconfig/wineconfig.py')
-rwxr-xr-xwineconfig/wineconfig.py691
1 files changed, 352 insertions, 339 deletions
diff --git a/wineconfig/wineconfig.py b/wineconfig/wineconfig.py
index cd9eac9..cf6d008 100755
--- a/wineconfig/wineconfig.py
+++ b/wineconfig/wineconfig.py
@@ -16,6 +16,21 @@
# #
###########################################################################
+import sys
+import os
+import os.path
+# Trinity-specific paths
+tqt_modules = []
+for m_path in sys.path:
+ if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
+ m_sip_dir = os.path.join(m_path, 'sip4_tqt')
+ tqt_modules.insert(0, m_sip_dir)
+ if os.path.exists(os.path.join(m_path, 'python_tqt')):
+ m_pyqt_dir = os.path.join(m_path, 'python_tqt')
+ tqt_modules.insert(0, m_pyqt_dir)
+for m_path in tqt_modules:
+ sys.path.insert(0, m_path)
+
from qt import *
from tdecore import *
from tdeui import *
@@ -23,10 +38,8 @@ from tdefile import *
from tdeio import *
#import string
#import math
-import os
import shutil
#import select
-import sys
#import struct
#import csv
#import time
@@ -136,15 +149,15 @@ class WineConfigApp(programbase):
def _buildGUI(self):
global standalone,application
if not standalone:
- toplayout = QVBoxLayout( self, 0, KDialog.spacingHint() )
- tabcontrol = QTabWidget(self)
+ toplayout = TQVBoxLayout( self, 0, KDialog.spacingHint() )
+ tabcontrol = TQTabWidget(self)
toplayout.addWidget(tabcontrol)
toplayout.setStretchFactor(tabcontrol,1)
#--- General tab ---
tabname = i18n("General")
if standalone:
- general1page = self.addGridPage(1,QGrid.Horizontal,tabname)
+ general1page = self.addGridPage(1,TQGrid.Horizontal,tabname)
general1page.setSpacing(0)
self.generalpage = GeneralPage(general1page,self.compact_mode)
else:
@@ -161,7 +174,7 @@ class WineConfigApp(programbase):
if not application:
tabname = i18n("Drives && Directories")
if standalone:
- drives1page = self.addGridPage(1,QGrid.Horizontal,tabname)
+ drives1page = self.addGridPage(1,TQGrid.Horizontal,tabname)
drives1page.setSpacing(0)
self.drivespage = DrivesPage(drives1page,self.compact_mode)
else:
@@ -177,7 +190,7 @@ class WineConfigApp(programbase):
#--- Audio tab ---
tabname = i18n("Audio")
if standalone:
- audio1page = self.addGridPage(1,QGrid.Horizontal,tabname)
+ audio1page = self.addGridPage(1,TQGrid.Horizontal,tabname)
self.audiopage = AudioPage(audio1page)
else:
self.audiopage = AudioPage(tabcontrol)
@@ -192,7 +205,7 @@ class WineConfigApp(programbase):
#--- Graphics tab ---
tabname = i18n("Graphics")
if standalone:
- graphics1page = self.addGridPage(1,QGrid.Horizontal,tabname)
+ graphics1page = self.addGridPage(1,TQGrid.Horizontal,tabname)
self.graphicspage = GraphicsPage(graphics1page)
else:
self.graphicspage = GraphicsPage(tabcontrol)
@@ -209,7 +222,7 @@ class WineConfigApp(programbase):
if not application:
tabname = i18n("Appearance")
if standalone:
- appearance1page = self.addGridPage(1,QGrid.Horizontal,tabname)
+ appearance1page = self.addGridPage(1,TQGrid.Horizontal,tabname)
self.appearancepage = AppearancePage(appearance1page)
else:
self.appearancepage = AppearancePage(tabcontrol)
@@ -234,7 +247,7 @@ class WineConfigApp(programbase):
if not application:
tabname = i18n("Applications")
if standalone:
- apps1page = self.addGridPage(1,QGrid.Horizontal,tabname)
+ apps1page = self.addGridPage(1,TQGrid.Horizontal,tabname)
self.appspage = ApplicationsPage(apps1page)
else:
self.appspage = ApplicationsPage(tabcontrol)
@@ -249,7 +262,7 @@ class WineConfigApp(programbase):
#--- Libraries tab ---
tabname = i18n("Libraries")
if standalone:
- libs1page = self.addGridPage(1,QGrid.Horizontal,tabname)
+ libs1page = self.addGridPage(1,TQGrid.Horizontal,tabname)
self.libspage = LibrariesPage(libs1page)
else:
self.libspage = LibrariesPage(tabcontrol)
@@ -266,20 +279,20 @@ class WineConfigApp(programbase):
""" Displays an error that wine is not installed """
global standalone
if not standalone:
- toplayout = QVBoxLayout( self, 0, KDialog.spacingHint() )
+ toplayout = TQVBoxLayout( self, 0, KDialog.spacingHint() )
if not standalone:
- nowinewarning = QLabel(self,"nowinewarning")
+ nowinewarning = TQLabel(self,"nowinewarning")
toplayout.addWidget(nowinewarning)
else:
vbox = self.addVBoxPage ("Wine Not Installed")
- nowinewarning = QLabel(vbox,"nowinewarning")
+ nowinewarning = TQLabel(vbox,"nowinewarning")
nowinewarning.setText(i18n("It appears that you do not have wine " +\
"installed.\nwine " + \
"can be used to run some programs designed for " + \
"Windows.\nPlease " +\
"install the wine package to get this functionality."))
- nowinewarning.setFrameStyle( QFrame.Box | QFrame.Raised )
+ nowinewarning.setFrameStyle( TQFrame.Box | TQFrame.Raised )
def InstallWine(self):
""" Allows the user to enable the proper repositories and
@@ -434,27 +447,27 @@ class WineConfigApp(programbase):
############################################################################
''' Not used.
-class ErrorPage(QWidget):
+class ErrorPage(TQWidget):
"""
Displayed when there is no fake Windows drive
"""
def __init__(self,parent = None, name = None, parentapp = None, modal = 0,fl=0):
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
if not name:
self.setName("ErrorPage")
self.parent = parentapp
- self.top_layout = QVBoxLayout(self,0,0,"ErrorPageLayout")
+ self.top_layout = TQVBoxLayout(self,0,0,"ErrorPageLayout")
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
self.top_layout.addWidget(vbox)
- errortext = QLabel(vbox,"errortext")
+ errortext = TQLabel(vbox,"errortext")
errortext.setText(i18n("You need to set up a " +\
"fake Windows drive\n before you can edit settings or run " +\
"Windows applications."))
@@ -462,10 +475,10 @@ class ErrorPage(QWidget):
self.createbutton = KPushButton(i18n("Create Fake Windows Drive"),vbox)
self.connect(self.createbutton,SIGNAL("clicked()"),self.slotCreateClicked)
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
self.top_layout.addItem(bottomspacer)
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
def slotCreateClicked(self):
self.parent.CreateWindowsInstall()
@@ -481,7 +494,7 @@ class ErrorPage(QWidget):
##############################################################################
-class DrivesPage(QWidget):
+class DrivesPage(TQWidget):
"""
A TabPage with configuration for drive mappings
"""
@@ -501,7 +514,7 @@ class DrivesPage(QWidget):
'cdrom':4}
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
self.updatingGUI = True
@@ -513,36 +526,36 @@ class DrivesPage(QWidget):
self.drives = wineread.LoadDrives()
self.drives[26:] = wineread.GetShellLinks()
- drives_tab_layout = QVBoxLayout(self,0,0,"DrivesTabLayout")
+ drives_tab_layout = TQVBoxLayout(self,0,0,"DrivesTabLayout")
self.top_layout = drives_tab_layout
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
drives_tab_layout.addWidget(vbox)
# -- Drive mappings group
- self.mappings_group_box = QHGroupBox(vbox)
+ self.mappings_group_box = TQHGroupBox(vbox)
self.mappings_group_box.setTitle(i18n("Drive and Directory Mappings"))
self.mappings_group_box.setInsideSpacing(KDialog.spacingHint())
self.mappings_group_box.setInsideMargin(KDialog.marginHint())
- vbox2 = QVBox(self.mappings_group_box)
+ vbox2 = TQVBox(self.mappings_group_box)
vbox2.setSpacing(KDialog.spacingHint())
- spacer = QWidget(vbox2)
+ spacer = TQWidget(vbox2)
vbox2.setStretchFactor(spacer,1)
self.driveslist = TDEListView(vbox2)
self.driveslist.addColumn(i18n("Directory"))
self.driveslist.addColumn(i18n("Links to"))
self.driveslist.setAllColumnsShowFocus(True)
- self.driveslist.setSelectionMode(QListView.Single)
+ self.driveslist.setSelectionMode(TQListView.Single)
self.driveslist.setSorting(-1,True)
- self.connect(self.driveslist, SIGNAL("selectionChanged(QListViewItem *)"), self.slotListClicked)
+ self.connect(self.driveslist, SIGNAL("selectionChanged(TQListViewItem *)"), self.slotListClicked)
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
self.addbutton = KPushButton(i18n("Add Drive..."),hbox)
@@ -551,56 +564,56 @@ class DrivesPage(QWidget):
self.removebutton = KPushButton(i18n("Remove Drive"),hbox)
self.connect(self.removebutton,SIGNAL("clicked()"),self.slotRemoveClicked)
- spacer = QWidget(hbox)
+ spacer = TQWidget(hbox)
hbox.setStretchFactor(spacer,1)
self.autobutton = KPushButton(i18n("Autodetect"),hbox)
self.connect(self.autobutton,SIGNAL("clicked()"),self.slotAutoClicked)
- hbox2 = QHBox(vbox2)
+ hbox2 = TQHBox(vbox2)
hbox2.setSpacing(KDialog.spacingHint())
- pathtext = QLabel(hbox2,"pathtext")
+ pathtext = TQLabel(hbox2,"pathtext")
pathtext.setText(i18n("Path:"))
self.fsfolderedit = KLineEdit("/",hbox2)
self.urlcompletion = KURLCompletion(KURLCompletion.DirCompletion)
self.fsfolderedit.setCompletionObject(self.urlcompletion)
self.fsfolderedit.setCompletionMode(TDEGlobalSettings.CompletionPopup)
- self.connect(self.fsfolderedit,SIGNAL("textChanged(const QString &)"),self.slotFolderEdited)
+ self.connect(self.fsfolderedit,SIGNAL("textChanged(const TQString &)"),self.slotFolderEdited)
self.browsebutton = KPushButton(i18n("Browse"),hbox2)
self.connect(self.browsebutton,SIGNAL("clicked()"),self.slotBrowseClicked)
- hbox2 = QHBox(vbox2)
+ hbox2 = TQHBox(vbox2)
hbox2.setSpacing(KDialog.spacingHint())
- self.typetext = QLabel(hbox2,"typetext")
+ self.typetext = TQLabel(hbox2,"typetext")
self.typetext.setText(i18n("Type:"))
self.typecombo = KComboBox(0,hbox2,"typecombo")
self.fillTypeCombo(self.typecombo)
self.connect(self.typecombo,SIGNAL("activated(int)"),self.slotTypeActivated)
- spacer = QWidget(hbox2)
+ spacer = TQWidget(hbox2)
hbox2.setStretchFactor(spacer,1)
- hbox2 = QHBox(vbox2)
+ hbox2 = TQHBox(vbox2)
hbox2.setSpacing(KDialog.spacingHint())
- self.infotext1 = QLabel(hbox2,"infotext1")
+ self.infotext1 = TQLabel(hbox2,"infotext1")
- hbox2 = QHBox(vbox2)
+ hbox2 = TQHBox(vbox2)
hbox2.setSpacing(KDialog.spacingHint())
- self.infotext2 = QLabel(hbox2,"infotext2")
+ self.infotext2 = TQLabel(hbox2,"infotext2")
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
drives_tab_layout.addItem(bottomspacer)
self.changed = False
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
self.updatingGUI=False
@@ -749,7 +762,7 @@ class DrivesPage(QWidget):
for driveid, driveletter, mapping, drivetype, drivelabel, serial in reversed(self.drives):
if mapping or drivelabel:
- lvi = QListViewItem(self.driveslist,driveletter,mapping)
+ lvi = TQListViewItem(self.driveslist,driveletter,mapping)
self.drivesToListItems[driveid] = lvi
if self.selecteddriveid==driveid:
firstselecteddriveid = driveid
@@ -825,7 +838,7 @@ class DrivesPage(QWidget):
self.top_layout.setSpacing(spacing)
############################################################################
-class AudioPage(QWidget):
+class AudioPage(TQWidget):
driversdic = {
"":i18n("None - Disable Sound"),
"alsa":"ALSA",
@@ -858,117 +871,117 @@ class AudioPage(QWidget):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
global application
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
if not name:
self.setName("AudioTab")
- audio_tab_layout = QVBoxLayout(self,0,0,"AudioTabLayout")
+ audio_tab_layout = TQVBoxLayout(self,0,0,"AudioTabLayout")
self.top_layout = audio_tab_layout
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
audio_tab_layout.addWidget(vbox)
if application:
- appwarning = QLabel(vbox,"appwarning")
+ appwarning = TQLabel(vbox,"appwarning")
appwarning.setText(i18n("Application specific settings for <b>" +\
application + "</b><p>Changing a setting here will permanently " +\
"make that setting independent of settings for all other " +\
"applications.</p>"))
- appwarning.setFrameStyle( QFrame.Box | QFrame.Raised )
+ appwarning.setFrameStyle( TQFrame.Box | TQFrame.Raised )
# -- Drivers group
- self.driver_group_box = QHGroupBox(vbox)
+ self.driver_group_box = TQHGroupBox(vbox)
self.driver_group_box.setTitle(i18n("Driver Selection"))
self.driver_group_box.setInsideSpacing(KDialog.spacingHint())
self.driver_group_box.setInsideMargin(KDialog.marginHint())
- vbox2 = QVBox(self.driver_group_box)
+ vbox2 = TQVBox(self.driver_group_box)
vbox2.setSpacing(KDialog.spacingHint())
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
- drivertext = QLabel(hbox,"drivertext")
+ drivertext = TQLabel(hbox,"drivertext")
drivertext.setText(i18n("Audio Driver:"))
self.drivercombo = KComboBox(0,hbox,"drivercombo")
self.fillDriverCombo(self.drivercombo)
self.connect(self.drivercombo,SIGNAL("activated(int)"),self.slotDriverActivated)
- QToolTip.add(hbox, i18n("Choose an audio driver. Not all audio " +\
+ TQToolTip.add(hbox, i18n("Choose an audio driver. Not all audio " +\
"drivers are available."))
- spacer = QWidget(hbox)
+ spacer = TQWidget(hbox)
hbox.setStretchFactor(spacer,1)
if application:
self.driver_group_box.hide()
# -- DirectSound Settings group
- self.dsound_group_box = QHGroupBox(vbox)
+ self.dsound_group_box = TQHGroupBox(vbox)
self.dsound_group_box.setTitle(i18n("DirectSound"))
self.dsound_group_box.setInsideSpacing(KDialog.spacingHint())
self.dsound_group_box.setInsideMargin(KDialog.marginHint())
- vbox2 = QVBox(self.dsound_group_box)
+ vbox2 = TQVBox(self.dsound_group_box)
vbox2.setSpacing(KDialog.spacingHint())
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
- acceltext = QLabel(hbox,"acceltext")
+ acceltext = TQLabel(hbox,"acceltext")
acceltext.setText(i18n("Hardware Acceleration:"))
self.accelcombo = KComboBox(0,hbox,"accelcombo")
self.fillAccelCombo(self.accelcombo)
self.connect(self.accelcombo,SIGNAL("activated(int)"),self.slotAccelActivated)
- spacer = QWidget(hbox)
+ spacer = TQWidget(hbox)
hbox.setStretchFactor(spacer,1)
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
- self.overridecheckbox = QCheckBox(i18n("Override KDE Sample Rate"),hbox)
+ self.overridecheckbox = TQCheckBox(i18n("Override KDE Sample Rate"),hbox)
hbox.setStretchFactor(self.overridecheckbox,0)
self.connect(self.overridecheckbox,SIGNAL("toggled(bool)"),self.slotOverrideKDESoundToggled)
self.overridecheckbox.hide()
- self.sampleratehbox = QHBox(vbox2)
+ self.sampleratehbox = TQHBox(vbox2)
self.sampleratehbox.setSpacing(KDialog.spacingHint())
- sampletext = QLabel(self.sampleratehbox,"sampletext")
+ sampletext = TQLabel(self.sampleratehbox,"sampletext")
sampletext.setText(i18n("Default Sample Rate:"))
self.samplecombo = KComboBox(0,self.sampleratehbox,"samplecombo")
self.fillSampleCombo(self.samplecombo)
self.connect(self.samplecombo,SIGNAL("activated(int)"),self.slotSampleActivated)
- bitstext = QLabel(self.sampleratehbox,"bitstext")
+ bitstext = TQLabel(self.sampleratehbox,"bitstext")
bitstext.setText(i18n("Default Bits Per Sample:"))
self.bitscombo = KComboBox(0,self.sampleratehbox,"bitscombo")
self.fillBitsCombo(self.bitscombo)
self.connect(self.bitscombo,SIGNAL("activated(int)"),self.slotBitsActivated)
- spacer = QWidget(self.sampleratehbox)
+ spacer = TQWidget(self.sampleratehbox)
self.sampleratehbox.setStretchFactor(spacer,1)
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
- self.drvemucheckbox = QCheckBox(i18n("Driver Emulation"),hbox)
+ self.drvemucheckbox = TQCheckBox(i18n("Driver Emulation"),hbox)
hbox.setStretchFactor(self.drvemucheckbox,0)
self.connect(self.drvemucheckbox,SIGNAL("toggled(bool)"), self.slotDriverEmulToggled)
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
audio_tab_layout.addItem(bottomspacer)
self.reset()
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
def fillDriverCombo(self,combo):
""" Fill the combobox with the values from our list """
@@ -1152,7 +1165,7 @@ class AudioPage(QWidget):
############################################################################
-class GraphicsPage(QWidget):
+class GraphicsPage(TQWidget):
# Mapping values in seconds to human-readable labels.
vertexshadersupport = (
@@ -1167,46 +1180,46 @@ class GraphicsPage(QWidget):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
global currentallowwm
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
if not name:
self.setName("GraphicsTab")
- graphics_tab_layout = QVBoxLayout(self,0,0,"GraphicsTabLayout")
+ graphics_tab_layout = TQVBoxLayout(self,0,0,"GraphicsTabLayout")
self.top_layout = graphics_tab_layout
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
graphics_tab_layout.addWidget(vbox)
if application:
- appwarning = QLabel(vbox,"appwarning")
+ appwarning = TQLabel(vbox,"appwarning")
appwarning.setText(i18n("Application specific settings for <b>" +\
application + "</b><p>Changing a setting here will permanently " +\
"make that setting independent of settings for all other " +\
"applications.</p>"))
- appwarning.setFrameStyle( QFrame.Box | QFrame.Raised )
+ appwarning.setFrameStyle( TQFrame.Box | TQFrame.Raised )
# -- Window settings group
- self.windows_group_box = QHGroupBox(vbox)
+ self.windows_group_box = TQHGroupBox(vbox)
self.windows_group_box.setTitle(i18n("Window Settings"))
self.windows_group_box.setInsideSpacing(KDialog.spacingHint())
self.windows_group_box.setInsideMargin(KDialog.marginHint())
- vbox2 = QVBox(self.windows_group_box)
+ vbox2 = TQVBox(self.windows_group_box)
vbox2.setSpacing(KDialog.spacingHint())
- self.allowcursorcheckbox = QCheckBox(i18n("Allow DirectX applications to stop the mouse leaving their window"),vbox2)
+ self.allowcursorcheckbox = TQCheckBox(i18n("Allow DirectX applications to stop the mouse leaving their window"),vbox2)
self.connect(self.allowcursorcheckbox,SIGNAL("toggled(bool)"), self.slotAllowCursorToggled)
- self.dubbuffercheckbox = QCheckBox(i18n("Enable desktop double buffering"),vbox2)
+ self.dubbuffercheckbox = TQCheckBox(i18n("Enable desktop double buffering"),vbox2)
self.connect(self.dubbuffercheckbox,SIGNAL("toggled(bool)"), self.slotDubBufferToggled)
- self.allowwmcheckbox = QCheckBox(i18n("Allow the window manager to control the windows"),vbox2)
+ self.allowwmcheckbox = TQCheckBox(i18n("Allow the window manager to control the windows"),vbox2)
self.connect(self.allowwmcheckbox,SIGNAL("toggled(bool)"), self.slotAllowWMToggled)
- QToolTip.add(self.allowwmcheckbox, \
+ TQToolTip.add(self.allowwmcheckbox, \
i18n("<p>If windows are managed by your window manager, then they" +\
" will have the standard borders, they will respect your virtual" +\
" desktop and appear in your window list.\n</p><p>" +\
@@ -1215,35 +1228,35 @@ class GraphicsPage(QWidget):
" closely with your desktop, but the emulation will be more" +\
" accurate so it can help some programs work better.</p>"))
- self.showdragcheckbox = QCheckBox(i18n("Display window contents while dragging"),vbox2)
+ self.showdragcheckbox = TQCheckBox(i18n("Display window contents while dragging"),vbox2)
self.connect(self.showdragcheckbox,SIGNAL("toggled(bool)"), self.slotShowDragToggled)
- self.emudesktopcheckbox = QCheckBox(i18n("Emulate a virtual desktop"),vbox2)
+ self.emudesktopcheckbox = TQCheckBox(i18n("Emulate a virtual desktop"),vbox2)
self.connect(self.emudesktopcheckbox,SIGNAL("toggled(bool)"), self.slotEmuDesktopToggled)
- self.desksizehbox = QHBox(vbox2)
+ self.desksizehbox = TQHBox(vbox2)
self.desksizehbox.setSpacing(KDialog.spacingHint())
- desksizetext = QLabel(self.desksizehbox,"desksizetext")
+ desksizetext = TQLabel(self.desksizehbox,"desksizetext")
desksizetext.setText(i18n("Desktop size:"))
self.xsizeedit = KLineEdit("640",self.desksizehbox)
- self.xsizeedit.setValidator(QIntValidator(self.xsizeedit))
- self.connect(self.xsizeedit,SIGNAL("textChanged(const QString &)"),self.slotDesktopSizeChanged)
- bytext = QLabel(self.desksizehbox,"bytext")
+ self.xsizeedit.setValidator(TQIntValidator(self.xsizeedit))
+ self.connect(self.xsizeedit,SIGNAL("textChanged(const TQString &)"),self.slotDesktopSizeChanged)
+ bytext = TQLabel(self.desksizehbox,"bytext")
bytext.setText(i18n("x"))
self.ysizeedit = KLineEdit("480",self.desksizehbox)
- self.ysizeedit.setValidator(QIntValidator(self.ysizeedit))
- self.connect(self.ysizeedit,SIGNAL("textChanged(const QString &)"),self.slotDesktopSizeChanged)
+ self.ysizeedit.setValidator(TQIntValidator(self.ysizeedit))
+ self.connect(self.ysizeedit,SIGNAL("textChanged(const TQString &)"),self.slotDesktopSizeChanged)
- spacer = QWidget(self.desksizehbox)
+ spacer = TQWidget(self.desksizehbox)
self.desksizehbox.setStretchFactor(spacer,1)
- QToolTip.add(self.emudesktopcheckbox,
+ TQToolTip.add(self.emudesktopcheckbox,
i18n("<p>You can choose to emulate a Windows desktop, where all" +\
" the windows are confined to one 'virtual screen', or you" +\
" can have the windows placed on your standard desktop.</p>"))
- QToolTip.add(self.desksizehbox, QToolTip.textFor(self.emudesktopcheckbox))
+ TQToolTip.add(self.desksizehbox, TQToolTip.textFor(self.emudesktopcheckbox))
if application:
self.emudesktopcheckbox.hide()
@@ -1251,50 +1264,50 @@ class GraphicsPage(QWidget):
self.showdragcheckbox.hide()
# -- Direct3D settings group
- self.d3d_group_box = QHGroupBox(vbox)
+ self.d3d_group_box = TQHGroupBox(vbox)
self.d3d_group_box.setTitle(i18n("Direct3D"))
self.d3d_group_box.setInsideSpacing(KDialog.spacingHint())
self.d3d_group_box.setInsideMargin(KDialog.marginHint())
- vbox2 = QVBox(self.d3d_group_box)
+ vbox2 = TQVBox(self.d3d_group_box)
vbox2.setSpacing(KDialog.spacingHint())
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
- vertexshadertext = QLabel(hbox,"vertexshadertext")
+ vertexshadertext = TQLabel(hbox,"vertexshadertext")
vertexshadertext.setText(i18n("Vertex Shader Support:"))
self.accelcombo = KComboBox(0,hbox,"accelcombo")
self.fillCombo(self.accelcombo)
self.connect(self.accelcombo,SIGNAL("activated(int)"),self.slotVertexShaderModeActivated)
- spacer = QWidget(hbox)
+ spacer = TQWidget(hbox)
hbox.setStretchFactor(spacer,1)
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
- self.pixelshadercheckbox = QCheckBox(i18n("Allow Pixel Shader (if supported by hardware)"),hbox)
+ self.pixelshadercheckbox = TQCheckBox(i18n("Allow Pixel Shader (if supported by hardware)"),hbox)
self.connect(self.pixelshadercheckbox,SIGNAL("toggled(bool)"), self.slotPixelShaderModeToggled)
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
- self.glslcheckbox = QCheckBox(i18n("Use GL Shader Language"),hbox)
+ self.glslcheckbox = TQCheckBox(i18n("Use GL Shader Language"),hbox)
self.connect(self.glslcheckbox,SIGNAL("toggled(bool)"), self.slotGLSLToggled)
- QToolTip.add(hbox,
+ TQToolTip.add(hbox,
i18n("<p>This enables the use of GL Shading Language for vertex" +\
" and pixel shaders, as long as the hardware supports it." +\
" This is experimental.</p>"))
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
graphics_tab_layout.addItem(bottomspacer)
self.reset()
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
def fillCombo(self,combo):
""" Fill the combobox with the values from our list """
@@ -1517,7 +1530,7 @@ class GraphicsPage(QWidget):
############################################################################
-class AppearancePage(QWidget):
+class AppearancePage(TQWidget):
themes = [unicode(i18n("No Theme"))]
colorschemes = [unicode(i18n("Custom"))]
@@ -1530,83 +1543,83 @@ class AppearancePage(QWidget):
# For example, the value of BorderWidth is
# customizableitems[str(i18n("Window Border"))][1]["BorderWidth"][1]
customizableitems = {"Window Border":
- ({"ActiveBorder":[unicode(i18n("Active Color:")),QColor()],
- "InactiveBorder":[unicode(i18n("Inactive Color:")),QColor()]},
+ ({"ActiveBorder":[unicode(i18n("Active Color:")),TQColor()],
+ "InactiveBorder":[unicode(i18n("Inactive Color:")),TQColor()]},
{"BorderWidth":[unicode(i18n("Width:")),1]}), #ActiveBorder, InactiveBorder, metrics: BorderWidth
"Title Bar":
- ({"ActiveTitle":[unicode(i18n("Active Color:")),QColor()],
- "GradientActiveTitle":[unicode(i18n("Gradient:")),QColor()],
- "InactiveTitle":[unicode(i18n("Inactive Color:")),QColor()],
- "GradientInactiveTitle":[unicode(i18n("Gradient:")),QColor()],
- "TitleText":[unicode(i18n("Active Text:")),QColor()],
- "InactiveTitleText":[unicode(i18n("Inactive Text:")),QColor()]},
+ ({"ActiveTitle":[unicode(i18n("Active Color:")),TQColor()],
+ "GradientActiveTitle":[unicode(i18n("Gradient:")),TQColor()],
+ "InactiveTitle":[unicode(i18n("Inactive Color:")),TQColor()],
+ "GradientInactiveTitle":[unicode(i18n("Gradient:")),TQColor()],
+ "TitleText":[unicode(i18n("Active Text:")),TQColor()],
+ "InactiveTitleText":[unicode(i18n("Inactive Text:")),TQColor()]},
{}), #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
"Application Workspace":
- ({"AppWorkSpace":[unicode(i18n("Background Color:")),QColor()]},
+ ({"AppWorkSpace":[unicode(i18n("Background Color:")),TQColor()]},
{}), #AppWorkSpace "Background"
"Buttons":
- ({"ButtonFace":[unicode(i18n("Face:")),QColor()],
- "ButtonHilight":[unicode(i18n("Hilight:")),QColor()],
- "ButtonLight":[unicode(i18n("Light:")),QColor()],
- "ButtonShadow":[unicode(i18n("Shadow:")),QColor()],
- "ButtonText":[unicode(i18n("Text Color:")),QColor()],
- "ButtonAlternateFace":[unicode(i18n("Alternate Face:")),QColor()],
- "ButtonDkShadow":[unicode(i18n("Dark Shadow:")),QColor()],
- "WindowFrame":[unicode(i18n("Frame:")),QColor()]},
+ ({"ButtonFace":[unicode(i18n("Face:")),TQColor()],
+ "ButtonHilight":[unicode(i18n("Hilight:")),TQColor()],
+ "ButtonLight":[unicode(i18n("Light:")),TQColor()],
+ "ButtonShadow":[unicode(i18n("Shadow:")),TQColor()],
+ "ButtonText":[unicode(i18n("Text Color:")),TQColor()],
+ "ButtonAlternateFace":[unicode(i18n("Alternate Face:")),TQColor()],
+ "ButtonDkShadow":[unicode(i18n("Dark Shadow:")),TQColor()],
+ "WindowFrame":[unicode(i18n("Frame:")),TQColor()]},
{}), #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
"Caption Buttons":
({},
{"CaptionHeight":[unicode(i18n("Height:")),1],
"CaptionWidth":[unicode(i18n("Width:")),1]}), #Metrics: CaptionHeight, CaptionWidth
"Desktop":
- ({"Background":[unicode(i18n("Background:")),QColor()]},
+ ({"Background":[unicode(i18n("Background:")),TQColor()]},
{}), #Background
"Menu":
- ({"Menu":[unicode(i18n("Menu Background:")),QColor()],
- "MenuBar":[unicode(i18n("Menu Bar Color:")),QColor()],
- "MenuHilight":[unicode(i18n("Menu Hilight:")),QColor()],
- "MenuText":[unicode(i18n("Text Color:")),QColor()]},
+ ({"Menu":[unicode(i18n("Menu Background:")),TQColor()],
+ "MenuBar":[unicode(i18n("Menu Bar Color:")),TQColor()],
+ "MenuHilight":[unicode(i18n("Menu Hilight:")),TQColor()],
+ "MenuText":[unicode(i18n("Text Color:")),TQColor()]},
{"MenuHeight":[unicode(i18n("Menu Bar Height:")),1]}), #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
"Scrollbar":
- ({"Scrollbar":[unicode(i18n("Color:")),QColor()]},
+ ({"Scrollbar":[unicode(i18n("Color:")),TQColor()]},
{"ScrollWidth":[unicode(i18n("Width:")),1]}), #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
"Window":
- ({"Window":[unicode(i18n("Background:")),QColor()],
- "WindowText":[unicode(i18n("Text Color:")),QColor()]},
+ ({"Window":[unicode(i18n("Background:")),TQColor()],
+ "WindowText":[unicode(i18n("Text Color:")),TQColor()]},
{}), #Window "Background", WindowText
"Selected Items":
- ({"Hilight":[unicode(i18n("Hilight Color:")),QColor()],
- "HilightText":[unicode(i18n("Text Color:")),QColor()]},
+ ({"Hilight":[unicode(i18n("Hilight Color:")),TQColor()],
+ "HilightText":[unicode(i18n("Text Color:")),TQColor()]},
{})} #Hilight, HilightText
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
global imagedir
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
if not name:
self.setName("AppearanceTab")
- appearance_tab_layout = QVBoxLayout(self,0,0,"AppearanceTabLayout")
+ appearance_tab_layout = TQVBoxLayout(self,0,0,"AppearanceTabLayout")
self.top_layout = appearance_tab_layout
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
appearance_tab_layout.addWidget(vbox)
# -- Appearance group
- self.appearance_group_box = QVGroupBox(vbox)
+ self.appearance_group_box = TQVGroupBox(vbox)
self.appearance_group_box.setTitle(i18n("Style and Colors"))
self.appearance_group_box.setInsideSpacing(KDialog.spacingHint())
self.appearance_group_box.setInsideMargin(KDialog.marginHint())
- themebox = QWidget(self.appearance_group_box)
+ themebox = TQWidget(self.appearance_group_box)
- theme_layout = QGridLayout(themebox,3,3)
+ theme_layout = TQGridLayout(themebox,3,3)
theme_layout.setSpacing(KDialog.spacingHint())
theme_layout.setColStretch(1,1)
- styletext = QLabel(themebox,"styletext")
+ styletext = TQLabel(themebox,"styletext")
styletext.setText(i18n("Widget Style:"))
theme_layout.addWidget(styletext,0,0)
@@ -1620,7 +1633,7 @@ class AppearancePage(QWidget):
self.connect(self.installbutton,SIGNAL("clicked()"),self.slotInstallThemeClicked)
theme_layout.addWidget(self.installbutton,0,2)
- fontsizetext = QLabel(themebox,"fontsizetext")
+ fontsizetext = TQLabel(themebox,"fontsizetext")
fontsizetext.setText(i18n("Font Size:"))
theme_layout.addWidget(fontsizetext,1,0)
@@ -1629,7 +1642,7 @@ class AppearancePage(QWidget):
self.connect(self.fontsizecombo,SIGNAL("activated(int)"),self.slotFontSizeActivated)
theme_layout.addWidget(self.fontsizecombo,1,1)
- colorschemetext = QLabel(themebox,"colorschemetext")
+ colorschemetext = TQLabel(themebox,"colorschemetext")
colorschemetext.setText(i18n("Color Scheme:"))
theme_layout.addWidget(colorschemetext,2,0)
@@ -1643,19 +1656,19 @@ class AppearancePage(QWidget):
theme_layout.addWidget(self.saveschemebutton,2,2)
# --- Custom Colors ---
- hbox = QHBox(self.appearance_group_box)
+ hbox = TQHBox(self.appearance_group_box)
hbox.setSpacing(KDialog.spacingHint())
self.sizehbox = hbox
- self.leftspacer = QWidget(hbox)
+ self.leftspacer = TQWidget(hbox)
- self.customcolorsvbox = QVBox(hbox)
+ self.customcolorsvbox = TQVBox(hbox)
self.customcolorsvbox.setSpacing(KDialog.spacingHint())
- hbox = QHBox(self.customcolorsvbox)
+ hbox = TQHBox(self.customcolorsvbox)
hbox.setSpacing(KDialog.spacingHint())
- itemtext = QLabel(hbox,"itemtext")
+ itemtext = TQLabel(hbox,"itemtext")
itemtext.setText(i18n("Item:"))
self.itemcombo = KComboBox(0,hbox,"itemcombo")
@@ -1663,159 +1676,159 @@ class AppearancePage(QWidget):
self.connect(self.itemcombo,SIGNAL("activated(int)"),self.slotItemActivated)
hbox.setStretchFactor(self.itemcombo,1)
- self.customcolorsgrid = QWidget(self.customcolorsvbox)
- self.customcolorsgrid_layout = QGridLayout(self.customcolorsgrid,4,2)
+ self.customcolorsgrid = TQWidget(self.customcolorsvbox)
+ self.customcolorsgrid_layout = TQGridLayout(self.customcolorsgrid,4,2)
self.customcolorsgrid_layout.setSpacing(KDialog.spacingHint())
# Box 1 of 8
- self.colorsizehbox1 = QWidget(self.customcolorsgrid,"colorsizehbox1")
+ self.colorsizehbox1 = TQWidget(self.customcolorsgrid,"colorsizehbox1")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox1,0,0)
- self.colorsizehbox1_layout = QGridLayout(self.colorsizehbox1,1,2)
+ self.colorsizehbox1_layout = TQGridLayout(self.colorsizehbox1,1,2)
self.colorsizehbox1_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext1 = QLabel(self.colorsizehbox1,"colorsizetext1")
+ self.colorsizetext1 = TQLabel(self.colorsizehbox1,"colorsizetext1")
self.colorsizetext1.setText(i18n(":"))
- self.colorsizehbox1_layout.addWidget(self.colorsizetext1,0,0,Qt.AlignRight)
+ self.colorsizehbox1_layout.addWidget(self.colorsizetext1,0,0,TQt.AlignRight)
- self.sizespinbox1 = QSpinBox(self.colorsizehbox1,"sizespinbox1")
+ self.sizespinbox1 = TQSpinBox(self.colorsizehbox1,"sizespinbox1")
self.sizespinbox1.setMinValue(0)
self.connect(self.sizespinbox1,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo1 = KColorCombo(self.colorsizehbox1,"colorcombo1")
- self.connect(self.colorcombo1,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo1,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
# Box 2 of 8
- self.colorsizehbox2 = QWidget(self.customcolorsgrid,"colorsizehbox2")
+ self.colorsizehbox2 = TQWidget(self.customcolorsgrid,"colorsizehbox2")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox2,0,1)
- self.colorsizehbox2_layout = QGridLayout(self.colorsizehbox2,1,2)
+ self.colorsizehbox2_layout = TQGridLayout(self.colorsizehbox2,1,2)
self.colorsizehbox2_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext2 = QLabel(self.colorsizehbox2,"colorsizetext2")
+ self.colorsizetext2 = TQLabel(self.colorsizehbox2,"colorsizetext2")
self.colorsizetext2.setText(i18n(":"))
- self.colorsizehbox2_layout.addWidget(self.colorsizetext2,0,0,Qt.AlignRight)
+ self.colorsizehbox2_layout.addWidget(self.colorsizetext2,0,0,TQt.AlignRight)
- self.sizespinbox2 = QSpinBox(self.colorsizehbox2,"sizespinbox2")
+ self.sizespinbox2 = TQSpinBox(self.colorsizehbox2,"sizespinbox2")
self.sizespinbox2.setMinValue(0)
self.connect(self.sizespinbox2,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo2 = KColorCombo(self.colorsizehbox2,"colorcombo2")
- self.connect(self.colorcombo2,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo2,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
# Box 3 of 8
- self.colorsizehbox3 = QWidget(self.customcolorsgrid,"colorsizehbox3")
+ self.colorsizehbox3 = TQWidget(self.customcolorsgrid,"colorsizehbox3")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox3,1,0)
- self.colorsizehbox3_layout = QGridLayout(self.colorsizehbox3,1,2)
+ self.colorsizehbox3_layout = TQGridLayout(self.colorsizehbox3,1,2)
self.colorsizehbox3_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext3 = QLabel(self.colorsizehbox3,"colorsizetext3")
+ self.colorsizetext3 = TQLabel(self.colorsizehbox3,"colorsizetext3")
self.colorsizetext3.setText(i18n(":"))
- self.colorsizehbox3_layout.addWidget(self.colorsizetext3,0,0,Qt.AlignRight)
+ self.colorsizehbox3_layout.addWidget(self.colorsizetext3,0,0,TQt.AlignRight)
- self.sizespinbox3 = QSpinBox(self.colorsizehbox3,"sizespinbox3")
+ self.sizespinbox3 = TQSpinBox(self.colorsizehbox3,"sizespinbox3")
self.sizespinbox3.setMinValue(0)
self.connect(self.sizespinbox3,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo3 = KColorCombo(self.colorsizehbox3,"colorcombo3")
- self.connect(self.colorcombo3,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo3,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
# Box 4 of 8
- self.colorsizehbox4 = QWidget(self.customcolorsgrid,"colorsizehbox4")
+ self.colorsizehbox4 = TQWidget(self.customcolorsgrid,"colorsizehbox4")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox4,1,1)
- self.colorsizehbox4_layout = QGridLayout(self.colorsizehbox4,1,2)
+ self.colorsizehbox4_layout = TQGridLayout(self.colorsizehbox4,1,2)
self.colorsizehbox4_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext4 = QLabel(self.colorsizehbox4,"colorsizetext4")
+ self.colorsizetext4 = TQLabel(self.colorsizehbox4,"colorsizetext4")
self.colorsizetext4.setText(i18n(":"))
- self.colorsizehbox4_layout.addWidget(self.colorsizetext4,0,0,Qt.AlignRight)
+ self.colorsizehbox4_layout.addWidget(self.colorsizetext4,0,0,TQt.AlignRight)
- self.sizespinbox4 = QSpinBox(self.colorsizehbox4,"sizespinbox4")
+ self.sizespinbox4 = TQSpinBox(self.colorsizehbox4,"sizespinbox4")
self.sizespinbox4.setMinValue(0)
self.connect(self.sizespinbox4,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo4 = KColorCombo(self.colorsizehbox4,"colorcombo4")
- self.connect(self.colorcombo4,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo4,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
# Box 5 of 8
- self.colorsizehbox5 = QWidget(self.customcolorsgrid,"colorsizehbox5")
+ self.colorsizehbox5 = TQWidget(self.customcolorsgrid,"colorsizehbox5")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox5,2,0)
- self.colorsizehbox5_layout = QGridLayout(self.colorsizehbox5,1,2)
+ self.colorsizehbox5_layout = TQGridLayout(self.colorsizehbox5,1,2)
self.colorsizehbox5_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext5 = QLabel(self.colorsizehbox5,"colorsizetext5")
+ self.colorsizetext5 = TQLabel(self.colorsizehbox5,"colorsizetext5")
self.colorsizetext5.setText(i18n(":"))
- self.colorsizehbox5_layout.addWidget(self.colorsizetext5,0,0,Qt.AlignRight)
+ self.colorsizehbox5_layout.addWidget(self.colorsizetext5,0,0,TQt.AlignRight)
- self.sizespinbox5 = QSpinBox(self.colorsizehbox5,"sizespinbox5")
+ self.sizespinbox5 = TQSpinBox(self.colorsizehbox5,"sizespinbox5")
self.sizespinbox5.setMinValue(0)
self.connect(self.sizespinbox5,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo5 = KColorCombo(self.colorsizehbox5,"colorcombo5")
- self.connect(self.colorcombo5,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo5,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
# Box 6 of 8
- self.colorsizehbox6 = QWidget(self.customcolorsgrid,"colorsizehbox6")
+ self.colorsizehbox6 = TQWidget(self.customcolorsgrid,"colorsizehbox6")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox6,2,1)
- self.colorsizehbox6_layout = QGridLayout(self.colorsizehbox6,1,2)
+ self.colorsizehbox6_layout = TQGridLayout(self.colorsizehbox6,1,2)
self.colorsizehbox6_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext6 = QLabel(self.colorsizehbox6,"colorsizetext6")
+ self.colorsizetext6 = TQLabel(self.colorsizehbox6,"colorsizetext6")
self.colorsizetext6.setText(i18n(":"))
- self.colorsizehbox6_layout.addWidget(self.colorsizetext6,0,0,Qt.AlignRight)
+ self.colorsizehbox6_layout.addWidget(self.colorsizetext6,0,0,TQt.AlignRight)
- self.sizespinbox6 = QSpinBox(self.colorsizehbox6,"sizespinbox6")
+ self.sizespinbox6 = TQSpinBox(self.colorsizehbox6,"sizespinbox6")
self.sizespinbox6.setMinValue(0)
self.connect(self.sizespinbox6,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo6 = KColorCombo(self.colorsizehbox6,"colorcombo6")
- self.connect(self.colorcombo6,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo6,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
# Box 7 of 8
- self.colorsizehbox7 = QWidget(self.customcolorsgrid,"colorsizehbox7")
+ self.colorsizehbox7 = TQWidget(self.customcolorsgrid,"colorsizehbox7")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox7,3,0)
- self.colorsizehbox7_layout = QGridLayout(self.colorsizehbox7,1,2)
+ self.colorsizehbox7_layout = TQGridLayout(self.colorsizehbox7,1,2)
self.colorsizehbox7_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext7 = QLabel(self.colorsizehbox7,"colorsizetext7")
+ self.colorsizetext7 = TQLabel(self.colorsizehbox7,"colorsizetext7")
self.colorsizetext7.setText(i18n(":"))
- self.colorsizehbox7_layout.addWidget(self.colorsizetext7,0,0,Qt.AlignRight)
+ self.colorsizehbox7_layout.addWidget(self.colorsizetext7,0,0,TQt.AlignRight)
- self.sizespinbox7 = QSpinBox(self.colorsizehbox7,"sizespinbox7")
+ self.sizespinbox7 = TQSpinBox(self.colorsizehbox7,"sizespinbox7")
self.sizespinbox7.setMinValue(0)
self.connect(self.sizespinbox7,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo7 = KColorCombo(self.colorsizehbox7,"colorcombo7")
- self.connect(self.colorcombo7,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo7,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
# Box 8 of 8
- self.colorsizehbox8 = QWidget(self.customcolorsgrid,"colorsizehbox8")
+ self.colorsizehbox8 = TQWidget(self.customcolorsgrid,"colorsizehbox8")
self.customcolorsgrid_layout.addWidget(self.colorsizehbox8,3,1)
- self.colorsizehbox8_layout = QGridLayout(self.colorsizehbox8,1,2)
+ self.colorsizehbox8_layout = TQGridLayout(self.colorsizehbox8,1,2)
self.colorsizehbox8_layout.setSpacing(KDialog.spacingHint())
- self.colorsizetext8 = QLabel(self.colorsizehbox8,"colorsizetext8")
+ self.colorsizetext8 = TQLabel(self.colorsizehbox8,"colorsizetext8")
self.colorsizetext8.setText(i18n(":"))
- self.colorsizehbox8_layout.addWidget(self.colorsizetext8,0,0,Qt.AlignRight)
+ self.colorsizehbox8_layout.addWidget(self.colorsizetext8,0,0,TQt.AlignRight)
- self.sizespinbox8 = QSpinBox(self.colorsizehbox8,"sizespinbox8")
+ self.sizespinbox8 = TQSpinBox(self.colorsizehbox8,"sizespinbox8")
self.sizespinbox8.setMinValue(0)
self.connect(self.sizespinbox8,SIGNAL("valueChanged(int)"),self.slotSizeActivated)
self.colorcombo8 = KColorCombo(self.colorsizehbox8,"colorcombo8")
- self.connect(self.colorcombo8,SIGNAL("activated(const QColor &)"),self.slotColorActivated)
+ self.connect(self.colorcombo8,SIGNAL("activated(const TQColor &)"),self.slotColorActivated)
- spacer = QWidget(self.customcolorsvbox)
+ spacer = TQWidget(self.customcolorsvbox)
self.customcolorsvbox.setStretchFactor(spacer,1)
self.customcolorsvbox.setMinimumHeight(itemtext.height()*4.5)
#self.customcolorsvbox.setStretchFactor(self.customcolorsgrid,1)
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
appearance_tab_layout.addItem(bottomspacer)
self.selecteditem = None
self.config = TDEConfig("wineconfigrc",False,False)
self.reset()
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
def isChanged(self):
changed = False
@@ -1836,9 +1849,9 @@ class AppearancePage(QWidget):
for key in self.customizableitems[item][0].keys():
color = colors.get(key,"0 0 0")
color = color.split()
- color = QColor(int(color[0]),int(color[1]),int(color[2]))
+ color = TQColor(int(color[0]),int(color[1]),int(color[2]))
if not custom and self.customizableitems[item][0][key][1] !=\
- self.config.readColorEntry(key,QColor(0,0,0)):
+ self.config.readColorEntry(key,TQColor(0,0,0)):
self.__selectColorScheme(0)
custom = True
if self.customizableitems[item][0][key][1] != color:
@@ -1915,8 +1928,8 @@ class AppearancePage(QWidget):
for key in self.customizableitems[item][0].keys():
color = colors.get(key,"0 0 0")
color = color.split()
- color = QColor(int(color[0]),int(color[1]),int(color[2]))
- if color != self.config.readColorEntry(key,QColor(0,0,0)):
+ color = TQColor(int(color[0]),int(color[1]),int(color[2]))
+ if color != self.config.readColorEntry(key,TQColor(0,0,0)):
self.currentcustomcolorscheme = self.colorschemes[0]
self.customizableitems[item][0][key][1] = color
for key in self.customizableitems[item][1].keys():
@@ -2115,63 +2128,63 @@ class AppearancePage(QWidget):
config.setGroup("General")
self.customizableitems["Application Workspace"][0]["AppWorkSpace"][1] =\
- config.readColorEntry("background",QColor(100,100,100))
+ config.readColorEntry("background",TQColor(100,100,100))
self.customizableitems["Buttons"][0]["ButtonFace"][1] =\
- config.readColorEntry("background",QColor(230,230,230))
+ config.readColorEntry("background",TQColor(230,230,230))
self.customizableitems["Buttons"][0]["ButtonHilight"][1] =\
- config.readColorEntry("windowBackground",QColor(240,240,240))
+ config.readColorEntry("windowBackground",TQColor(240,240,240))
self.customizableitems["Buttons"][0]["ButtonLight"][1] =\
- config.readColorEntry("selectBackground",QColor(200,200,200)).light(135)
+ config.readColorEntry("selectBackground",TQColor(200,200,200)).light(135)
self.customizableitems["Buttons"][0]["ButtonShadow"][1] =\
- config.readColorEntry("background",QColor(100,100,100)).dark(180)
+ config.readColorEntry("background",TQColor(100,100,100)).dark(180)
self.customizableitems["Buttons"][0]["ButtonText"][1] =\
- config.readColorEntry("buttonForeground",QColor(0,0,0))
+ config.readColorEntry("buttonForeground",TQColor(0,0,0))
self.customizableitems["Buttons"][0]["ButtonAlternateFace"][1] =\
- config.readColorEntry("background",QColor(230,230,230))
+ config.readColorEntry("background",TQColor(230,230,230))
self.customizableitems["Buttons"][0]["ButtonDkShadow"][1] =\
- config.readColorEntry("selectBackground",QColor(0,0,0)).dark(146)
+ config.readColorEntry("selectBackground",TQColor(0,0,0)).dark(146)
self.customizableitems["Buttons"][0]["WindowFrame"][1] =\
- config.readColorEntry("selectBackground",QColor(0,0,0))
+ config.readColorEntry("selectBackground",TQColor(0,0,0))
self.customizableitems["Menu"][0]["Menu"][1] =\
- config.readColorEntry("background",QColor(230,230,230)).light(105)
+ config.readColorEntry("background",TQColor(230,230,230)).light(105)
self.customizableitems["Menu"][0]["MenuBar"][1] =\
- config.readColorEntry("background",QColor(230,230,230))
+ config.readColorEntry("background",TQColor(230,230,230))
self.customizableitems["Menu"][0]["MenuHilight"][1] =\
- config.readColorEntry("selectBackground",QColor(0,0,0))
+ config.readColorEntry("selectBackground",TQColor(0,0,0))
self.customizableitems["Menu"][0]["MenuText"][1] =\
- config.readColorEntry("foreground",QColor(0,0,0))
+ config.readColorEntry("foreground",TQColor(0,0,0))
self.customizableitems["Scrollbar"][0]["Scrollbar"][1] =\
- config.readColorEntry("background",QColor(230,230,230))
+ config.readColorEntry("background",TQColor(230,230,230))
self.customizableitems["Window"][0]["Window"][1] =\
- config.readColorEntry("windowBackground",QColor(255,255,255))
+ config.readColorEntry("windowBackground",TQColor(255,255,255))
self.customizableitems["Window"][0]["WindowText"][1] =\
- config.readColorEntry("foreground",QColor(0,0,0))
+ config.readColorEntry("foreground",TQColor(0,0,0))
self.customizableitems["Selected Items"][0]["Hilight"][1] =\
- config.readColorEntry("selectBackground",QColor(0,0,0))
+ config.readColorEntry("selectBackground",TQColor(0,0,0))
self.customizableitems["Selected Items"][0]["HilightText"][1] =\
- config.readColorEntry("selectForeground",QColor(255,255,255))
+ config.readColorEntry("selectForeground",TQColor(255,255,255))
config.setGroup("WM")
self.customizableitems["Title Bar"][0]["ActiveTitle"][1] =\
- config.readColorEntry("activeBackground",QColor(10,10,100))
+ config.readColorEntry("activeBackground",TQColor(10,10,100))
self.customizableitems["Title Bar"][0]["GradientActiveTitle"][1] =\
- config.readColorEntry("activeBlend",QColor(10,10,200)).light(110)
+ config.readColorEntry("activeBlend",TQColor(10,10,200)).light(110)
self.customizableitems["Title Bar"][0]["InactiveTitle"][1] =\
- config.readColorEntry("inactiveBackground",QColor(100,100,100))
+ config.readColorEntry("inactiveBackground",TQColor(100,100,100))
self.customizableitems["Title Bar"][0]["GradientInactiveTitle"][1] =\
- config.readColorEntry("inactiveBlend",QColor(100,100,200))
+ config.readColorEntry("inactiveBlend",TQColor(100,100,200))
self.customizableitems["Title Bar"][0]["TitleText"][1] =\
- config.readColorEntry("activeForeground",QColor(255,255,255))
+ config.readColorEntry("activeForeground",TQColor(255,255,255))
self.customizableitems["Title Bar"][0]["InactiveTitleText"][1] =\
- config.readColorEntry("inactiveForeground",QColor(250,250,250))
+ config.readColorEntry("inactiveForeground",TQColor(250,250,250))
self.customizableitems["Window Border"][0]["ActiveBorder"][1] =\
- config.readColorEntry("frame",QColor(10,10,100))
+ config.readColorEntry("frame",TQColor(10,10,100))
self.customizableitems["Window Border"][0]["InactiveBorder"][1] =\
- config.readColorEntry("frame",QColor(100,100,200))
+ config.readColorEntry("frame",TQColor(100,100,200))
config.setGroup("Desktop0")
self.customizableitems["Desktop"][0]["Background"][1] =\
- config.readColorEntry("Color1",QColor(50,150,85))
+ config.readColorEntry("Color1",TQColor(50,150,85))
self.saveColorScheme(self.colorschemes[1])
@@ -2229,7 +2242,7 @@ class AppearancePage(QWidget):
self.config.setGroup(self.colorschemes[colorid])
for item in self.customizableitems.keys():
for key in self.customizableitems[item][0].keys():
- color = self.config.readColorEntry(key,QColor(0,0,0))
+ color = self.config.readColorEntry(key,TQColor(0,0,0))
self.customizableitems[item][0][key][1] = color
for key in self.customizableitems[item][1].keys():
size = self.config.readNumEntry(key,1)
@@ -2734,109 +2747,109 @@ class AppearancePage(QWidget):
# --- Some default color schemes, with names ---
preset1 = (unicode(i18n("Purple")),
{"Window Border":
- ({"ActiveBorder":[unicode(i18n("Active Color:")),QColor(239,239,239)],
- "InactiveBorder":[unicode(i18n("Inactive Color:")),QColor(239,239,239)]},
+ ({"ActiveBorder":[unicode(i18n("Active Color:")),TQColor(239,239,239)],
+ "InactiveBorder":[unicode(i18n("Inactive Color:")),TQColor(239,239,239)]},
{"BorderWidth":[unicode(i18n("Width:")),1]}), #ActiveBorder, InactiveBorder, metrics: BorderWidth
"Title Bar":
- ({"ActiveTitle":[unicode(i18n("Active Color:")),QColor(91,86,168)],
- "GradientActiveTitle":[unicode(i18n("Gradient:")),QColor(136,118,202)],
- "InactiveTitle":[unicode(i18n("Inactive Color:")),QColor(223,225,230)],
- "GradientInactiveTitle":[unicode(i18n("Gradient:")),QColor(157,170,186)],
- "TitleText":[unicode(i18n("Active Text:")),QColor(255,255,255)],
- "InactiveTitleText":[unicode(i18n("Inactive Text:")),QColor(168,168,168)]},
+ ({"ActiveTitle":[unicode(i18n("Active Color:")),TQColor(91,86,168)],
+ "GradientActiveTitle":[unicode(i18n("Gradient:")),TQColor(136,118,202)],
+ "InactiveTitle":[unicode(i18n("Inactive Color:")),TQColor(223,225,230)],
+ "GradientInactiveTitle":[unicode(i18n("Gradient:")),TQColor(157,170,186)],
+ "TitleText":[unicode(i18n("Active Text:")),TQColor(255,255,255)],
+ "InactiveTitleText":[unicode(i18n("Inactive Text:")),TQColor(168,168,168)]},
{}), #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
"Application Workspace":
- ({"AppWorkSpace":[unicode(i18n("Background Color:")),QColor(90,90,90)]},
+ ({"AppWorkSpace":[unicode(i18n("Background Color:")),TQColor(90,90,90)]},
{}), #AppWorkSpace "Background"
"Buttons":
- ({"ButtonFace":[unicode(i18n("Face:")),QColor(238,239,242)],
- "ButtonHilight":[unicode(i18n("Hilight:")),QColor(255,255,255)],
- "ButtonLight":[unicode(i18n("Light:")),QColor(201,199,255)],
- "ButtonShadow":[unicode(i18n("Shadow:")),QColor(132,132,134)],
- "ButtonText":[unicode(i18n("Text Color:")),QColor(0,0,0)],
- "ButtonAlternateFace":[unicode(i18n("Alternate Face:")),QColor(238,239,242)],
- "ButtonDkShadow":[unicode(i18n("Dark Shadow:")),QColor(98,96,143)],
- "WindowFrame":[unicode(i18n("Frame:")),QColor(144,140,209)]},
+ ({"ButtonFace":[unicode(i18n("Face:")),TQColor(238,239,242)],
+ "ButtonHilight":[unicode(i18n("Hilight:")),TQColor(255,255,255)],
+ "ButtonLight":[unicode(i18n("Light:")),TQColor(201,199,255)],
+ "ButtonShadow":[unicode(i18n("Shadow:")),TQColor(132,132,134)],
+ "ButtonText":[unicode(i18n("Text Color:")),TQColor(0,0,0)],
+ "ButtonAlternateFace":[unicode(i18n("Alternate Face:")),TQColor(238,239,242)],
+ "ButtonDkShadow":[unicode(i18n("Dark Shadow:")),TQColor(98,96,143)],
+ "WindowFrame":[unicode(i18n("Frame:")),TQColor(144,140,209)]},
{}), #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
"Caption Buttons":
({},
{"CaptionHeight":[unicode(i18n("Height:")),22],
"CaptionWidth":[unicode(i18n("Width:")),22]}), #Metrics: CaptionHeight, CaptionWidth
"Desktop":
- ({"Background":[unicode(i18n("Background:")),QColor(146,127,188)]},
+ ({"Background":[unicode(i18n("Background:")),TQColor(146,127,188)]},
{}), #Background
"Menu":
- ({"Menu":[unicode(i18n("Menu Background:")),QColor(250,251,254)],
- "MenuBar":[unicode(i18n("Menu Bar Color:")),QColor(238,239,242)],
- "MenuHilight":[unicode(i18n("Menu Hilight:")),QColor(144,140,209)],
- "MenuText":[unicode(i18n("Text Color:")),QColor(0,0,0)]},
+ ({"Menu":[unicode(i18n("Menu Background:")),TQColor(250,251,254)],
+ "MenuBar":[unicode(i18n("Menu Bar Color:")),TQColor(238,239,242)],
+ "MenuHilight":[unicode(i18n("Menu Hilight:")),TQColor(144,140,209)],
+ "MenuText":[unicode(i18n("Text Color:")),TQColor(0,0,0)]},
{"MenuHeight":[unicode(i18n("Menu Bar Height:")),22]}), #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
"Scrollbar":
- ({"Scrollbar":[unicode(i18n("Color:")),QColor(238,239,242)]},
+ ({"Scrollbar":[unicode(i18n("Color:")),TQColor(238,239,242)]},
{"ScrollWidth":[unicode(i18n("Width:")),16]}), #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
"Window":
- ({"Window":[unicode(i18n("Background:")),QColor(255,255,255)],
- "WindowText":[unicode(i18n("Text Color:")),QColor(0,0,0)]},
+ ({"Window":[unicode(i18n("Background:")),TQColor(255,255,255)],
+ "WindowText":[unicode(i18n("Text Color:")),TQColor(0,0,0)]},
{}), #Window "Background", WindowText
"Selected Items":
- ({"Hilight":[unicode(i18n("Hilight Color:")),QColor(144,140,209)],
- "HilightText":[unicode(i18n("Text Color:")),QColor(255,255,255)]},
+ ({"Hilight":[unicode(i18n("Hilight Color:")),TQColor(144,140,209)],
+ "HilightText":[unicode(i18n("Text Color:")),TQColor(255,255,255)]},
{})}) #Hilight, HilightText
preset2 = (unicode(i18n("Blue")),
{"Window Border":
- ({"ActiveBorder":[unicode(i18n("Active Color:")),QColor(239,239,239)],
- "InactiveBorder":[unicode(i18n("Inactive Color:")),QColor(239,239,239)]},
+ ({"ActiveBorder":[unicode(i18n("Active Color:")),TQColor(239,239,239)],
+ "InactiveBorder":[unicode(i18n("Inactive Color:")),TQColor(239,239,239)]},
{"BorderWidth":[unicode(i18n("Width:")),1]}), #ActiveBorder, InactiveBorder, metrics: BorderWidth
"Title Bar":
- ({"ActiveTitle":[unicode(i18n("Active Color:")),QColor(0,113,201)],
- "GradientActiveTitle":[unicode(i18n("Gradient:")),QColor(87,161,219)],
- "InactiveTitle":[unicode(i18n("Inactive Color:")),QColor(191,191,191)],
- "GradientInactiveTitle":[unicode(i18n("Gradient:")),QColor(171,171,171)],
- "TitleText":[unicode(i18n("Active Text:")),QColor(255,255,255)],
- "InactiveTitleText":[unicode(i18n("Inactive Text:")),QColor(95,95,95)]},
+ ({"ActiveTitle":[unicode(i18n("Active Color:")),TQColor(0,113,201)],
+ "GradientActiveTitle":[unicode(i18n("Gradient:")),TQColor(87,161,219)],
+ "InactiveTitle":[unicode(i18n("Inactive Color:")),TQColor(191,191,191)],
+ "GradientInactiveTitle":[unicode(i18n("Gradient:")),TQColor(171,171,171)],
+ "TitleText":[unicode(i18n("Active Text:")),TQColor(255,255,255)],
+ "InactiveTitleText":[unicode(i18n("Inactive Text:")),TQColor(95,95,95)]},
{}), #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
"Application Workspace":
- ({"AppWorkSpace":[unicode(i18n("Background Color:")),QColor(90,90,90)]},
+ ({"AppWorkSpace":[unicode(i18n("Background Color:")),TQColor(90,90,90)]},
{}), #AppWorkSpace "Background"
"Buttons":
- ({"ButtonFace":[unicode(i18n("Face:")),QColor(239,239,239)],
- "ButtonHilight":[unicode(i18n("Hilight:")),QColor(246,246,246)],
- "ButtonLight":[unicode(i18n("Light:")),QColor(191,207,251)],
- "ButtonShadow":[unicode(i18n("Shadow:")),QColor(148,148,153)],
- "ButtonText":[unicode(i18n("Text Color:")),QColor(0,0,0)],
- "ButtonAlternateFace":[unicode(i18n("Alternate Face:")),QColor(238,239,242)],
- "ButtonDkShadow":[unicode(i18n("Dark Shadow:")),QColor(50,101,146)],
- "WindowFrame":[unicode(i18n("Frame:")),QColor(74,149,214)]},
+ ({"ButtonFace":[unicode(i18n("Face:")),TQColor(239,239,239)],
+ "ButtonHilight":[unicode(i18n("Hilight:")),TQColor(246,246,246)],
+ "ButtonLight":[unicode(i18n("Light:")),TQColor(191,207,251)],
+ "ButtonShadow":[unicode(i18n("Shadow:")),TQColor(148,148,153)],
+ "ButtonText":[unicode(i18n("Text Color:")),TQColor(0,0,0)],
+ "ButtonAlternateFace":[unicode(i18n("Alternate Face:")),TQColor(238,239,242)],
+ "ButtonDkShadow":[unicode(i18n("Dark Shadow:")),TQColor(50,101,146)],
+ "WindowFrame":[unicode(i18n("Frame:")),TQColor(74,149,214)]},
{}), #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
"Caption Buttons":
({},
{"CaptionHeight":[unicode(i18n("Height:")),22],
"CaptionWidth":[unicode(i18n("Width:")),22]}), #Metrics: CaptionHeight, CaptionWidth
"Desktop":
- ({"Background":[unicode(i18n("Background:")),QColor(44,109,189)]},
+ ({"Background":[unicode(i18n("Background:")),TQColor(44,109,189)]},
{}), #Background
"Menu":
- ({"Menu":[unicode(i18n("Menu Background:")),QColor(249,249,249)],
- "MenuBar":[unicode(i18n("Menu Bar Color:")),QColor(239,239,239)],
- "MenuHilight":[unicode(i18n("Menu Hilight:")),QColor(74,149,214)],
- "MenuText":[unicode(i18n("Text Color:")),QColor(0,0,0)]},
+ ({"Menu":[unicode(i18n("Menu Background:")),TQColor(249,249,249)],
+ "MenuBar":[unicode(i18n("Menu Bar Color:")),TQColor(239,239,239)],
+ "MenuHilight":[unicode(i18n("Menu Hilight:")),TQColor(74,149,214)],
+ "MenuText":[unicode(i18n("Text Color:")),TQColor(0,0,0)]},
{"MenuHeight":[unicode(i18n("Menu Bar Height:")),22]}), #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
"Scrollbar":
- ({"Scrollbar":[unicode(i18n("Color:")),QColor(230,230,230)]},
+ ({"Scrollbar":[unicode(i18n("Color:")),TQColor(230,230,230)]},
{"ScrollWidth":[unicode(i18n("Width:")),16]}), #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
"Window":
- ({"Window":[unicode(i18n("Background:")),QColor(255,255,255)],
- "WindowText":[unicode(i18n("Text Color:")),QColor(0,0,0)]},
+ ({"Window":[unicode(i18n("Background:")),TQColor(255,255,255)],
+ "WindowText":[unicode(i18n("Text Color:")),TQColor(0,0,0)]},
{}), #Window "Background", WindowText
"Selected Items":
- ({"Hilight":[unicode(i18n("Hilight Color:")),QColor(74,149,214)],
- "HilightText":[unicode(i18n("Text Color:")),QColor(255,255,255)]},
+ ({"Hilight":[unicode(i18n("Hilight Color:")),TQColor(74,149,214)],
+ "HilightText":[unicode(i18n("Text Color:")),TQColor(255,255,255)]},
{})}) #Hilight, HilightText
presets = [preset1,preset2]
############################################################################
-class GeneralPage(QWidget):
+class GeneralPage(TQWidget):
winversions = wineread.winversions
@@ -2855,49 +2868,49 @@ class GeneralPage(QWidget):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
global application
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
if not name:
self.setName("GeneralTab")
- general_tab_layout = QVBoxLayout(self,0,0,"GeneralTabLayout")
+ general_tab_layout = TQVBoxLayout(self,0,0,"GeneralTabLayout")
self.top_layout = general_tab_layout
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
general_tab_layout.addWidget(vbox)
if application:
- appwarning = QLabel(vbox,"appwarning")
+ appwarning = TQLabel(vbox,"appwarning")
appwarning.setText(i18n("Application specific settings for <b>" +\
application + "</b><p>Changing a setting here will permanently " +\
"make that setting independent of settings for all other " +\
"applications.</p>"))
- appwarning.setFrameStyle( QFrame.Box | QFrame.Raised )
+ appwarning.setFrameStyle( TQFrame.Box | TQFrame.Raised )
self.winversions = self.winversions + (( "global",\
unicode(i18n("Use Global Setting")), 0, 0, 0, "", "", 0, 0, ""),)
self.verdic["global"]=11
- hbox = QHBox(vbox)
+ hbox = TQHBox(vbox)
hbox.setSpacing(KDialog.spacingHint())
- versiontext = QLabel(hbox,"versiontext")
+ versiontext = TQLabel(hbox,"versiontext")
versiontext.setText(i18n("Windows version:"))
self.versioncombo = KComboBox(0,hbox,"versioncombo")
self.fillVersionCombo(self.versioncombo)
self.connect(self.versioncombo,SIGNAL("activated(int)"),self.slotVersionActivated)
- spacer = QWidget(hbox)
+ spacer = TQWidget(hbox)
hbox.setStretchFactor(spacer,1)
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
general_tab_layout.addItem(bottomspacer)
self.reset()
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
def isChanged(self):
changed = False
@@ -2943,7 +2956,7 @@ class GeneralPage(QWidget):
############################################################################
-class ApplicationsPage(QWidget):
+class ApplicationsPage(TQWidget):
applications = []
@@ -2951,35 +2964,35 @@ class ApplicationsPage(QWidget):
mailers = []
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
if not name:
self.setName("ApplicationsTab")
- applications_tab_layout = QVBoxLayout(self,0,0,"ApplicationsTabLayout")
+ applications_tab_layout = TQVBoxLayout(self,0,0,"ApplicationsTabLayout")
self.top_layout = applications_tab_layout
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
applications_tab_layout.addWidget(vbox)
# -- Application Specific Settings group --
- self.perapp_group_box = QHGroupBox(vbox)
+ self.perapp_group_box = TQHGroupBox(vbox)
self.perapp_group_box.setTitle(i18n("Application specific settings"))
self.perapp_group_box.setInsideSpacing(KDialog.spacingHint())
self.perapp_group_box.setInsideMargin(KDialog.marginHint())
- vbox2 = QVBox(self.perapp_group_box)
+ vbox2 = TQVBox(self.perapp_group_box)
vbox2.setSpacing(KDialog.spacingHint())
- applicationstext = QLabel(vbox2,"applicationstext")
+ applicationstext = TQLabel(vbox2,"applicationstext")
applicationstext.setText(i18n("Change application specific settings for:"))
self.appslist = TDEListBox(vbox2)
- self.connect(self.appslist, SIGNAL("selectionChanged(QListBoxItem *)"), self.slotListClicked)
+ self.connect(self.appslist, SIGNAL("selectionChanged(TQListBoxItem *)"), self.slotListClicked)
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
self.addbutton = KPushButton(i18n("Add Application..."),hbox)
@@ -2988,7 +3001,7 @@ class ApplicationsPage(QWidget):
self.removebutton = KPushButton(i18n("Remove..."),hbox)
self.connect(self.removebutton,SIGNAL("clicked()"),self.slotRemoveClicked)
- spacer = QWidget(hbox)
+ spacer = TQWidget(hbox)
hbox.setStretchFactor(spacer,1)
self.settingsbutton = KPushButton(i18n("Settings"),hbox)
@@ -2996,17 +3009,17 @@ class ApplicationsPage(QWidget):
# -- Native Applications Settings group --
# Removed pending a patch to winebrowser
- #self.nativeapp_group_box = QVGroupBox(vbox)
+ #self.nativeapp_group_box = TQVGroupBox(vbox)
#self.nativeapp_group_box.setTitle(i18n("Native applications"))
#self.nativeapp_group_box.setInsideSpacing(KDialog.spacingHint())
#self.nativeapp_group_box.setInsideMargin(KDialog.marginHint())
- #vbox3 = QWidget(self.nativeapp_group_box)
+ #vbox3 = TQWidget(self.nativeapp_group_box)
- #native_apps_layout = QGridLayout(vbox3,2,3)
+ #native_apps_layout = TQGridLayout(vbox3,2,3)
#native_apps_layout.setSpacing(KDialog.spacingHint())
- #browsertext = QLabel(vbox3,"browsertext")
+ #browsertext = TQLabel(vbox3,"browsertext")
#browsertext.setText(i18n("Web Browser:"))
#native_apps_layout.addWidget(browsertext,0,0)
@@ -3024,7 +3037,7 @@ class ApplicationsPage(QWidget):
#self.connect(self.browserbutton,SIGNAL("clicked()"),self.slotBrowserClicked)
#native_apps_layout.addWidget(self.browserbutton,0,2)
- #mailertext = QLabel(vbox3,"mailertext")
+ #mailertext = TQLabel(vbox3,"mailertext")
#mailertext.setText(i18n("Mail Client:"))
#native_apps_layout.addWidget(mailertext,1,0)
@@ -3040,7 +3053,7 @@ class ApplicationsPage(QWidget):
#self.connect(self.mailerbutton,SIGNAL("clicked()"),self.slotMailerClicked)
#native_apps_layout.addWidget(self.mailerbutton,1,2)
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
applications_tab_layout.addItem(bottomspacer)
self.changed = False
@@ -3062,7 +3075,7 @@ class ApplicationsPage(QWidget):
self.reset()
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
def isChanged(self):
changed = False
@@ -3253,7 +3266,7 @@ class ApplicationsPage(QWidget):
self.applications.sort()
- self.appslist.insertStringList(QStringList.fromStrList(self.applications))
+ self.appslist.insertStringList(TQStringList.fromStrList(self.applications))
self.__selectApp(None)
@@ -3317,7 +3330,7 @@ class ApplicationsPage(QWidget):
############################################################################
-class LibrariesPage(QWidget):
+class LibrariesPage(TQWidget):
dlls = [""]
overriddendlls = {}
@@ -3331,35 +3344,35 @@ class LibrariesPage(QWidget):
unicode(i18n("Disable"))]
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
- QWidget.__init__(self,parent)
+ TQWidget.__init__(self,parent)
if not name:
self.setName("LibrariesTab")
- libraries_tab_layout = QVBoxLayout(self,0,0,"LibrariesTabLayout")
+ libraries_tab_layout = TQVBoxLayout(self,0,0,"LibrariesTabLayout")
self.top_layout = libraries_tab_layout
- vbox = QVBox(self)
+ vbox = TQVBox(self)
vbox.setSpacing(KDialog.spacingHint())
libraries_tab_layout.addWidget(vbox)
# -- DLL overrides group
- self.overrides_group_box = QHGroupBox(vbox)
+ self.overrides_group_box = TQHGroupBox(vbox)
self.overrides_group_box.setTitle(i18n("DLL Overrides"))
self.overrides_group_box.setInsideSpacing(KDialog.spacingHint())
self.overrides_group_box.setInsideMargin(KDialog.marginHint())
- vbox2 = QVBox(self.overrides_group_box)
+ vbox2 = TQVBox(self.overrides_group_box)
vbox2.setSpacing(KDialog.spacingHint())
- spacer = QWidget(vbox2)
+ spacer = TQWidget(vbox2)
vbox2.setStretchFactor(spacer,1)
- newtext = QLabel(vbox2,"newtext")
+ newtext = TQLabel(vbox2,"newtext")
newtext.setText(i18n("New override for library:"))
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
self.dllcombo = KComboBox(0,hbox,"dllcombo")
@@ -3367,7 +3380,7 @@ class LibrariesPage(QWidget):
hbox.setStretchFactor(self.dllcombo,3)
self.connect(self.dllcombo,SIGNAL("activated(int)"),self.slotDllComboActivated)
- QToolTip.add(self.dllcombo,
+ TQToolTip.add(self.dllcombo,
i18n("<p>Dynamic Link Libraries can be specified individually to" +\
" be either builtin (provided by Wine) or native (taken from" +\
" Windows or provided by the application).</p>"))
@@ -3375,23 +3388,23 @@ class LibrariesPage(QWidget):
hbox.setStretchFactor(self.addbutton,1)
self.connect(self.addbutton,SIGNAL("clicked()"),self.slotAddClicked)
- existingtext = QLabel(vbox2,"existingtext")
+ existingtext = TQLabel(vbox2,"existingtext")
existingtext.setText(i18n("Existing overrides:"))
- hbox = QHBox(vbox2)
+ hbox = TQHBox(vbox2)
hbox.setSpacing(KDialog.spacingHint())
self.dllslist = TDEListView(hbox)
self.dllslist.addColumn(i18n("Library"))
self.dllslist.addColumn(i18n("Load Order"))
self.dllslist.setAllColumnsShowFocus(True)
- self.dllslist.setSelectionMode(QListView.Single)
+ self.dllslist.setSelectionMode(TQListView.Single)
self.dllslist.setSorting(-1,True)
hbox.setStretchFactor(self.dllslist,3)
- self.connect(self.dllslist, SIGNAL("selectionChanged(QListViewItem *)"), self.slotListClicked)
+ self.connect(self.dllslist, SIGNAL("selectionChanged(TQListViewItem *)"), self.slotListClicked)
- vbox3 = QVBox(hbox)
+ vbox3 = TQVBox(hbox)
vbox3.setSpacing(KDialog.spacingHint())
hbox.setStretchFactor(vbox3,1)
@@ -3403,17 +3416,17 @@ class LibrariesPage(QWidget):
self.connect(self.removebutton,SIGNAL("clicked()"),self.slotRemoveClicked)
self.removebutton.setEnabled(False)
- spacer = QWidget(vbox3)
+ spacer = TQWidget(vbox3)
vbox3.setStretchFactor(spacer,1)
- bottomspacer = QSpacerItem(51,160,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ bottomspacer = TQSpacerItem(51,160,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
libraries_tab_layout.addItem(bottomspacer)
self.changed = False
self.reset()
- self.clearWState(Qt.WState_Polished)
+ self.clearWState(TQt.WState_Polished)
def isChanged(self):
changed = False
@@ -3463,7 +3476,7 @@ class LibrariesPage(QWidget):
if self.selecteddll:
order = KInputDialog.getItem(i18n("Edit Library Override"),\
unicode(i18n("Load order for %s:")) % (unicode(self.selecteddll),),
- QStringList.fromStrList(self.orderoptionstr),\
+ TQStringList.fromStrList(self.orderoptionstr),\
False,0,self,"editdll")
if order[1]:
@@ -3488,7 +3501,7 @@ class LibrariesPage(QWidget):
lastdll = None
for dll,order in self.overriddendlls.iteritems():
- lvi = QListViewItem(self.dllslist,dll,order)
+ lvi = TQListViewItem(self.dllslist,dll,order)
self.dllsToListItems[dll] = lvi
if self.selecteddll and self.selecteddll==dll:
firstselecteddll = dll