summaryrefslogtreecommitdiffstats
path: root/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 00:41:16 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 00:41:16 +0000
commit698569f8428ca088f764d704034a1330517b98c0 (patch)
treebf45be6946ebbbee9cce5a5bcf838f4c952d87e6 /kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
parent2785103a6bd4de55bd26d79e34d0fdd4b329a73a (diff)
downloadkoffice-698569f8428ca088f764d704034a1330517b98c0.tar.gz
koffice-698569f8428ca088f764d704034a1330517b98c0.zip
Finish rebranding of Krita as Chalk
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238363 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp')
-rw-r--r--kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp b/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
index dd88750a..8020b0aa 100644
--- a/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
+++ b/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
@@ -17,9 +17,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "KWTQtSqlPowerSerialDataSource.h"
-#include "KWTQtSqlPowerSerialDataSource.moc"
-#include "KWTQtSqlMailMergeOpen.h"
+#include "KWQtSqlPowerSerialDataSource.h"
+#include "KWQtSqlPowerSerialDataSource.moc"
+#include "KWQtSqlMailMergeOpen.h"
#include <tqlayout.h>
#include <tqdom.h>
#include <kcombobox.h>
@@ -33,27 +33,27 @@
#include <tqdatatable.h>
#include <kdebug.h>
-#define KWTQtSqlBarIcon( x ) BarIcon( x, db->KWInstance() )
+#define KWQtSqlBarIcon( x ) BarIcon( x, db->KWInstance() )
/******************************************************************
*
- * Class: KWTQtSqlSerialDataSource
+ * Class: KWQtSqlSerialDataSource
*
******************************************************************/
-KWTQtSqlPowerSerialDataSource::KWTQtSqlPowerSerialDataSource(KInstance *inst,TQObject *tqparent)
- : KWTQtSqlSerialDataSourceBase(inst,tqparent),myquery(0)
+KWQtSqlPowerSerialDataSource::KWQtSqlPowerSerialDataSource(KInstance *inst,TQObject *tqparent)
+ : KWQtSqlSerialDataSourceBase(inst,tqparent),myquery(0)
{
port=i18n("default");
}
-KWTQtSqlPowerSerialDataSource::~KWTQtSqlPowerSerialDataSource()
+KWQtSqlPowerSerialDataSource::~KWQtSqlPowerSerialDataSource()
{
if (myquery) delete myquery;
- TQSqlDatabase::removeDatabase("KWTQTSTQLPOWER");
+ TQSqlDatabase::removeDatabase("KWTQTSQLPOWER");
}
-void KWTQtSqlPowerSerialDataSource::refresh(bool force)
+void KWQtSqlPowerSerialDataSource::refresh(bool force)
{
if ((force) || (myquery==0))
{
@@ -71,7 +71,7 @@ void KWTQtSqlPowerSerialDataSource::refresh(bool force)
kdDebug()<<TQString("There were %1 rows in the query").tqarg(myquery->size())<<endl;
}
-TQString KWTQtSqlPowerSerialDataSource::getValue( const TQString &name, int record ) const
+TQString KWQtSqlPowerSerialDataSource::getValue( const TQString &name, int record ) const
{
int num=record;
@@ -83,7 +83,7 @@ TQString KWTQtSqlPowerSerialDataSource::getValue( const TQString &name, int reco
return (myquery->value(name)).toString();
}
-void KWTQtSqlPowerSerialDataSource::save( TQDomDocument &doc, TQDomElement &tqparent)
+void KWQtSqlPowerSerialDataSource::save( TQDomDocument &doc, TQDomElement &tqparent)
{
TQDomElement def=doc.createElement(TQString::tqfromLatin1("DEFINITION"));
tqparent.appendChild(def);
@@ -111,7 +111,7 @@ void KWTQtSqlPowerSerialDataSource::save( TQDomDocument &doc, TQDomElement &tqpa
}
}
-void KWTQtSqlPowerSerialDataSource::load( TQDomElement& tqparentElem )
+void KWQtSqlPowerSerialDataSource::load( TQDomElement& tqparentElem )
{
clearSampleRecord();
TQDomNode defNd=tqparentElem.namedItem("DEFINITION");
@@ -149,37 +149,37 @@ void KWTQtSqlPowerSerialDataSource::load( TQDomElement& tqparentElem )
}
}
-bool KWTQtSqlPowerSerialDataSource::showConfigDialog(TQWidget *par,int action)
+bool KWQtSqlPowerSerialDataSource::showConfigDialog(TQWidget *par,int action)
{
bool ret=false;
if (action==KWSLEdit)
{
if ((!database) || (!database->isOpen()))openDatabase();
- KWTQtSqlPowerMailMergeEditor *dia=new KWTQtSqlPowerMailMergeEditor(par,this);
+ KWQtSqlPowerMailMergeEditor *dia=new KWQtSqlPowerMailMergeEditor(par,this);
ret=dia->exec();
delete dia;
}
- else ret=KWTQtSqlSerialDataSourceBase::showConfigDialog(par,action);
+ else ret=KWQtSqlSerialDataSourceBase::showConfigDialog(par,action);
return ret;
}
-void KWTQtSqlPowerSerialDataSource::clearSampleRecord() {sampleRecord.clear();}
+void KWQtSqlPowerSerialDataSource::clearSampleRecord() {sampleRecord.clear();}
-void KWTQtSqlPowerSerialDataSource::addSampleRecordEntry(TQString name)
+void KWQtSqlPowerSerialDataSource::addSampleRecordEntry(TQString name)
{sampleRecord[name]=name; }//i18n("No Value");}
/******************************************************************
*
- * Class: KWTQtSqlMailMergeEditor
+ * Class: KWQtSqlMailMergeEditor
*
******************************************************************/
-KWTQtSqlPowerMailMergeEditor::KWTQtSqlPowerMailMergeEditor( TQWidget *tqparent, KWTQtSqlPowerSerialDataSource *db_ )
+KWQtSqlPowerMailMergeEditor::KWQtSqlPowerMailMergeEditor( TQWidget *tqparent, KWQtSqlPowerSerialDataSource *db_ )
:KDialogBase( Plain, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, tqparent, "", true ), db( db_ )
{
(new TQVBoxLayout(plainPage()))->setAutoAdd(true);
- setMainWidget(widget=new KWTQtSqlPowerWidget(plainPage()));
+ setMainWidget(widget=new KWQtSqlPowerWidget(plainPage()));
connect(widget->setup,TQT_SIGNAL(clicked()),this,TQT_SLOT(openSetup()));
connect(widget->tables,TQT_SIGNAL(currentChanged(TQListBoxItem*)),this,TQT_SLOT(slotTableChanged(TQListBoxItem*)));
connect(widget->execute,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotExecute()));
@@ -188,13 +188,13 @@ KWTQtSqlPowerMailMergeEditor::KWTQtSqlPowerMailMergeEditor( TQWidget *tqparent,
updateDBViews();
}
-void KWTQtSqlPowerMailMergeEditor::slotSetQuery()
+void KWQtSqlPowerMailMergeEditor::slotSetQuery()
{
db->query=widget->query->text();
db->refresh(true);
}
-void KWTQtSqlPowerMailMergeEditor::slotExecute()
+void KWQtSqlPowerMailMergeEditor::slotExecute()
{
if (!db->database) if (!db->openDatabase()) return;
TQString tmp=widget->query->text().upper();
@@ -211,7 +211,7 @@ void KWTQtSqlPowerMailMergeEditor::slotExecute()
widget->queryresult->refresh(TQDataTable::RefreshAll);
}
-void KWTQtSqlPowerMailMergeEditor::slotTableChanged ( TQListBoxItem * item )
+void KWQtSqlPowerMailMergeEditor::slotTableChanged ( TQListBoxItem * item )
{
widget->fields->clear();
if (item)
@@ -225,9 +225,9 @@ void KWTQtSqlPowerMailMergeEditor::slotTableChanged ( TQListBoxItem * item )
}
}
-void KWTQtSqlPowerMailMergeEditor::openSetup()
+void KWQtSqlPowerMailMergeEditor::openSetup()
{
- KWTQtSqlMailMergeOpen *dia=new KWTQtSqlMailMergeOpen(this,db);
+ KWQtSqlMailMergeOpen *dia=new KWQtSqlMailMergeOpen(this,db);
if (dia->exec())
{
db->openDatabase();
@@ -237,7 +237,7 @@ void KWTQtSqlPowerMailMergeEditor::openSetup()
}
-void KWTQtSqlPowerMailMergeEditor::updateDBViews()
+void KWQtSqlPowerMailMergeEditor::updateDBViews()
{
widget->fields->clear();
widget->tables->clear();
@@ -245,12 +245,12 @@ void KWTQtSqlPowerMailMergeEditor::updateDBViews()
widget->tables->insertStringList(db->database->tables());
}
-KWTQtSqlPowerMailMergeEditor::~KWTQtSqlPowerMailMergeEditor(){;}
+KWQtSqlPowerMailMergeEditor::~KWQtSqlPowerMailMergeEditor(){;}
extern "C" {
KWORD_MAILMERGE_EXPORT KWMailMergeDataSource *create_kwmailmerge_qtsqldb_power(KInstance *inst,TQObject *tqparent)
{
- return new KWTQtSqlPowerSerialDataSource(inst,tqparent);
+ return new KWQtSqlPowerSerialDataSource(inst,tqparent);
}
}