diff options
Diffstat (limited to 'kexi/plugins/scripting/scripts/copycenter')
3 files changed, 37 insertions, 37 deletions
diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py index 6ecbea5f..4bde164b 100644 --- a/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py +++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py @@ -105,10 +105,10 @@ def runGuiApp(copycenter, name): btnbox.setSpacing(6) self.okbtn = tqt.TQPushButton(btnbox) self.okbtn.setText("Ok") - #tqt.TQObject.connect(okbtn, tqt.SIGNAL("clicked()"), self.okClicked) + #tqt.TQObject.connect(okbtn, tqt.TQ_SIGNAL("clicked()"), self.okClicked) self.cancelbtn = tqt.TQPushButton(btnbox) self.cancelbtn.setText("Cancel") - tqt.TQObject.connect(self.cancelbtn, tqt.SIGNAL("clicked()"), self.close) + tqt.TQObject.connect(self.cancelbtn, tqt.TQ_SIGNAL("clicked()"), self.close) box.setMinimumSize(tqt.TQSize(460,380)) def addItem(self,valuelist,afteritem = None): if afteritem == None: @@ -136,7 +136,7 @@ def runGuiApp(copycenter, name): self.jobfilecombobox.setEditable(True) self.jobfilecombobox.insertItem("") label.setBuddy(self.jobfilecombobox) - tqt.TQObject.connect(self.jobfilecombobox, tqt.SIGNAL("textChanged(const TQString&)"), self.jobfilecomboboxChanged) + tqt.TQObject.connect(self.jobfilecombobox, tqt.TQ_SIGNAL("textChanged(const TQString&)"), self.jobfilecomboboxChanged) import os import re @@ -147,10 +147,10 @@ def runGuiApp(copycenter, name): loadbtn = tqt.TQPushButton(typebox) loadbtn.setText("Open...") - tqt.TQObject.connect(loadbtn, tqt.SIGNAL("clicked()"), self.openClicked) + tqt.TQObject.connect(loadbtn, tqt.TQ_SIGNAL("clicked()"), self.openClicked) savebtn = tqt.TQPushButton(typebox) savebtn.setText("Save...") - tqt.TQObject.connect(savebtn, tqt.SIGNAL("clicked()"), self.saveClicked) + tqt.TQObject.connect(savebtn, tqt.TQ_SIGNAL("clicked()"), self.saveClicked) self.listview = tqt.TQListView(self) self.listview.setAllColumnsShowFocus(True) @@ -159,8 +159,8 @@ def runGuiApp(copycenter, name): self.listview.header().setClickEnabled(False) self.listview.addColumn("Name") self.listview.addColumn("Value") - tqt.TQObject.connect(self.listview, tqt.SIGNAL("doubleClicked(TQListViewItem*, const TQPoint&, int)"), self.doubleClicked) - #tqt.TQObject.connect(self.listview, tqt.SIGNAL("itemRenamed(TQListViewItem*, int, const TQString&)"), self.itemRenamed) + tqt.TQObject.connect(self.listview, tqt.TQ_SIGNAL("doubleClicked(TQListViewItem*, const TQPoint&, int)"), self.doubleClicked) + #tqt.TQObject.connect(self.listview, tqt.TQ_SIGNAL("itemRenamed(TQListViewItem*, int, const TQString&)"), self.itemRenamed) def doubleClicked(self, **args): print("CopyJobWidget.doubleClicked") @@ -339,10 +339,10 @@ def runGuiApp(copycenter, name): self.donebtn = tqt.TQPushButton(btnbox) self.donebtn.setText("Done") self.donebtn.setEnabled(False) - tqt.TQObject.connect(self.donebtn,tqt.SIGNAL("clicked()"),self.close) + tqt.TQObject.connect(self.donebtn,tqt.TQ_SIGNAL("clicked()"),self.close) self.cancelbtn = tqt.TQPushButton(btnbox) self.cancelbtn.setText("Cancel") - tqt.TQObject.connect(self.cancelbtn,tqt.SIGNAL("clicked()"),self.close) + tqt.TQObject.connect(self.cancelbtn,tqt.TQ_SIGNAL("clicked()"),self.close) box.setMinimumSize( tqt.TQSize(500,380) ) def updateStates(self): @@ -375,7 +375,7 @@ def runGuiApp(copycenter, name): self.starttime = tqt.TQTime() self.updatetimer = tqt.TQTimer(self) - tqt.TQObject.connect(self.updatetimer,tqt.SIGNAL("timeout()"),self.updateStates) + tqt.TQObject.connect(self.updatetimer,tqt.TQ_SIGNAL("timeout()"),self.updateStates) # Initialize the source sourcename = self.dialog.getSourcePluginName() @@ -469,7 +469,7 @@ def runGuiApp(copycenter, name): except: import traceback print("".join( traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2]) )) - tqt.TQObject.connect(self.combobox, tqt.SIGNAL("activated(int)"), self.activated) + tqt.TQObject.connect(self.combobox, tqt.TQ_SIGNAL("activated(int)"), self.activated) def updatePlugin(self): print("DataSelector.updatePlugin") @@ -570,10 +570,10 @@ def runGuiApp(copycenter, name): okbtn = tqt.TQPushButton(btnbox) okbtn.setText("Start Copy") okbtn.setDefault(True) - tqt.TQObject.connect(okbtn,tqt.SIGNAL("clicked()"),self.startCopy) + tqt.TQObject.connect(okbtn,tqt.TQ_SIGNAL("clicked()"),self.startCopy) cancelbtn = tqt.TQPushButton(btnbox) cancelbtn.setText("Cancel") - tqt.TQObject.connect(cancelbtn,tqt.SIGNAL("clicked()"),self.close) + tqt.TQObject.connect(cancelbtn,tqt.TQ_SIGNAL("clicked()"),self.close) self.tab.addTab(self.splitter,"Copy") self.tab.setCurrentPage(1) @@ -582,7 +582,7 @@ def runGuiApp(copycenter, name): self.helpbrowser.setLinkUnderline(False) self.helpbrowser.setUndoRedoEnabled(False) self.tab.addTab(self.helpbrowser,"Help") - tqt.TQObject.connect(self.tab,tqt.SIGNAL("currentChanged(TQWidget*)"),self.currentTabChanged) + tqt.TQObject.connect(self.tab,tqt.TQ_SIGNAL("currentChanged(TQWidget*)"),self.currentTabChanged) box.setMinimumSize( tqt.TQSize(760,500) ) diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py index 8c6c431b..87cbfb89 100644 --- a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py +++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py @@ -227,8 +227,8 @@ class CopyCenterPlugin: prjlabel.setBuddy(self.prjcombo) prjsavebtn = tqt.TQPushButton("...",self) - tqt.TQObject.connect(prjsavebtn, tqt.SIGNAL("clicked()"),self.buttonClicked) - tqt.TQObject.connect(self.prjcombo, tqt.SIGNAL("textChanged(const TQString&)"), self.main.projectChanged) + tqt.TQObject.connect(prjsavebtn, tqt.TQ_SIGNAL("clicked()"),self.buttonClicked) + tqt.TQObject.connect(self.prjcombo, tqt.TQ_SIGNAL("textChanged(const TQString&)"), self.main.projectChanged) self.setStretchFactor(self.prjcombo,1) def buttonClicked(self): text = str(self.prjcombo.currentText()) @@ -258,7 +258,7 @@ class CopyCenterPlugin: for driver in self.copycenterplugin.drivermanager.driverNames(): self.drivercombo.insertItem(driver) - tqt.TQObject.connect(self.drivercombo, tqt.SIGNAL("activated(int)"), self.activated) + tqt.TQObject.connect(self.drivercombo, tqt.TQ_SIGNAL("activated(int)"), self.activated) driverlabel.setBuddy(self.drivercombo) driverbox.setStretchFactor(self.drivercombo,1) @@ -291,7 +291,7 @@ class CopyCenterPlugin: filelabel.setBuddy(self.fileedit) filebox.setStretchFactor(self.fileedit,1) filebtn = tqt.TQPushButton("...",filebox) - tqt.TQObject.connect(filebtn, tqt.SIGNAL("clicked()"), self.fileClicked) + tqt.TQObject.connect(filebtn, tqt.TQ_SIGNAL("clicked()"), self.fileClicked) else: hostbox = tqt.TQHBox(mainbox) hostlabel = tqt.TQLabel("Hostname:",hostbox) @@ -307,13 +307,13 @@ class CopyCenterPlugin: sockbox = tqt.TQHBox(mainbox) self.sockfilecheckbox = tqt.TQCheckBox("Socket File:",sockbox) - tqt.TQObject.connect(self.sockfilecheckbox, tqt.SIGNAL("toggled(bool)"), self.sockfilecheckboxClicked) + tqt.TQObject.connect(self.sockfilecheckbox, tqt.TQ_SIGNAL("toggled(bool)"), self.sockfilecheckboxClicked) self.sockfilebox = tqt.TQHBox(sockbox) self.sockfileedit = tqt.TQLineEdit(self.plugin.options['socketfile'],self.sockfilebox) self.sockfilebox.setEnabled(False) sockfilebtn = tqt.TQPushButton("...",self.sockfilebox) self.sockfilecheckbox.setChecked( str(self.plugin.options['usesocketfile']) == str(True) ) - tqt.TQObject.connect(sockfilebtn, tqt.SIGNAL("clicked()"), self.sockfileClicked) + tqt.TQObject.connect(sockfilebtn, tqt.TQ_SIGNAL("clicked()"), self.sockfileClicked) self.sockfilebox.setStretchFactor(self.sockfileedit,1) sockbox.setStretchFactor(self.sockfilebox,1) @@ -372,7 +372,7 @@ class CopyCenterPlugin: self.tableedit = tqt.TQLineEdit(self.plugin.options['table'],self) self.tablebtn = tqt.TQPushButton("...",self) self.tablebtn.setEnabled(False) - tqt.TQObject.connect(self.tablebtn, tqt.SIGNAL("clicked()"), self.buttonClicked) + tqt.TQObject.connect(self.tablebtn, tqt.TQ_SIGNAL("clicked()"), self.buttonClicked) tablelabel.setBuddy(self.tableedit) self.setStretchFactor(self.tableedit,1) def buttonClicked(self): @@ -392,8 +392,8 @@ class CopyCenterPlugin: if table == text: self.listview.setSelected(item,True) self.listview.ensureItemVisible(item) - tqt.TQObject.connect(self.listview, tqt.SIGNAL("doubleClicked(TQListViewItem*, const TQPoint&, int)"), self.okClicked) - tqt.TQObject.connect(self.okbtn, tqt.SIGNAL("clicked()"), self.okClicked) + tqt.TQObject.connect(self.listview, tqt.TQ_SIGNAL("doubleClicked(TQListViewItem*, const TQPoint&, int)"), self.okClicked) + tqt.TQObject.connect(self.okbtn, tqt.TQ_SIGNAL("clicked()"), self.okClicked) def okClicked(self): item = self.listview.selectedItem() if item == None: @@ -416,7 +416,7 @@ class CopyCenterPlugin: fieldslabel.setBuddy(self.fieldsedit) self.fieldsbtn = tqt.TQPushButton("...",self) self.fieldsbtn.setEnabled(False) - tqt.TQObject.connect(self.fieldsbtn, tqt.SIGNAL("clicked()"), self.fieldsClicked) + tqt.TQObject.connect(self.fieldsbtn, tqt.TQ_SIGNAL("clicked()"), self.fieldsClicked) def fieldsClicked(self): ListViewDialog = self.copycenterplugin.dialog.ListViewDialog class FieldsDialog(ListViewDialog): @@ -441,7 +441,7 @@ class CopyCenterPlugin: item = self.addItem(( field.name(),field.type(),",".join(opts) ),item) if allfields or field.name() in fieldslist: self.listview.setSelected(item,True) - tqt.TQObject.connect(self.okbtn, tqt.SIGNAL("clicked()"), self.okClicked) + tqt.TQObject.connect(self.okbtn, tqt.TQ_SIGNAL("clicked()"), self.okClicked) def okClicked(self): selitems = [] item = self.listview.firstChild() @@ -477,15 +477,15 @@ class CopyCenterPlugin: statusbar.setStretchFactor(tqt.TQWidget(statusbar),1) self.connectbtn = tqt.TQPushButton("Connect",statusbar) self.connectbtn.setEnabled(False) - tqt.TQObject.connect(self.connectbtn, tqt.SIGNAL("clicked()"),self.connectClicked) + tqt.TQObject.connect(self.connectbtn, tqt.TQ_SIGNAL("clicked()"),self.connectClicked) self.disconnectbtn = tqt.TQPushButton("Disconnect",statusbar) self.disconnectbtn.setEnabled(False) - tqt.TQObject.connect(self.disconnectbtn, tqt.SIGNAL("clicked()"),self.disconnectClicked) + tqt.TQObject.connect(self.disconnectbtn, tqt.TQ_SIGNAL("clicked()"),self.disconnectClicked) #self.connectionbox = ConnectionBox(copycenterplugin,plugin,parent) self.tablebox = TableBox(copycenterplugin,plugin,parent) self.fieldbox = FieldBox(copycenterplugin,plugin,parent) - tqt.TQObject.connect(self.tablebox.tableedit, tqt.SIGNAL("textChanged(const TQString&)"), self.fieldbox.tableChanged) + tqt.TQObject.connect(self.tablebox.tableedit, tqt.TQ_SIGNAL("textChanged(const TQString&)"), self.fieldbox.tableChanged) if self.plugin.options['project'] != '': self.prjbox.prjcombo.setCurrentText(self.plugin.options['project']) diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py index 8f983eb5..9cb8ef93 100644 --- a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py +++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginQtSQL.py @@ -234,8 +234,8 @@ class CopyCenterPlugin: if table == text: self.listview.setSelected(item,True) self.listview.ensureItemVisible(item) - tqt.TQObject.connect(self.listview, tqt.SIGNAL("doubleClicked(TQListViewItem*, const TQPoint&, int)"), self.okClicked) - tqt.TQObject.connect(self.okbtn, tqt.SIGNAL("clicked()"), self.okClicked) + tqt.TQObject.connect(self.listview, tqt.TQ_SIGNAL("doubleClicked(TQListViewItem*, const TQPoint&, int)"), self.okClicked) + tqt.TQObject.connect(self.okbtn, tqt.TQ_SIGNAL("clicked()"), self.okClicked) def okClicked(self): item = self.listview.selectedItem() if item == None: @@ -267,7 +267,7 @@ class CopyCenterPlugin: item = self.addItem((fieldinfo.name(), tqt.TQVariant.typeToName(fieldinfo.type()), opts),item) if allfields or fieldinfo.name() in fieldslist: self.listview.setSelected(item,True) - tqt.TQObject.connect(self.okbtn, tqt.SIGNAL("clicked()"), self.okClicked) + tqt.TQObject.connect(self.okbtn, tqt.TQ_SIGNAL("clicked()"), self.okClicked) def okClicked(self): selitems = [] item = self.listview.firstChild() @@ -335,18 +335,18 @@ class CopyCenterPlugin: statusbar.setSpacing(2) statusbar.setStretchFactor(tqt.TQWidget(statusbar),1) self.connectbtn = tqt.TQPushButton("Connect",statusbar) - tqt.TQObject.connect(self.connectbtn, tqt.SIGNAL("clicked()"),self.connectClicked) + tqt.TQObject.connect(self.connectbtn, tqt.TQ_SIGNAL("clicked()"),self.connectClicked) self.disconnectbtn = tqt.TQPushButton("Disconnect",statusbar) self.disconnectbtn.setEnabled(False) - tqt.TQObject.connect(self.disconnectbtn, tqt.SIGNAL("clicked()"),self.disconnectClicked) + tqt.TQObject.connect(self.disconnectbtn, tqt.TQ_SIGNAL("clicked()"),self.disconnectClicked) tablebox = tqt.TQHBox(parent) tablelabel = tqt.TQLabel("Table:",tablebox) self.tableedit = tqt.TQLineEdit(self.plugin.options['table'],tablebox) - tqt.TQObject.connect(self.tableedit, tqt.SIGNAL("textChanged(const TQString&)"), self.tableEditChanged) + tqt.TQObject.connect(self.tableedit, tqt.TQ_SIGNAL("textChanged(const TQString&)"), self.tableEditChanged) self.tablebtn = tqt.TQPushButton("...",tablebox) self.tablebtn.setEnabled(False) - tqt.TQObject.connect(self.tablebtn, tqt.SIGNAL("clicked()"), self.tableBtnClicked) + tqt.TQObject.connect(self.tablebtn, tqt.TQ_SIGNAL("clicked()"), self.tableBtnClicked) tablelabel.setBuddy(self.tableedit) tablebox.setStretchFactor(self.tableedit,1) @@ -355,7 +355,7 @@ class CopyCenterPlugin: self.fieldedit = tqt.TQLineEdit(self.plugin.options['fields'],fieldbox) self.fieldbtn = tqt.TQPushButton("...",fieldbox) self.fieldbtn.setEnabled(False) - tqt.TQObject.connect(self.fieldbtn, tqt.SIGNAL("clicked()"), self.fieldBtnClicked) + tqt.TQObject.connect(self.fieldbtn, tqt.TQ_SIGNAL("clicked()"), self.fieldBtnClicked) fieldlabel.setBuddy(self.fieldedit) fieldbox.setStretchFactor(self.fieldedit,1) @@ -381,7 +381,7 @@ class CopyCenterPlugin: operationlabel.setBuddy(self.mainwidget.operationedit) opbox.setStretchFactor(self.mainwidget.operationedit,1) self.box = None - tqt.TQObject.connect(self.mainwidget.operationedit, tqt.SIGNAL("activated(int)"), self.operationActivated) + tqt.TQObject.connect(self.mainwidget.operationedit, tqt.TQ_SIGNAL("activated(int)"), self.operationActivated) self.operationActivated() def operationActivated(self, **args): if self.box: |