summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py')
-rw-r--r--kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py48
1 files changed, 24 insertions, 24 deletions
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