diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kexi/plugins/scripting | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-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')
9 files changed, 63 insertions, 63 deletions
diff --git a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp index 50a875b3..421bc31f 100644 --- a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp +++ b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp @@ -64,8 +64,8 @@ class KexiScriptDesignViewPrivate KTextBrowser* statusbrowser; }; -KexiScriptDesignView::KexiScriptDesignView(KexiMainWindow *mainWin, TQWidget *tqparent, Kross::Api::ScriptAction* scriptaction) - : KexiViewBase(mainWin, tqparent, "KexiScriptDesignView") +KexiScriptDesignView::KexiScriptDesignView(KexiMainWindow *mainWin, TQWidget *parent, Kross::Api::ScriptAction* scriptaction) + : KexiViewBase(mainWin, parent, "KexiScriptDesignView") , d( new KexiScriptDesignViewPrivate() ) { d->scriptaction = scriptaction; diff --git a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.h b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.h index ac5240ed..b3dec360 100644 --- a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.h +++ b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.h @@ -53,7 +53,7 @@ class KexiScriptDesignView : public KexiViewBase /** * Constructor. */ - KexiScriptDesignView(KexiMainWindow *mainWin, TQWidget *tqparent, Kross::Api::ScriptAction* scriptaction); + KexiScriptDesignView(KexiMainWindow *mainWin, TQWidget *parent, Kross::Api::ScriptAction* scriptaction); /** * Destructor. diff --git a/kexi/plugins/scripting/kexiscripting/kexiscripteditor.cpp b/kexi/plugins/scripting/kexiscripting/kexiscripteditor.cpp index a6f2dfc1..8aec288b 100644 --- a/kexi/plugins/scripting/kexiscripting/kexiscripteditor.cpp +++ b/kexi/plugins/scripting/kexiscripting/kexiscripteditor.cpp @@ -41,8 +41,8 @@ class KexiScriptEditor::Private Private() : scriptaction(0) {} }; -KexiScriptEditor::KexiScriptEditor(KexiMainWindow *mainWin, TQWidget *tqparent, const char *name) - : KexiEditor(mainWin, tqparent, name) +KexiScriptEditor::KexiScriptEditor(KexiMainWindow *mainWin, TQWidget *parent, const char *name) + : KexiEditor(mainWin, parent, name) , d( new Private() ) { } diff --git a/kexi/plugins/scripting/kexiscripting/kexiscripteditor.h b/kexi/plugins/scripting/kexiscripting/kexiscripteditor.h index 22415a7b..a00e3aa2 100644 --- a/kexi/plugins/scripting/kexiscripting/kexiscripteditor.h +++ b/kexi/plugins/scripting/kexiscripting/kexiscripteditor.h @@ -43,7 +43,7 @@ class KexiScriptEditor : public KexiEditor /** * Constructor. */ - KexiScriptEditor(KexiMainWindow *mainWin, TQWidget *tqparent, const char *name = 0); + KexiScriptEditor(KexiMainWindow *mainWin, TQWidget *parent, const char *name = 0); /** * Destructor. diff --git a/kexi/plugins/scripting/kexiscripting/kexiscriptpart.cpp b/kexi/plugins/scripting/kexiscripting/kexiscriptpart.cpp index b778bc75..cb66734d 100644 --- a/kexi/plugins/scripting/kexiscripting/kexiscriptpart.cpp +++ b/kexi/plugins/scripting/kexiscripting/kexiscriptpart.cpp @@ -44,8 +44,8 @@ class KexiScriptPart::Private Kross::Api::ScriptGUIClient* scriptguiclient; }; -KexiScriptPart::KexiScriptPart(TQObject *tqparent, const char *name, const TQStringList &l) - : KexiPart::Part(tqparent, name, l) +KexiScriptPart::KexiScriptPart(TQObject *parent, const char *name, const TQStringList &l) + : KexiPart::Part(parent, name, l) , d( new Private() ) { d->scriptguiclient = 0; @@ -159,7 +159,7 @@ void KexiScriptPart::initInstanceActions() createSharedAction(Kexi::DesignViewMode, i18n("Configure Editor..."), "configure", 0, "script_config_editor"); } -KexiViewBase* KexiScriptPart::createView(TQWidget *tqparent, KexiDialogBase* dialog, KexiPart::Item& item, int viewMode, TQMap<TQString,TQString>*) +KexiViewBase* KexiScriptPart::createView(TQWidget *parent, KexiDialogBase* dialog, KexiPart::Item& item, int viewMode, TQMap<TQString,TQString>*) { TQString partname = item.name(); if( ! partname.isNull() ) { @@ -181,7 +181,7 @@ KexiViewBase* KexiScriptPart::createView(TQWidget *tqparent, KexiDialogBase* dia } if(viewMode == Kexi::DesignViewMode) { - return new KexiScriptDesignView(win, tqparent, scriptaction); + return new KexiScriptDesignView(win, parent, scriptaction); } } return 0; diff --git a/kexi/plugins/scripting/kexiscripting/kexiscriptpart.h b/kexi/plugins/scripting/kexiscripting/kexiscriptpart.h index eca7a001..b2928a8f 100644 --- a/kexi/plugins/scripting/kexiscripting/kexiscriptpart.h +++ b/kexi/plugins/scripting/kexiscripting/kexiscriptpart.h @@ -42,11 +42,11 @@ class KexiScriptPart : public KexiPart::Part /** * Constructor. * - * \param tqparent The tqparent TQObject this part is child of. + * \param parent The parent TQObject this part is child of. * \param name The name this part has. * \param args Optional list of arguments passed to this part. */ - KexiScriptPart(TQObject *tqparent, const char *name, const TQStringList& args); + KexiScriptPart(TQObject *parent, const char *name, const TQStringList& args); /** * Destructor. @@ -69,12 +69,12 @@ class KexiScriptPart : public KexiPart::Part /** * Create a new view. * - * \param tqparent The tqparent TQWidget the new view is displayed in. + * \param parent The parent TQWidget the new view is displayed in. * \param dialog The \a KexiDialogBase the view is child of. * \param item The \a KexiPart::Item this view is for. * \param viewMode The viewmode we like to have a view for. */ - virtual KexiViewBase* createView(TQWidget *tqparent, + virtual KexiViewBase* createView(TQWidget *parent, KexiDialogBase* dialog, KexiPart::Item& item, int viewMode = Kexi::DesignViewMode, 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 |