summaryrefslogtreecommitdiffstats
path: root/DesktopEffects/DesktopEffectsDialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'DesktopEffects/DesktopEffectsDialog.py')
-rw-r--r--DesktopEffects/DesktopEffectsDialog.py116
1 files changed, 58 insertions, 58 deletions
diff --git a/DesktopEffects/DesktopEffectsDialog.py b/DesktopEffects/DesktopEffectsDialog.py
index aeff061..a4f0030 100644
--- a/DesktopEffects/DesktopEffectsDialog.py
+++ b/DesktopEffects/DesktopEffectsDialog.py
@@ -3,13 +3,13 @@
# Form implementation generated from reading ui file 'data/DesktopEffectsDialog.ui'
#
# Created: Pá lis 2 18:10:24 2007
-# by: The PyQt User Interface Compiler (pyuic) 3.17.3
+# by: The PyTQt User Interface Compiler (pyuic) 3.17.3
#
# WARNING! All changes made in this file will be lost!
import sys
-from qt import *
+from python_tqt.qt import *
from tdecore import TDECmdLineArgs, TDEApplication
from tdeui import *
@@ -2562,149 +2562,149 @@ image2_data = [
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"
]
-class DesktopEffectsDialog(QDialog):
+class DesktopEffectsDialog(TQDialog):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
- QDialog.__init__(self,parent,name,modal,fl)
+ TQDialog.__init__(self,parent,name,modal,fl)
- self.image0 = QPixmap()
+ self.image0 = TQPixmap()
self.image0.loadFromData(image0_data,"PNG")
- self.image1 = QPixmap()
+ self.image1 = TQPixmap()
self.image1.loadFromData(image1_data,"PNG")
- self.image2 = QPixmap(image2_data)
+ self.image2 = TQPixmap(image2_data)
if not name:
self.setName("DesktopEffectsDialog")
- DesktopEffectsDialogLayout = QVBoxLayout(self,11,6,"DesktopEffectsDialogLayout")
+ DesktopEffectsDialogLayout = TQVBoxLayout(self,11,6,"DesktopEffectsDialogLayout")
- layout17 = QHBoxLayout(None,0,6,"layout17")
+ layout17 = TQHBoxLayout(None,0,6,"layout17")
- self.packageIcon = QLabel(self,"packageIcon")
- self.packageIcon.setMaximumSize(QSize(32,32))
+ self.packageIcon = TQLabel(self,"packageIcon")
+ self.packageIcon.setMaximumSize(TQSize(32,32))
self.packageIcon.setPixmap(self.image0)
self.packageIcon.setScaledContents(1)
layout17.addWidget(self.packageIcon)
- self.packageText = QLabel(self,"packageText")
+ self.packageText = TQLabel(self,"packageText")
layout17.addWidget(self.packageText)
- self.installButton = QPushButton(self,"installButton")
- self.installButton.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.installButton.sizePolicy().hasHeightForWidth()))
+ self.installButton = TQPushButton(self,"installButton")
+ self.installButton.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.installButton.sizePolicy().hasHeightForWidth()))
layout17.addWidget(self.installButton)
DesktopEffectsDialogLayout.addLayout(layout17)
- warningLayout = QHBoxLayout(None,0,6,"warningLayout")
+ warningLayout = TQHBoxLayout(None,0,6,"warningLayout")
- self.warningIcon = QLabel(self,"warningIcon")
- self.warningIcon.setSizePolicy(QSizePolicy(QSizePolicy.Maximum,QSizePolicy.Maximum,0,0,self.warningIcon.sizePolicy().hasHeightForWidth()))
+ self.warningIcon = TQLabel(self,"warningIcon")
+ self.warningIcon.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum,TQSizePolicy.Maximum,0,0,self.warningIcon.sizePolicy().hasHeightForWidth()))
self.warningIcon.setPixmap(self.image1)
self.warningIcon.setScaledContents(1)
warningLayout.addWidget(self.warningIcon)
- self.warningText = QLabel(self,"warningText")
+ self.warningText = TQLabel(self,"warningText")
warningLayout.addWidget(self.warningText)
DesktopEffectsDialogLayout.addLayout(warningLayout)
- self.effectsGroup = QButtonGroup(self,"effectsGroup")
- self.effectsGroup.setColumnLayout(0,Qt.Vertical)
+ self.effectsGroup = TQButtonGroup(self,"effectsGroup")
+ self.effectsGroup.setColumnLayout(0,TQt.Vertical)
self.effectsGroup.layout().setSpacing(6)
self.effectsGroup.layout().setMargin(11)
- effectsGroupLayout = QVBoxLayout(self.effectsGroup.layout())
- effectsGroupLayout.setAlignment(Qt.AlignTop)
+ effectsGroupLayout = TQVBoxLayout(self.effectsGroup.layout())
+ effectsGroupLayout.setAlignment(TQt.AlignTop)
- layout5 = QHBoxLayout(None,0,6,"layout5")
+ layout5 = TQHBoxLayout(None,0,6,"layout5")
- layout4 = QVBoxLayout(None,0,6,"layout4")
+ layout4 = TQVBoxLayout(None,0,6,"layout4")
- self.radioButton4 = QRadioButton(self.effectsGroup,"radioButton4")
+ self.radioButton4 = TQRadioButton(self.effectsGroup,"radioButton4")
layout4.addWidget(self.radioButton4)
- self.noEffectsText = QLabel(self.effectsGroup,"noEffectsText")
+ self.noEffectsText = TQLabel(self.effectsGroup,"noEffectsText")
layout4.addWidget(self.noEffectsText)
layout5.addLayout(layout4)
- self.noEffectsImage = QLabel(self.effectsGroup,"noEffectsImage")
- self.noEffectsImage.setSizePolicy(QSizePolicy(QSizePolicy.Maximum,QSizePolicy.Maximum,0,0,self.noEffectsImage.sizePolicy().hasHeightForWidth()))
- self.noEffectsImage.setMaximumSize(QSize(150,80))
+ self.noEffectsImage = TQLabel(self.effectsGroup,"noEffectsImage")
+ self.noEffectsImage.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum,TQSizePolicy.Maximum,0,0,self.noEffectsImage.sizePolicy().hasHeightForWidth()))
+ self.noEffectsImage.setMaximumSize(TQSize(150,80))
self.noEffectsImage.setPixmap(self.image2)
self.noEffectsImage.setScaledContents(1)
layout5.addWidget(self.noEffectsImage)
effectsGroupLayout.addLayout(layout5)
- layout5_2 = QHBoxLayout(None,0,6,"layout5_2")
+ layout5_2 = TQHBoxLayout(None,0,6,"layout5_2")
- layout4_2 = QVBoxLayout(None,0,6,"layout4_2")
+ layout4_2 = TQVBoxLayout(None,0,6,"layout4_2")
- self.radioButton4_2 = QRadioButton(self.effectsGroup,"radioButton4_2")
+ self.radioButton4_2 = TQRadioButton(self.effectsGroup,"radioButton4_2")
layout4_2.addWidget(self.radioButton4_2)
- self.standardEffectsText = QLabel(self.effectsGroup,"standardEffectsText")
+ self.standardEffectsText = TQLabel(self.effectsGroup,"standardEffectsText")
layout4_2.addWidget(self.standardEffectsText)
layout5_2.addLayout(layout4_2)
- self.standardEffectsImage = QLabel(self.effectsGroup,"standardEffectsImage")
- self.standardEffectsImage.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.standardEffectsImage.sizePolicy().hasHeightForWidth()))
- self.standardEffectsImage.setMaximumSize(QSize(150,80))
+ self.standardEffectsImage = TQLabel(self.effectsGroup,"standardEffectsImage")
+ self.standardEffectsImage.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.standardEffectsImage.sizePolicy().hasHeightForWidth()))
+ self.standardEffectsImage.setMaximumSize(TQSize(150,80))
self.standardEffectsImage.setPixmap(self.image2)
self.standardEffectsImage.setScaledContents(1)
layout5_2.addWidget(self.standardEffectsImage)
effectsGroupLayout.addLayout(layout5_2)
- layout5_3 = QHBoxLayout(None,0,6,"layout5_3")
+ layout5_3 = TQHBoxLayout(None,0,6,"layout5_3")
- layout4_3 = QVBoxLayout(None,0,6,"layout4_3")
+ layout4_3 = TQVBoxLayout(None,0,6,"layout4_3")
- self.radioButton4_3 = QRadioButton(self.effectsGroup,"radioButton4_3")
+ self.radioButton4_3 = TQRadioButton(self.effectsGroup,"radioButton4_3")
layout4_3.addWidget(self.radioButton4_3)
- self.extraEffectsText = QLabel(self.effectsGroup,"extraEffectsText")
+ self.extraEffectsText = TQLabel(self.effectsGroup,"extraEffectsText")
layout4_3.addWidget(self.extraEffectsText)
layout5_3.addLayout(layout4_3)
- self.extraEffectsImage = QLabel(self.effectsGroup,"extraEffectsImage")
- self.extraEffectsImage.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.extraEffectsImage.sizePolicy().hasHeightForWidth()))
- self.extraEffectsImage.setMaximumSize(QSize(150,80))
+ self.extraEffectsImage = TQLabel(self.effectsGroup,"extraEffectsImage")
+ self.extraEffectsImage.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.extraEffectsImage.sizePolicy().hasHeightForWidth()))
+ self.extraEffectsImage.setMaximumSize(TQSize(150,80))
self.extraEffectsImage.setPixmap(self.image2)
self.extraEffectsImage.setScaledContents(1)
layout5_3.addWidget(self.extraEffectsImage)
effectsGroupLayout.addLayout(layout5_3)
- layout5_3_2 = QHBoxLayout(None,0,6,"layout5_3_2")
+ layout5_3_2 = TQHBoxLayout(None,0,6,"layout5_3_2")
- layout4_3_2 = QVBoxLayout(None,0,6,"layout4_3_2")
+ layout4_3_2 = TQVBoxLayout(None,0,6,"layout4_3_2")
- self.radioButton4_3_2 = QRadioButton(self.effectsGroup,"radioButton4_3_2")
+ self.radioButton4_3_2 = TQRadioButton(self.effectsGroup,"radioButton4_3_2")
layout4_3_2.addWidget(self.radioButton4_3_2)
- self.customEffectsText = QLabel(self.effectsGroup,"customEffectsText")
+ self.customEffectsText = TQLabel(self.effectsGroup,"customEffectsText")
layout4_3_2.addWidget(self.customEffectsText)
layout5_3_2.addLayout(layout4_3_2)
- self.customEffectsImage = QLabel(self.effectsGroup,"customEffectsImage")
- self.customEffectsImage.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.customEffectsImage.sizePolicy().hasHeightForWidth()))
- self.customEffectsImage.setMaximumSize(QSize(150,80))
+ self.customEffectsImage = TQLabel(self.effectsGroup,"customEffectsImage")
+ self.customEffectsImage.setSizePolicy(TQSizePolicy(TQSizePolicy.Fixed,TQSizePolicy.Fixed,0,0,self.customEffectsImage.sizePolicy().hasHeightForWidth()))
+ self.customEffectsImage.setMaximumSize(TQSize(150,80))
self.customEffectsImage.setPixmap(self.image2)
self.customEffectsImage.setScaledContents(1)
layout5_3_2.addWidget(self.customEffectsImage)
effectsGroupLayout.addLayout(layout5_3_2)
DesktopEffectsDialogLayout.addWidget(self.effectsGroup)
- layout12 = QHBoxLayout(None,0,6,"layout12")
- spacer4 = QSpacerItem(530,31,QSizePolicy.Expanding,QSizePolicy.Minimum)
+ layout12 = TQHBoxLayout(None,0,6,"layout12")
+ spacer4 = TQSpacerItem(530,31,TQSizePolicy.Expanding,TQSizePolicy.Minimum)
layout12.addItem(spacer4)
- self.applyButton = QPushButton(self,"applyButton")
+ self.applyButton = TQPushButton(self,"applyButton")
layout12.addWidget(self.applyButton)
- self.cancelButton = QPushButton(self,"cancelButton")
+ self.cancelButton = TQPushButton(self,"cancelButton")
layout12.addWidget(self.cancelButton)
DesktopEffectsDialogLayout.addLayout(layout12)
self.languageChange()
- self.resize(QSize(697,527).expandedTo(self.minimumSizeHint()))
- self.clearWState(Qt.WState_Polished)
+ self.resize(TQSize(697,527).expandedTo(self.minimumSizeHint()))
+ self.clearWState(TQt.WState_Polished)
self.connect(self.installButton,SIGNAL("clicked()"),self.installButtonClicked)
self.connect(self.radioButton4,SIGNAL("clicked()"),self.noEffects)
@@ -2722,7 +2722,7 @@ class DesktopEffectsDialog(QDialog):
self.warningText.setText(self.__tr("Desktop Effects are a great way to enjoy a modern desktop experience without transitioning to KDE4"))
self.effectsGroup.setTitle(self.__tr("Effects Level"))
self.radioButton4.setText(self.__tr("No Effects"))
- self.noEffectsText.setText(self.__tr("All effects are disabled and KDE Window manager is used.\n"
+ self.noEffectsText.setText(self.__tr("All effects are disabled and TDE Window manager is used.\n"
"This is the default behaviour."))
self.radioButton4_2.setText(self.__tr("Standard Effects"))
self.standardEffectsText.setText(self.__tr("A compromise between usability and efficiency."))
@@ -2770,7 +2770,7 @@ if __name__ == "__main__":
TDECmdLineArgs.init (sys.argv, appname, description, version)
a = TDEApplication ()
- QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = DesktopEffectsDialog()
a.setMainWidget(w)
w.show()