summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/scripting/scripts/copycenter
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit04766b207afba7961d4d802313e426f5a2fbef63 (patch)
treec888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kexi/plugins/scripting/scripts/copycenter
parentb6edfe41c9395f2e20784cbf0e630af6426950a3 (diff)
downloadkoffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz
koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/plugins/scripting/scripts/copycenter')
-rw-r--r--kexi/plugins/scripting/scripts/copycenter/CopyCenter.py20
-rw-r--r--kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py48
-rw-r--r--kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py30
3 files changed, 49 insertions, 49 deletions
diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py
index bdec927b..6f75bdea 100644
--- a/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py
+++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py
@@ -89,9 +89,9 @@ def runGuiApp(copycenter, name):
#--------------------------------------------------------------------
class ListViewDialog(qt.QDialog):
- def __init__(self, tqparent, caption):
- qt.QDialog.__init__(self, tqparent, "ProgressDialog", 1)
- self.tqparent = tqparent
+ def __init__(self, parent, caption):
+ qt.QDialog.__init__(self, parent, "ProgressDialog", 1)
+ self.parent = parent
self.setCaption(caption)
tqlayout = qt.QVBoxLayout(self)
box = qt.QVBox(self)
@@ -124,9 +124,9 @@ def runGuiApp(copycenter, name):
#--------------------------------------------------------------------
class CopyJobWidget(qt.QVBox):
- def __init__(self,dialog,tqparent):
+ def __init__(self,dialog,parent):
self.dialog = dialog
- qt.QVBox.__init__(self,tqparent)
+ qt.QVBox.__init__(self,parent)
self.setSpacing(6)
typebox = qt.QHBox(self)
typebox.setSpacing(6)
@@ -165,7 +165,7 @@ def runGuiApp(copycenter, name):
def doubleClicked(self, **args):
print "CopyJobWidget.doubleClicked"
item = self.listview.selectedItem()
- if item and item.tqparent(): item.startRename(1)
+ if item and item.parent(): item.startRename(1)
def readOptions(self,domnode,plugininst):
print "CopyJobWidget.readOptions plugintype=\"%s\"" % plugininst.plugintype
@@ -442,13 +442,13 @@ def runGuiApp(copycenter, name):
#--------------------------------------------------------------------
class DataSelector(qt.QVGroupBox):
- def __init__(self, plugintype, title, caption, tqparent, dialog, items):
+ def __init__(self, plugintype, title, caption, parent, dialog, items):
self.plugintype = plugintype
self.pluginimpl = None
self.dialog = dialog
self.mainbox = None
- qt.QVGroupBox.__init__(self,title,tqparent)
+ qt.QVGroupBox.__init__(self,title,parent)
self.setInsideMargin(6)
self.setInsideSpacing(0)
@@ -520,7 +520,7 @@ def runGuiApp(copycenter, name):
#--------------------------------------------------------------------
class Dialog(qt.QDialog):
- def __init__(self, copycenter, tqparent):
+ def __init__(self, copycenter, parent):
self.copycenter = copycenter
import qt
@@ -528,7 +528,7 @@ def runGuiApp(copycenter, name):
import sys
self.ListViewDialog = ListViewDialog
- qt.QDialog.__init__(self, tqparent, "Dialog", 1, qt.Qt.WDestructiveClose)
+ qt.QDialog.__init__(self, parent, "Dialog", 1, qt.Qt.WDestructiveClose)
self.setCaption("Copy Center")
tqlayout = qt.QVBoxLayout(self)
box = qt.QVBox(self)
diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py
index 85023ee4..e8241405 100644
--- a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py
+++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py
@@ -53,9 +53,9 @@ class CopyCenterPlugin:
def finish(self):
""" Called if reading is finished."""
self.connection.finish()
- def createWidget(self, dialog, tqparent):
+ def createWidget(self, dialog, parent):
""" Create and return a widget to modify the plugin settings. """
- return self.copycenterplugin.createWidget(dialog, self, tqparent)
+ return self.copycenterplugin.createWidget(dialog, self, parent)
class Source(Plugin):
""" Specialization of the Plugin class to implement the
@@ -196,7 +196,7 @@ class CopyCenterPlugin:
self.drivermanager = krosskexidb.DriverManager()
self.copycenter = copycenter
- def createWidget(self, dialog, plugin, tqparent):
+ def createWidget(self, dialog, plugin, parent):
""" Each plugin may provide a qt.QWidget back to the
CopyCenter.py. The widget will be used to configure our
plugin settings. """
@@ -208,12 +208,12 @@ class CopyCenterPlugin:
self.dialog = dialog
self.mainbox = None
class ProjectBox(qt.QHBox):
- def __init__(self,main,copycenterplugin,plugin,tqparent):
+ def __init__(self,main,copycenterplugin,plugin,parent):
self.main = main
self.copycenterplugin = copycenterplugin
self.plugin = plugin
- qt.QHBox.__init__(self,tqparent)
+ qt.QHBox.__init__(self,parent)
prjlabel = qt.QLabel("Project File:",self)
self.prjcombo = qt.QComboBox(self)
self.prjcombo.setEditable(True)
@@ -244,8 +244,8 @@ class CopyCenterPlugin:
if str(filename) != "": self.prjcombo.setCurrentText(str(filename))
class DriverBox(qt.QVBox):
- def __init__(self,main,tqparent):
- qt.QVBox.__init__(self,tqparent)
+ def __init__(self,main,parent):
+ qt.QVBox.__init__(self,parent)
self.main = main
self.copycenterplugin = main.copycenterplugin
self.plugin = main.plugin
@@ -364,8 +364,8 @@ class CopyCenterPlugin:
if str(filename) != "": self.sockfileedit.setText(str(filename))
class TableBox(qt.QHBox):
- def __init__(self,copycenterplugin,plugin,tqparent):
- qt.QHBox.__init__(self,tqparent)
+ def __init__(self,copycenterplugin,plugin,parent):
+ qt.QHBox.__init__(self,parent)
self.copycenterplugin = copycenterplugin
self.plugin = plugin
tablelabel = qt.QLabel("Table:",self)
@@ -405,8 +405,8 @@ class CopyCenterPlugin:
dialog.show()
class FieldBox(qt.QHBox):
- def __init__(self,copycenterplugin,plugin,tqparent):
- qt.QHBox.__init__(self,tqparent)
+ def __init__(self,copycenterplugin,plugin,parent):
+ qt.QHBox.__init__(self,parent)
self.copycenterplugin = copycenterplugin
self.plugin = plugin
self.tablename = ""
@@ -462,15 +462,15 @@ class CopyCenterPlugin:
self.fieldsbtn.setEnabled(False)
class MainBox(qt.QHBox):
- def __init__(self,copycenterplugin,plugin,tqparent):
- qt.QHBox.__init__(self,tqparent)
+ def __init__(self,copycenterplugin,plugin,parent):
+ qt.QHBox.__init__(self,parent)
self.copycenterplugin = copycenterplugin
self.plugin = plugin
- self.prjbox = ProjectBox(self,copycenterplugin,plugin,tqparent)
- self.driverbox = DriverBox(self,tqparent)
+ self.prjbox = ProjectBox(self,copycenterplugin,plugin,parent)
+ self.driverbox = DriverBox(self,parent)
- statusbar = qt.QHBox(tqparent)
+ statusbar = qt.QHBox(parent)
statusbar.setSpacing(2)
#self.statuslabel = qt.QLabel("Disconnected",statusbar)
#statusbar.setStretchFactor(self.statuslabel,1)
@@ -482,9 +482,9 @@ class CopyCenterPlugin:
self.disconnectbtn.setEnabled(False)
qt.QObject.connect(self.disconnectbtn, qt.SIGNAL("clicked()"),self.disconnectClicked)
- #self.connectionbox = ConnectionBox(copycenterplugin,plugin,tqparent)
- self.tablebox = TableBox(copycenterplugin,plugin,tqparent)
- self.fieldbox = FieldBox(copycenterplugin,plugin,tqparent)
+ #self.connectionbox = ConnectionBox(copycenterplugin,plugin,parent)
+ self.tablebox = TableBox(copycenterplugin,plugin,parent)
+ self.fieldbox = FieldBox(copycenterplugin,plugin,parent)
qt.QObject.connect(self.tablebox.tableedit, qt.SIGNAL("textChanged(const QString&)"), self.fieldbox.tableChanged)
if self.plugin.options['project'] != '':
@@ -499,7 +499,7 @@ class CopyCenterPlugin:
pass
if self.plugin.plugintype == "Destination":
- #typebox = qt.QHBox(tqparent)
+ #typebox = qt.QHBox(parent)
#label = qt.QLabel("Operation:",typebox)
#combobox = qt.QComboBox(typebox)
#combobox.insertItem("Append")
@@ -511,15 +511,15 @@ class CopyCenterPlugin:
#typebox.setStretchFactor(combobox,1)
pass
elif self.plugin.plugintype == "Source":
- wherebox = qt.QHBox(tqparent)
+ wherebox = qt.QHBox(parent)
wherelabel = qt.QLabel("Where:",wherebox)
self.whereedit = qt.QLineEdit(self.plugin.options['where'],wherebox)
- #orderbox = qt.QHBox(tqparent)
+ #orderbox = qt.QHBox(parent)
#orderlabel = qt.QLabel("Order By:",orderbox)
#orderedit = qt.QLineEdit("",orderbox)
- #errbox = qt.QHBox(tqparent)
+ #errbox = qt.QHBox(parent)
#errlabel = qt.QLabel("On Error:",errbox)
#errcombo = qt.QComboBox(errbox)
#errcombo.insertItem("Ask")
@@ -640,7 +640,7 @@ class CopyCenterPlugin:
pass
return ""
- mainbox = MainBox(self,plugin,tqparent)
+ mainbox = MainBox(self,plugin,parent)
plugin.widget = mainbox
return mainbox
diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py
index de553b92..678cf40b 100644
--- a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py
+++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py
@@ -39,8 +39,8 @@ class CopyCenterPlugin:
def finish(self):
self.isfinished = True
self.widget.disconnectClicked()
- def createWidget(self,dialog,tqparent):
- return self.copycenterplugin.widget(dialog, self, tqparent)
+ def createWidget(self,dialog,parent):
+ return self.copycenterplugin.widget(dialog, self, parent)
class Source(Plugin):
plugintype = "Source"
@@ -209,7 +209,7 @@ class CopyCenterPlugin:
""" Constructor. """
pass
- def widget(self,dialog,plugin,tqparent):
+ def widget(self,dialog,plugin,parent):
""" Each plugin may provide a qt.QWidget back to the
CopyCenter.py. The widget will be used to configure our
plugin settings. """
@@ -246,7 +246,7 @@ class CopyCenterPlugin:
class FieldsDialog(ListViewDialog):
def __init__(self, mainwidget):
- ListViewDialog.__init__(self,tqparent,"Fields")
+ ListViewDialog.__init__(self,parent,"Fields")
self.mainwidget = mainwidget
self.listview.setSelectionMode(qt.QListView.Multi)
self.listview.setSorting(-1)
@@ -280,14 +280,14 @@ class CopyCenterPlugin:
class MainWidget(qt.QHBox):
- def __init__(self,plugin,dialog,tqparent):
+ def __init__(self,plugin,dialog,parent):
import qt
import qtsql
- qt.QHBox.__init__(self,tqparent)
+ qt.QHBox.__init__(self,parent)
self.dialog = dialog
self.plugin = plugin
- self.connectionbox = qt.QVBox(tqparent)
+ self.connectionbox = qt.QVBox(parent)
self.connectionbox.setSpacing(2)
driverbox = qt.QHBox(self.connectionbox)
@@ -331,7 +331,7 @@ class CopyCenterPlugin:
dblabel.setBuddy(self.dbedit)
dbbox.setStretchFactor(self.dbedit,1)
- statusbar = qt.QHBox(tqparent)
+ statusbar = qt.QHBox(parent)
statusbar.setSpacing(2)
statusbar.setStretchFactor(qt.QWidget(statusbar),1)
self.connectbtn = qt.QPushButton("Connect",statusbar)
@@ -340,7 +340,7 @@ class CopyCenterPlugin:
self.disconnectbtn.setEnabled(False)
qt.QObject.connect(self.disconnectbtn, qt.SIGNAL("clicked()"),self.disconnectClicked)
- tablebox = qt.QHBox(tqparent)
+ tablebox = qt.QHBox(parent)
tablelabel = qt.QLabel("Table:",tablebox)
self.tableedit = qt.QLineEdit(self.plugin.options['table'],tablebox)
qt.QObject.connect(self.tableedit, qt.SIGNAL("textChanged(const QString&)"), self.tableEditChanged)
@@ -350,7 +350,7 @@ class CopyCenterPlugin:
tablelabel.setBuddy(self.tableedit)
tablebox.setStretchFactor(self.tableedit,1)
- fieldbox = qt.QHBox(tqparent)
+ fieldbox = qt.QHBox(parent)
fieldlabel = qt.QLabel("Fields:",fieldbox)
self.fieldedit = qt.QLineEdit(self.plugin.options['fields'],fieldbox)
self.fieldbtn = qt.QPushButton("...",fieldbox)
@@ -360,7 +360,7 @@ class CopyCenterPlugin:
fieldbox.setStretchFactor(self.fieldedit,1)
if self.plugin.plugintype == "Source":
- box = qt.QHBox(tqparent)
+ box = qt.QHBox(parent)
wherelabel = qt.QLabel("Where:",box)
self.whereedit = qt.QLineEdit(self.plugin.options['where'],box)
wherelabel.setBuddy(self.whereedit)
@@ -368,9 +368,9 @@ class CopyCenterPlugin:
elif self.plugin.plugintype == "Destination":
class OperationBox(qt.QVBox):
- def __init__(self, mainwidget, tqparent):
+ def __init__(self, mainwidget, parent):
self.mainwidget = mainwidget
- qt.QVBox.__init__(self, tqparent)
+ qt.QVBox.__init__(self, parent)
opbox = qt.QHBox(self)
operationlabel = qt.QLabel("Operation:",opbox)
self.mainwidget.operationedit = qt.QComboBox(opbox)
@@ -401,7 +401,7 @@ class CopyCenterPlugin:
1: showUpdate,
}[ self.mainwidget.operationedit.currentItem() ](self)
if self.box != None: self.box.show()
- OperationBox(self,tqparent)
+ OperationBox(self,parent)
def tableEditChanged(self,text):
if self.plugin.database != None and self.plugin.database.isOpen():
@@ -491,5 +491,5 @@ class CopyCenterPlugin:
print "database is closed now!"
self.updateConnectState()
- plugin.widget = MainWidget(plugin,self.dialog,tqparent)
+ plugin.widget = MainWidget(plugin,self.dialog,parent)
return plugin.widget