summaryrefslogtreecommitdiffstats
path: root/kbabel/filters/linguist
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kbabel/filters/linguist
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/filters/linguist')
-rw-r--r--kbabel/filters/linguist/linguistexport.cpp22
-rw-r--r--kbabel/filters/linguist/linguistexport.h10
-rw-r--r--kbabel/filters/linguist/linguistimport.cpp20
-rw-r--r--kbabel/filters/linguist/linguistimport.h16
4 files changed, 34 insertions, 34 deletions
diff --git a/kbabel/filters/linguist/linguistexport.cpp b/kbabel/filters/linguist/linguistexport.cpp
index af0a3298..3b5bc5fc 100644
--- a/kbabel/filters/linguist/linguistexport.cpp
+++ b/kbabel/filters/linguist/linguistexport.cpp
@@ -24,11 +24,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -53,15 +53,15 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_linguistexport, KGenericFactory<LinguistExpor
using namespace KBabel;
-LinguistExportPlugin::LinguistExportPlugin( TQObject * parent, const char * name, const TQStringList& )
- : CatalogExportPlugin( parent, name )
+LinguistExportPlugin::LinguistExportPlugin( TQObject * tqparent, const char * name, const TQStringList& )
+ : CatalogExportPlugin( tqparent, name )
{
}
-ConversionStatus LinguistExportPlugin::save( const TQString& filename, const TQString&, const Catalog * catalog )
+ConversiontqStatus LinguistExportPlugin::save( const TQString& filename, const TQString&, const Catalog * catalog )
{
// Check whether we know how to handle the extra data.
- if ( catalog->importPluginID( ) != "Qt translation source" )
+ if ( catalog->importPluginID( ) != "TQt translation source" )
return UNSUPPORTED_TYPE;
TQFile file( filename );
@@ -76,7 +76,7 @@ ConversionStatus LinguistExportPlugin::save( const TQString& filename, const TQS
doc.appendChild( doc.createElement( "TS" ) );
// Create a default context just in case none is given in the messages.
- context = "Default"; // ### FIXME: Qt's default seems named "@default"
+ context = "Default"; // ### FIXME: TQt's default seems named "@default"
bool fuzzy;
@@ -123,17 +123,17 @@ const TQString LinguistExportPlugin::extractComment( TQDomDocument& doc, const T
* writing the comment for Linguist
*/
- int pos = comment.find("#, fuzzy");
+ int pos = comment.tqfind("#, fuzzy");
if ( pos >= 0) {
fuzzy = true;
comment.remove("#, fuzzy");
}
TQString newContext;
- pos = comment.find( '\n' );
+ pos = comment.tqfind( '\n' );
if ( pos >= 0 ) {
newContext = comment.left( pos );
- comment.replace( 0, pos + 1, "" ); // ### TODO: use TQString::remove
+ comment.tqreplace( 0, pos + 1, "" ); // ### TODO: use TQString::remove
} else {
newContext = comment;
comment = ""; // ### TODO: use TQString() instead of ""
diff --git a/kbabel/filters/linguist/linguistexport.h b/kbabel/filters/linguist/linguistexport.h
index b3399ed1..f4ed3240 100644
--- a/kbabel/filters/linguist/linguistexport.h
+++ b/kbabel/filters/linguist/linguistexport.h
@@ -22,11 +22,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -51,8 +51,8 @@ class Catalog;
class LinguistExportPlugin : public KBabel::CatalogExportPlugin
{
public:
- LinguistExportPlugin( TQObject * parent, const char * name, const TQStringList& );
- virtual KBabel::ConversionStatus save( const TQString& filename, const TQString& mimetype, const KBabel::Catalog * catalog );
+ LinguistExportPlugin( TQObject * tqparent, const char * name, const TQStringList& );
+ virtual KBabel::ConversiontqStatus save( const TQString& filename, const TQString& mimetype, const KBabel::Catalog * catalog );
private:
const TQString extractComment( TQDomDocument& doc, const TQString& s, bool& fuzzy );
diff --git a/kbabel/filters/linguist/linguistimport.cpp b/kbabel/filters/linguist/linguistimport.cpp
index a1870bd7..b46f5f97 100644
--- a/kbabel/filters/linguist/linguistimport.cpp
+++ b/kbabel/filters/linguist/linguistimport.cpp
@@ -1,4 +1,4 @@
-// kate: space-indent on; indent-width 2; replace-tabs on;
+// kate: space-indent on; indent-width 2; tqreplace-tabs on;
/* ****************************************************************************
This file is part of KBabel
@@ -26,18 +26,18 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
**************************************************************************** */
-// Qt include files
+// TQt include files
#include <tqfile.h>
#include <tqfileinfo.h>
#include <tqobject.h>
@@ -55,12 +55,12 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_linguistimport, KGenericFactory<LinguistImpor
using namespace KBabel;
-LinguistImportPlugin::LinguistImportPlugin( TQObject * parent, const char * name, const TQStringList& )
- : CatalogImportPlugin( parent, name )
+LinguistImportPlugin::LinguistImportPlugin( TQObject * tqparent, const char * name, const TQStringList& )
+ : CatalogImportPlugin( tqparent, name )
{
}
-ConversionStatus LinguistImportPlugin::load( const TQString& filename, const TQString& )
+ConversiontqStatus LinguistImportPlugin::load( const TQString& filename, const TQString& )
{
if ( filename.isEmpty( ) ) {
kdDebug( ) << "fatal error: empty filename to open" << endl;
@@ -113,9 +113,9 @@ ConversionStatus LinguistImportPlugin::load( const TQString& filename, const TQS
return OK;
}
-void LinguistImportPlugin::parse( const TQDomElement& parentElement )
+void LinguistImportPlugin::parse( const TQDomElement& tqparentElement )
{
- TQDomNode node = parentElement.firstChild( );
+ TQDomNode node = tqparentElement.firstChild( );
while ( !node.isNull( ) ) {
if ( node.isElement( ) ) {
diff --git a/kbabel/filters/linguist/linguistimport.h b/kbabel/filters/linguist/linguistimport.h
index 175a28f8..fa7aa36c 100644
--- a/kbabel/filters/linguist/linguistimport.h
+++ b/kbabel/filters/linguist/linguistimport.h
@@ -22,11 +22,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -45,18 +45,18 @@ class TQString;
class TQStringList;
/**
- * The class for importing Qt's translation source files.
+ * The class for importing TQt's translation source files.
*/
class LinguistImportPlugin : public KBabel::CatalogImportPlugin
{
public:
- LinguistImportPlugin( TQObject * parent, const char * name, const TQStringList& );
+ LinguistImportPlugin( TQObject * tqparent, const char * name, const TQStringList& );
- virtual KBabel::ConversionStatus load( const TQString& filename, const TQString& mimetype );
- virtual const TQString id( ) { return "Qt translation source"; }
+ virtual KBabel::ConversiontqStatus load( const TQString& filename, const TQString& mimetype );
+ virtual const TQString id( ) { return "TQt translation source"; }
private:
- void parse( const TQDomElement& parentElement );
+ void parse( const TQDomElement& tqparentElement );
private:
uint msgcnt;